-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnAnomalyDetector_SingleMetricAnomalyDetectorProperty.go
52 lines (49 loc) · 3 KB
/
CfnAnomalyDetector_SingleMetricAnomalyDetectorProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package awscloudwatch
// Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input.
//
// 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.
//
// 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"
//
// singleMetricAnomalyDetectorProperty := &SingleMetricAnomalyDetectorProperty{
// AccountId: jsii.String("accountId"),
// Dimensions: []interface{}{
// &DimensionProperty{
// Name: jsii.String("name"),
// Value: jsii.String("value"),
// },
// },
// MetricName: jsii.String("metricName"),
// Namespace: jsii.String("namespace"),
// Stat: jsii.String("stat"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html
//
type CfnAnomalyDetector_SingleMetricAnomalyDetectorProperty struct {
// 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.
//
// If you omit this parameter, the current account is used.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-accountid
//
AccountId *string `field:"optional" json:"accountId" yaml:"accountId"`
// The metric dimensions to create the anomaly detection model for.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-dimensions
//
Dimensions interface{} `field:"optional" json:"dimensions" yaml:"dimensions"`
// The name of the metric to create the anomaly detection model for.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-metricname
//
MetricName *string `field:"optional" json:"metricName" yaml:"metricName"`
// The namespace of the metric to create the anomaly detection model for.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-namespace
//
Namespace *string `field:"optional" json:"namespace" yaml:"namespace"`
// The statistic to use for the metric and anomaly detection model.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-stat
//
Stat *string `field:"optional" json:"stat" yaml:"stat"`
}