Show / Hide Table of Contents

Class CfnAlarm.MetricProperty

The Metric property type represents a specific metric.

Inheritance
System.Object
CfnAlarm.MetricProperty
Implements
CfnAlarm.IMetricProperty
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class MetricProperty : Object, CfnAlarm.IMetricProperty
Syntax (vb)
Public Class MetricProperty
    Inherits Object
    Implements CfnAlarm.IMetricProperty
Remarks

Metric is a property of the MetricStat property type.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html

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

Constructors

MetricProperty()

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.

Constructors

MetricProperty()

public MetricProperty()

Properties

Dimensions

The metric dimensions that you want to be used for the metric that the alarm will watch.

public object Dimensions { get; set; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-dimensions

MetricName

The name of the metric that you want the alarm to watch.

public string MetricName { get; set; }
Property Value

System.String

Remarks

This is a required field.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-metricname

Namespace

The namespace of the metric that the alarm will watch.

public string Namespace { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-namespace

Implements

CfnAlarm.IMetricProperty
Back to top Generated by DocFX