Class CloudWatchPutMetricAction
(experimental) The action to capture an Amazon CloudWatch metric.
Inheritance
System.Object
CloudWatchPutMetricAction
Implements
Namespace: Amazon.CDK.AWS.IoT.Actions.Alpha
Assembly: Amazon.CDK.AWS.IoT.Actions.Alpha.dll
Syntax (csharp)
public class CloudWatchPutMetricAction : DeputyBase, IAction
Syntax (vb)
Public Class CloudWatchPutMetricAction
Inherits DeputyBase
Implements IAction
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var topicRule = new TopicRule(this, "TopicRule", new TopicRuleProps {
Sql = IotSql.FromStringAsVer20160323("SELECT topic(2) as device_id, namespace, unit, value, timestamp FROM 'device/+/data'"),
Actions = new [] {
new CloudWatchPutMetricAction(new CloudWatchPutMetricActionProps {
MetricName = "${topic(2)}",
MetricNamespace = "${namespace}",
MetricUnit = "${unit}",
MetricValue = "${value}",
MetricTimestamp = "${timestamp}"
}) }
});
Synopsis
Constructors
CloudWatchPutMetricAction(ICloudWatchPutMetricActionProps) | |
CloudWatchPutMetricAction(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CloudWatchPutMetricAction(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Constructors
CloudWatchPutMetricAction(ICloudWatchPutMetricActionProps)
public CloudWatchPutMetricAction(ICloudWatchPutMetricActionProps props)
Parameters
Remarks
Stability: Experimental
CloudWatchPutMetricAction(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CloudWatchPutMetricAction(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CloudWatchPutMetricAction(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CloudWatchPutMetricAction(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props