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(UsageAlarmFactory): allowing addition of multiple alarms from the same class #279

Merged
merged 4 commits into from Dec 2, 2022

Conversation

AakarshanSingla
Copy link
Contributor

@AakarshanSingla AakarshanSingla commented Dec 1, 2022

Fixes # Addition of multiple alarms from the sameclass

UsageAlarmFactory is creating same AlarmSuffix for every alarm that is being added in a class which leads to creation of duplicate alarms, as they have same name. This fix appends the UsageType to the alarm name thus allowing users to create alarm on avg, p50,p90... all metrics from the same class.


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

@AakarshanSingla AakarshanSingla changed the title fix(UsageAlarmFactory) allowing addition of multiple alarms from the … fix(UsageAlarmFactory): allowing addition of multiple alarms from the … Dec 1, 2022
@echeung-amzn echeung-amzn changed the title fix(UsageAlarmFactory): allowing addition of multiple alarms from the … fix(UsageAlarmFactory): allowing addition of multiple alarms from the same class Dec 2, 2022
Copy link
Member

@echeung-amzn echeung-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure to run yarn build locally first and commit all changes.

lib/common/monitoring/alarms/UsageAlarmFactory.ts Outdated Show resolved Hide resolved
lib/common/monitoring/alarms/UsageAlarmFactory.ts Outdated Show resolved Hide resolved
@mergify mergify bot merged commit ae9c19b into cdklabs:main Dec 2, 2022
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.

None yet

2 participants