Class CfnDetectorModel.AssetPropertyTimestampProperty
A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference .
Inheritance
Namespace: Amazon.CDK.AWS.IoTEvents
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AssetPropertyTimestampProperty : Object, CfnDetectorModel.IAssetPropertyTimestampProperty
Syntax (vb)
Public Class AssetPropertyTimestampProperty
Inherits Object
Implements CfnDetectorModel.IAssetPropertyTimestampProperty
Remarks
You must use expressions for all parameters in AssetPropertyTimestamp
. The expressions accept literals, operators, functions, references, and substitution templates.
Examples - For literal values, the expressions must contain single quotes. For example, the value for the timeInSeconds
parameter can be '1586400675'
.
In the following example, the value for the timeInSeconds
parameter uses a substitution template.
'${$input.TemperatureInput.sensorData.timestamp / 1000}'
For more information, see Expressions in the AWS IoT Events Developer Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTEvents;
var assetPropertyTimestampProperty = new AssetPropertyTimestampProperty {
TimeInSeconds = "timeInSeconds",
// the properties below are optional
OffsetInNanos = "offsetInNanos"
};
Synopsis
Constructors
AssetPropertyTimestampProperty() |
Properties
OffsetInNanos | The nanosecond offset converted from |
TimeInSeconds | The timestamp, in seconds, in the Unix epoch format. |
Constructors
AssetPropertyTimestampProperty()
public AssetPropertyTimestampProperty()
Properties
OffsetInNanos
The nanosecond offset converted from timeInSeconds
.
public string OffsetInNanos { get; set; }
Property Value
System.String
Remarks
TimeInSeconds
The timestamp, in seconds, in the Unix epoch format.
public string TimeInSeconds { get; set; }
Property Value
System.String
Remarks
The valid range is between 1-31556889864403199.