Commit 8388ee0
committed
fix(cloudwatch): respect metric period in AnomalyDetectionAlarm
Fixes issue where anomaly detection band alarm's period always
defaulted to 300 seconds regardless of the metric's period:
Pass the metric's period to anomalyDetectionFor() to prevent
MathExpression from using its default period.1 parent 86638f6 commit 8388ee0
File tree
13 files changed
+961
-228
lines changed- packages
- @aws-cdk-testing/framework-integ/test/aws-cloudwatch/test
- integ.anomaly-detection-alarm.js.snapshot
- asset.7131a84a4415494610e808e07b00bedc7d2578a973f5069309ad6a8a74cf00db.bundle
- aws-cdk-lib/aws-cloudwatch
- lib
- test
13 files changed
+961
-228
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 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 | + | |
88 | 116 | | |
89 | 117 | | |
90 | 118 | | |
| |||
111 | 139 | | |
112 | 140 | | |
113 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
114 | 150 | | |
115 | 151 | | |
116 | 152 | | |
| |||
0 commit comments