Interface CfnAnomalyDetector.IMetricMathAnomalyDetectorProperty
Indicates the CloudWatch math expression that provides the time series the anomaly detector uses as input.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public interface IMetricMathAnomalyDetectorProperty
Syntax (vb)
Public Interface 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
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. |
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.
virtual object MetricDataQueries { get; }
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.