-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnAlarm_MetricProperty.go
42 lines (39 loc) · 1.8 KB
/
CfnAlarm_MetricProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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"`
}