package awscloudwatch // The `Metric` property type represents a specific metric. // // `Metric` is a property of the [MetricStat](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html) property type. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // metricProperty := &MetricProperty{ // Dimensions: []interface{}{ // &DimensionProperty{ // Name: jsii.String("name"), // Value: jsii.String("value"), // }, // }, // MetricName: jsii.String("metricName"), // Namespace: jsii.String("namespace"), // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html // type CfnAlarm_MetricProperty struct { // The metric dimensions that you want to be used for the metric that the alarm will watch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-dimensions // Dimensions interface{} `field:"optional" json:"dimensions" yaml:"dimensions"` // The name of the metric that you want the alarm to watch. // // 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 // MetricName *string `field:"optional" json:"metricName" yaml:"metricName"` // The namespace of the metric that the alarm will watch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-namespace // Namespace *string `field:"optional" json:"namespace" yaml:"namespace"` }