-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnAnomalyDetector_MetricMathAnomalyDetectorProperty.go
57 lines (54 loc) · 2.48 KB
/
CfnAnomalyDetector_MetricMathAnomalyDetectorProperty.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package awscloudwatch
// Indicates the CloudWatch math expression that provides the time series the anomaly detector uses as input.
//
// The designated math expression must return a single time series.
//
// 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"
//
// metricMathAnomalyDetectorProperty := &MetricMathAnomalyDetectorProperty{
// MetricDataQueries: []interface{}{
// &MetricDataQueryProperty{
// Id: jsii.String("id"),
//
// // the properties below are optional
// AccountId: jsii.String("accountId"),
// Expression: jsii.String("expression"),
// Label: jsii.String("label"),
// MetricStat: &MetricStatProperty{
// Metric: &MetricProperty{
// MetricName: jsii.String("metricName"),
// Namespace: jsii.String("namespace"),
//
// // the properties below are optional
// Dimensions: []interface{}{
// &DimensionProperty{
// Name: jsii.String("name"),
// Value: jsii.String("value"),
// },
// },
// },
// Period: jsii.Number(123),
// Stat: jsii.String("stat"),
//
// // the properties below are optional
// Unit: jsii.String("unit"),
// },
// Period: jsii.Number(123),
// ReturnData: jsii.Boolean(false),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricmathanomalydetector.html
//
type CfnAnomalyDetector_MetricMathAnomalyDetectorProperty struct {
// An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression.
//
// Each item in `MetricDataQueries` gets a metric or performs a math expression. One item in `MetricDataQueries` is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by setting `ReturnData` to `true` for this object in the array. For all other expressions and metrics, set `ReturnData` to `false` . The designated expression must return a single time series.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricmathanomalydetector.html#cfn-cloudwatch-anomalydetector-metricmathanomalydetector-metricdataqueries
//
MetricDataQueries interface{} `field:"optional" json:"metricDataQueries" yaml:"metricDataQueries"`
}