Show / Hide Table of Contents

Class CfnAlarmPropsMixin.MetricProperty

The Metric property type represents a specific metric.

Inheritance
object
CfnAlarmPropsMixin.MetricProperty
Implements
CfnAlarmPropsMixin.IMetricProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudWatch.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnAlarmPropsMixin.MetricProperty : CfnAlarmPropsMixin.IMetricProperty
Syntax (vb)
Public Class CfnAlarmPropsMixin.MetricProperty Implements CfnAlarmPropsMixin.IMetricProperty
Remarks

Metric is a property of the MetricStat property type.

See: 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.Mixins.Preview.AWS.CloudWatch.Mixins;

             var metricProperty = new MetricProperty {
                 Dimensions = new [] { new DimensionProperty {
                     Name = "name",
                     Value = "value"
                 } },
                 MetricName = "metricName",
                 Namespace = "namespace"
             };

Synopsis

Constructors

MetricProperty()

The Metric property type represents a specific metric.

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()

The Metric property type represents a specific metric.

public MetricProperty()
Remarks

Metric is a property of the MetricStat property type.

See: 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.Mixins.Preview.AWS.CloudWatch.Mixins;

             var metricProperty = new MetricProperty {
                 Dimensions = new [] { new DimensionProperty {
                     Name = "name",
                     Value = "value"
                 } },
                 MetricName = "metricName",
                 Namespace = "namespace"
             };

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

object

Remarks

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

Type union: either IResolvable or (either IResolvable or CfnAlarmPropsMixin.IDimensionProperty)[]

MetricName

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

public string? MetricName { get; set; }
Property Value

string

Remarks

This is a required field.

See: 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

string

Remarks

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

Implements

CfnAlarmPropsMixin.IMetricProperty
Back to top Generated by DocFX