Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add sampleCountMetricId to CustomAlarmThreshold #581

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

bamarni
Copy link
Contributor

@bamarni bamarni commented Oct 16, 2024

This provides support for minSampleCountToEvaluateDatapoint when using eg. ErrorAlarmFactory. Without this change and with a MathExpression containing multiple metrics, one would get the following error:

"sampleCountMetricId must be specified when using minSampleCountToEvaluateDatapoint with a multiple-metric MathExpression"

However sampleCountMetricId is currently not available in CustomAlarmThreshold.

See #466 for original change.


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

@bamarni bamarni changed the title Add sampleCountMetricId to CustomAlarmThreshold [fix] Add sampleCountMetricId to CustomAlarmThreshold Oct 16, 2024
@bamarni bamarni changed the title [fix] Add sampleCountMetricId to CustomAlarmThreshold fix: Add sampleCountMetricId to CustomAlarmThreshold Oct 16, 2024
This provides support for `minSampleCountToEvaluateDatapoint`
when using eg. `ErrorAlarmFactory`.

See cdklabs#466 where the feature was introduced.
@mergify mergify bot merged commit 08e4131 into cdklabs:main Oct 16, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants