Interface CfnAnomalyDetector.ISingleMetricAnomalyDetectorProperty
Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISingleMetricAnomalyDetectorProperty
Syntax (vb)
Public Interface ISingleMetricAnomalyDetectorProperty
Remarks
If you have enabled unified cross-account observability, and this account is a monitoring account, the metric can be in the same account or a source account.
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 singleMetricAnomalyDetectorProperty = new SingleMetricAnomalyDetectorProperty {
AccountId = "accountId",
Dimensions = new [] { new DimensionProperty {
Name = "name",
Value = "value"
} },
MetricName = "metricName",
Namespace = "namespace",
Stat = "stat"
};
Synopsis
Properties
Account |
If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here. |
Dimensions | The metric dimensions to create the anomaly detection model for. |
Metric |
The name of the metric to create the anomaly detection model for. |
Namespace | The namespace of the metric to create the anomaly detection model for. |
Stat | The statistic to use for the metric and anomaly detection model. |
Properties
AccountId
If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here.
virtual string AccountId { get; }
Property Value
System.
Remarks
If you omit this parameter, the current account is used.
Dimensions
The metric dimensions to create the anomaly detection model for.
virtual object Dimensions { get; }
Property Value
System.
Remarks
MetricName
The name of the metric to create the anomaly detection model for.
virtual string MetricName { get; }
Property Value
System.
Remarks
Namespace
The namespace of the metric to create the anomaly detection model for.
virtual string Namespace { get; }
Property Value
System.
Remarks
Stat
The statistic to use for the metric and anomaly detection model.
virtual string Stat { get; }
Property Value
System.