Class CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty
Designates the CloudWatch metric and statistic 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 SingleMetricAnomalyDetectorProperty : Object, CfnAnomalyDetector.ISingleMetricAnomalyDetectorProperty
Syntax (vb)
Public Class SingleMetricAnomalyDetectorProperty
Inherits Object
Implements CfnAnomalyDetector.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
Constructors
SingleMetricAnomalyDetectorProperty() |
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. |
Dimensions | The metric dimensions to create the anomaly detection model for. |
MetricName | 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. |
Constructors
SingleMetricAnomalyDetectorProperty()
public SingleMetricAnomalyDetectorProperty()
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.
public string AccountId { get; set; }
Property Value
System.String
Remarks
If you omit this parameter, the current account is used.
Dimensions
The metric dimensions to create the anomaly detection model for.
public object Dimensions { get; set; }
Property Value
System.Object
Remarks
MetricName
The name of the metric to create the anomaly detection model for.
public string MetricName { get; set; }
Property Value
System.String
Remarks
Namespace
The namespace of the metric to create the anomaly detection model for.
public string Namespace { get; set; }
Property Value
System.String
Remarks
Stat
The statistic to use for the metric and anomaly detection model.
public string Stat { get; set; }
Property Value
System.String