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"` }