Skip to content

Commit 9bdb0f6

Browse files
Test new period prop in AnomalyDetectoinProps
1 parent 8bce93c commit 9bdb0f6

File tree

10 files changed

+885
-223
lines changed

10 files changed

+885
-223
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.anomaly-detection-alarm.js.snapshot/AnomalyDetectionAlarmIntegTestDefaultTestDeployAssert033A4433.assets.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.anomaly-detection-alarm.js.snapshot/AnomalyDetectionAlarmIntegTestDefaultTestDeployAssert033A4433.template.json

Lines changed: 53 additions & 136 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.anomaly-detection-alarm.js.snapshot/AnomalyDetectionAlarmTestStack.assets.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-cloudwatch/test/integ.anomaly-detection-alarm.js.snapshot/AnomalyDetectionAlarmTestStack.template.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,34 @@
8585
],
8686
"ThresholdMetricId": "expr_1"
8787
}
88+
},
89+
"CustomPeriodAnomalyAlarmD85345B9": {
90+
"Type": "AWS::CloudWatch::Alarm",
91+
"Properties": {
92+
"ComparisonOperator": "LessThanLowerOrGreaterThanUpperThreshold",
93+
"EvaluationPeriods": 1,
94+
"Metrics": [
95+
{
96+
"Expression": "ANOMALY_DETECTION_BAND(m0, 2)",
97+
"Id": "expr_1",
98+
"Label": "Anomaly Detection Band",
99+
"ReturnData": true
100+
},
101+
{
102+
"Id": "m0",
103+
"MetricStat": {
104+
"Metric": {
105+
"MetricName": "CPUUtilization",
106+
"Namespace": "AWS/EC2"
107+
},
108+
"Period": 86400,
109+
"Stat": "Average"
110+
},
111+
"ReturnData": true
112+
}
113+
],
114+
"ThresholdMetricId": "expr_1"
115+
}
88116
}
89117
},
90118
"Outputs": {
@@ -111,6 +139,14 @@
111139
"Export": {
112140
"Name": "AnomalyDetectionAlarmTestStack:ExportsOutputRefDescriptiveAnomalyAlarm8B14203E100E41DF"
113141
}
142+
},
143+
"ExportsOutputRefCustomPeriodAnomalyAlarmD85345B903D51401": {
144+
"Value": {
145+
"Ref": "CustomPeriodAnomalyAlarmD85345B9"
146+
},
147+
"Export": {
148+
"Name": "AnomalyDetectionAlarmTestStack:ExportsOutputRefCustomPeriodAnomalyAlarmD85345B903D51401"
149+
}
114150
}
115151
},
116152
"Parameters": {

0 commit comments

Comments
 (0)