-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnAnomalyDetectorProps.go
120 lines (117 loc) · 5.45 KB
/
CfnAnomalyDetectorProps.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
package awscloudwatch
// Properties for defining a `CfnAnomalyDetector`.
//
// 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"
//
// cfnAnomalyDetectorProps := &CfnAnomalyDetectorProps{
// Configuration: &ConfigurationProperty{
// ExcludedTimeRanges: []interface{}{
// &RangeProperty{
// EndTime: jsii.String("endTime"),
// StartTime: jsii.String("startTime"),
// },
// },
// MetricTimeZone: jsii.String("metricTimeZone"),
// },
// Dimensions: []interface{}{
// &DimensionProperty{
// Name: jsii.String("name"),
// Value: jsii.String("value"),
// },
// },
// MetricCharacteristics: &MetricCharacteristicsProperty{
// PeriodicSpikes: jsii.Boolean(false),
// },
// MetricMathAnomalyDetector: &MetricMathAnomalyDetectorProperty{
// MetricDataQueries: []interface{}{
// &MetricDataQueryProperty{
// Id: jsii.String("id"),
//
// // the properties below are optional
// AccountId: jsii.String("accountId"),
// Expression: jsii.String("expression"),
// Label: jsii.String("label"),
// MetricStat: &MetricStatProperty{
// Metric: &MetricProperty{
// MetricName: jsii.String("metricName"),
// Namespace: jsii.String("namespace"),
//
// // the properties below are optional
// Dimensions: []interface{}{
// &DimensionProperty{
// Name: jsii.String("name"),
// Value: jsii.String("value"),
// },
// },
// },
// Period: jsii.Number(123),
// Stat: jsii.String("stat"),
//
// // the properties below are optional
// Unit: jsii.String("unit"),
// },
// Period: jsii.Number(123),
// ReturnData: jsii.Boolean(false),
// },
// },
// },
// MetricName: jsii.String("metricName"),
// Namespace: jsii.String("namespace"),
// SingleMetricAnomalyDetector: &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"),
// },
// Stat: jsii.String("stat"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html
//
type CfnAnomalyDetectorProps struct {
// Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model.
//
// The configuration can also include the time zone to use for the metric.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-configuration
//
Configuration interface{} `field:"optional" json:"configuration" yaml:"configuration"`
// The dimensions of the metric associated with the anomaly detection band.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-dimensions
//
Dimensions interface{} `field:"optional" json:"dimensions" yaml:"dimensions"`
// Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models.
//
// Currently, it includes the `PeriodicSpikes` parameter.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metriccharacteristics
//
MetricCharacteristics interface{} `field:"optional" json:"metricCharacteristics" yaml:"metricCharacteristics"`
// The CloudWatch metric math expression for this anomaly detector.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricmathanomalydetector
//
MetricMathAnomalyDetector interface{} `field:"optional" json:"metricMathAnomalyDetector" yaml:"metricMathAnomalyDetector"`
// The name of the metric associated with the anomaly detection band.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricname
//
MetricName *string `field:"optional" json:"metricName" yaml:"metricName"`
// The namespace of the metric associated with the anomaly detection band.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-namespace
//
Namespace *string `field:"optional" json:"namespace" yaml:"namespace"`
// The CloudWatch metric and statistic for this anomaly detector.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector
//
SingleMetricAnomalyDetector interface{} `field:"optional" json:"singleMetricAnomalyDetector" yaml:"singleMetricAnomalyDetector"`
// The statistic of the metric associated with the anomaly detection band.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-stat
//
Stat *string `field:"optional" json:"stat" yaml:"stat"`
}