Interface CfnAlarm.IMetricProperty
The Metric
property type represents a specific metric.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public interface IMetricProperty
Syntax (vb)
Public Interface IMetricProperty
Remarks
Metric
is a property of the MetricStat property type.
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.CloudWatch;
var metricProperty = new MetricProperty {
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace"
};
Synopsis
Properties
Dimensions | The metric dimensions that you want to be used for the metric that the alarm will watch. |
MetricName | The name of the metric that you want the alarm to watch. |
Namespace | The namespace of the metric that the alarm will watch. |
Properties
Dimensions
The metric dimensions that you want to be used for the metric that the alarm will watch.
virtual object Dimensions { get; }
Property Value
System.Object
Remarks
MetricName
The name of the metric that you want the alarm to watch.
virtual string MetricName { get; }
Property Value
System.String
Remarks
Namespace
The namespace of the metric that the alarm will watch.
virtual string Namespace { get; }
Property Value
System.String