@Generated(value="jsii-pacmak/1.78.1 (build 878761e)", date="2023-04-17T22:38:13.256Z") @Stability(value=Experimental) public interface CloudWatchPutMetricActionProps extends software.amazon.jsii.JsiiSerializable, CommonActionProps
Example:
TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule")
.sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, namespace, unit, value, timestamp FROM 'device/+/data'"))
.actions(List.of(
CloudWatchPutMetricAction.Builder.create()
.metricName("${topic(2)}")
.metricNamespace("${namespace}")
.metricUnit("${unit}")
.metricValue("${value}")
.metricTimestamp("${timestamp}")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CloudWatchPutMetricActionProps.Builder
A builder for
CloudWatchPutMetricActionProps |
static class |
CloudWatchPutMetricActionProps.Jsii$Proxy
An implementation for
CloudWatchPutMetricActionProps |
| Modifier and Type | Method and Description |
|---|---|
static CloudWatchPutMetricActionProps.Builder |
builder() |
String |
getMetricName()
(experimental) The CloudWatch metric name.
|
String |
getMetricNamespace()
(experimental) The CloudWatch metric namespace name.
|
default String |
getMetricTimestamp()
(experimental) A string that contains the timestamp, expressed in seconds in Unix epoch time.
|
String |
getMetricUnit()
(experimental) The metric unit supported by CloudWatch.
|
String |
getMetricValue()
(experimental) A string that contains the CloudWatch metric value.
|
getRole@Stability(value=Experimental) @NotNull String getMetricName()
Supports substitution templates.
@Stability(value=Experimental) @NotNull String getMetricNamespace()
Supports substitution templates.
@Stability(value=Experimental) @NotNull String getMetricUnit()
Supports substitution templates.
@Stability(value=Experimental) @NotNull String getMetricValue()
Supports substitution templates.
@Stability(value=Experimental) @Nullable default String getMetricTimestamp()
Supports substitution templates.
Default: - none -- Defaults to the current Unix epoch time.
@Stability(value=Experimental) static CloudWatchPutMetricActionProps.Builder builder()
builder in interface CommonActionPropsCloudWatchPutMetricActionProps.Builder of CloudWatchPutMetricActionPropsCopyright © 2023. All rights reserved.