Class CfnAnomalyDetector.MetricMathAnomalyDetectorProperty
Indicates the CloudWatch math expression that provides the time series the anomaly detector uses as input.
Inheritance
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MetricMathAnomalyDetectorProperty : Object, CfnAnomalyDetector.IMetricMathAnomalyDetectorProperty
Syntax (vb)
Public Class MetricMathAnomalyDetectorProperty
Inherits Object
Implements CfnAnomalyDetector.IMetricMathAnomalyDetectorProperty
Remarks
The designated math expression must return a single time series.
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.AWS.CloudWatch;
var metricMathAnomalyDetectorProperty = new MetricMathAnomalyDetectorProperty {
MetricDataQueries = new [] { new MetricDataQueryProperty {
Id = "id",
// the properties below are optional
AccountId = "accountId",
Expression = "expression",
Label = "label",
MetricStat = new MetricStatProperty {
Metric = new MetricProperty {
MetricName = "metricName",
Namespace = "namespace",
// the properties below are optional
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} }
},
Period = 123,
Stat = "stat",
// the properties below are optional
Unit = "unit"
},
Period = 123,
ReturnData = false
} }
};
Synopsis
Constructors
MetricMathAnomalyDetectorProperty() |
Properties
MetricDataQueries | An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. |
Constructors
MetricMathAnomalyDetectorProperty()
public MetricMathAnomalyDetectorProperty()
Properties
MetricDataQueries
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression.
public object MetricDataQueries { get; set; }
Property Value
System.Object
Remarks
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.