cdklabs / cdk-monitoring-constructs

Easy-to-use CDK constructs for monitoring your AWS infrastructure
https://constructs.dev/packages/cdk-monitoring-constructs
Apache License 2.0
444 stars 56 forks source link

fix: make anomaly detection alarm work on math expression #426

Closed Laxenade closed 9 months ago

Laxenade commented 9 months ago

Fixes #425 Fixes #340

Changes

Changes to the implementation of AnomalyDetectionMathExpression:

I haven't come across any internal or external documentation indicating that two returnData: true are necessary for anomaly detection. However, after doing some experiments on CFN, this appears to be true.

Testing

I copied the fix into my own CDK package, with the fix, I was able to deploy my stacks.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license