Struct rusoto_iotevents::IotSiteWiseAction
source · [−]pub struct IotSiteWiseAction {
pub asset_id: Option<String>,
pub entry_id: Option<String>,
pub property_alias: Option<String>,
pub property_id: Option<String>,
pub property_value: Option<AssetPropertyValue>,
}
Expand description
Sends information about the detector model instance and the event that triggered the action to a specified asset property in AWS IoT SiteWise.
You must use expressions for all parameters in IotSiteWiseAction
. The expressions accept literals, operators, functions, references, and substitutions templates.
Examples
-
For literal values, the expressions must contain single quotes. For example, the value for the
propertyAlias
parameter can be'/company/windfarm/3/turbine/7/temperature'
. -
For references, you must specify either variables or input values. For example, the value for the
assetId
parameter can be$input.TurbineInput.assetId1
. -
For a substitution template, you must use
${}
, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
propertyAlias
parameter uses a substitution template.'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/ ${$input.TemperatureInput.sensorData.turbineID}/temperature'
You must specify either propertyAlias
or both assetId
and propertyId
to identify the target asset property in AWS IoT SiteWise.
For more information, see Expressions in the AWS IoT Events Developer Guide.
Fields
asset_id: Option<String>
The ID of the asset that has the specified property.
entry_id: Option<String>
A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier.
property_alias: Option<String>
The alias of the asset property.
property_id: Option<String>
The ID of the asset property.
property_value: Option<AssetPropertyValue>
The value to send to the asset property. This value contains timestamp, quality, and value (TQV) information.
Trait Implementations
sourceimpl Clone for IotSiteWiseAction
impl Clone for IotSiteWiseAction
sourcefn clone(&self) -> IotSiteWiseAction
fn clone(&self) -> IotSiteWiseAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IotSiteWiseAction
impl Debug for IotSiteWiseAction
sourceimpl Default for IotSiteWiseAction
impl Default for IotSiteWiseAction
sourcefn default() -> IotSiteWiseAction
fn default() -> IotSiteWiseAction
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for IotSiteWiseAction
impl<'de> Deserialize<'de> for IotSiteWiseAction
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<IotSiteWiseAction> for IotSiteWiseAction
impl PartialEq<IotSiteWiseAction> for IotSiteWiseAction
sourcefn eq(&self, other: &IotSiteWiseAction) -> bool
fn eq(&self, other: &IotSiteWiseAction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IotSiteWiseAction) -> bool
fn ne(&self, other: &IotSiteWiseAction) -> bool
This method tests for !=
.
sourceimpl Serialize for IotSiteWiseAction
impl Serialize for IotSiteWiseAction
impl StructuralPartialEq for IotSiteWiseAction
Auto Trait Implementations
impl RefUnwindSafe for IotSiteWiseAction
impl Send for IotSiteWiseAction
impl Sync for IotSiteWiseAction
impl Unpin for IotSiteWiseAction
impl UnwindSafe for IotSiteWiseAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more