Interface CfnTopicRule.ICloudwatchMetricActionProperty
Describes an action that captures a CloudWatch metric.
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICloudwatchMetricActionProperty
Syntax (vb)
Public Interface ICloudwatchMetricActionProperty
Remarks
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.IoT;
var cloudwatchMetricActionProperty = new CloudwatchMetricActionProperty {
MetricName = "metricName",
MetricNamespace = "metricNamespace",
MetricUnit = "metricUnit",
MetricValue = "metricValue",
RoleArn = "roleArn",
// the properties below are optional
MetricTimestamp = "metricTimestamp"
};
Synopsis
Properties
MetricName | The CloudWatch metric name. |
MetricNamespace | The CloudWatch metric namespace name. |
MetricTimestamp | An optional Unix timestamp . |
MetricUnit | The metric unit supported by CloudWatch. |
MetricValue | The CloudWatch metric value. |
RoleArn | The IAM role that allows access to the CloudWatch metric. |
Properties
MetricName
The CloudWatch metric name.
string MetricName { get; }
Property Value
System.String
Remarks
MetricNamespace
The CloudWatch metric namespace name.
string MetricNamespace { get; }
Property Value
System.String
Remarks
MetricTimestamp
An optional Unix timestamp .
virtual string MetricTimestamp { get; }
Property Value
System.String
Remarks
MetricUnit
The metric unit supported by CloudWatch.
string MetricUnit { get; }
Property Value
System.String
Remarks
MetricValue
The CloudWatch metric value.
string MetricValue { get; }
Property Value
System.String
Remarks
RoleArn
The IAM role that allows access to the CloudWatch metric.
string RoleArn { get; }
Property Value
System.String