-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Cloudwatch: add basic composite alarm support #11828
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
Merged
simonrw
merged 51 commits into
localstack:master
from
tiurin:add-basic-composite-alarm-support
Dec 10, 2024
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
fed139b
Add draft test for composite alarm
tiurin 11b6a7a
Comment out further test cases for now
tiurin 5bbbd9f
Inline metric alarm variables
tiurin f9937d2
Add missing comma
tiurin 09e83e8
Use unique alarm names
tiurin 21d48c0
Use more descriptive topic names
tiurin 7685da5
Subscribe SQS queu to alarm SNS topic
tiurin c50889d
Check that composite alarm is saved
tiurin 0d47210
Add composite alarm message check
tiurin 7735a5d
Record a snapshot of composite alarm
tiurin d056955
Use metric alarms ARN in composite alarm rule
tiurin c4151c3
Use only necessary transformers
tiurin 97ca92c
Add composite alarms store
tiurin ae871e7
Revert "Add composite alarms store"
tiurin 432202d
Set default attributes for a composite alarm
tiurin 6a9b0cf
Remove composite-to-metric alarm conversion
tiurin 0ee5919
Add evaluation of composite alarm state
tiurin 39cc786
Invoke composite alarm actions
tiurin 9edf934
Create SNS message response for composite alarm
tiurin c59f723
Add state reason data for composite alarm
tiurin 3614be7
Remove scheduler stub for a composite alarm
tiurin 235462a
Format state reason for composite alarm
tiurin 5c5a71b
Move transformers setup before test cases run
tiurin fce2ec1
Add composite alarm back to OK test case
tiurin e1fb6a2
Add composite alarm in ALARM because of alarm-2 test case
tiurin 505d10d
Add composite alarm not changed by second trigger test case
tiurin 20f97d3
Remove SQS message logging in test
tiurin e9a83cb
Format code
tiurin 168514b
Remove implemented TODO
tiurin b5af73b
Extract method for evaluating single composite alarm
tiurin b15caba
Extract method for for running composite alarm actions
tiurin 91d09da
Apply format and lint
tiurin c12a188
Validate if metric alarms from alarm rule exist
tiurin f0afeb0
Validate if each rule operand starts with ALARM
tiurin b4a4ccf
Add clarifying comment
tiurin 51f07f4
Update limitations in provider class description
tiurin 23b2185
Add typing to create_message_response_update_state_sns signature
tiurin deea700
Add typing to create_message_response_update_composite_alarm_state_sn…
tiurin 2898beb
Fix test_put_composite_alarm_describe_alarms
tiurin f717ef1
Verify put_composite_alarm response with snapshot
tiurin 4cf2275
Add test fixture TODOs
tiurin 525fb73
Apply format
tiurin e47fba9
Add TODO for store lock management improvements
tiurin 6fd4f9d
Log a warning when alarm rule has unsupported expressions
tiurin 6038241
Ignore alarm rule when it has unsupported expressions
tiurin 8cc0848
Add helper inner methods to check alarm action result
tiurin 346cf75
Add test when 2nd alarm from the rule is back to OK
tiurin 384979c
Add snapshot for both alarms from rule are triggered test case
tiurin 5080f12
Add TODO for describe-composite-alarm snapshot
tiurin cf51bbe
Skip rule evaluation on missing alarms
tiurin afe714a
Revert "Fix test_put_composite_alarm_describe_alarms"
tiurin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for correcting this!