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

DM-35878: escalate alarms to OpsGenie #52

Merged
merged 4 commits into from Aug 16, 2022
Merged

DM-35878: escalate alarms to OpsGenie #52

merged 4 commits into from Aug 16, 2022

Conversation

r-owen
Copy link
Collaborator

@r-owen r-owen commented Aug 11, 2022

No description provided.

@r-owen r-owen force-pushed the tickets/DM-35878 branch 4 times, most recently from 089eb42 to 588c1bd Compare August 13, 2022 00:36
@r-owen r-owen requested a review from wvreeven August 13, 2022 00:37
@r-owen r-owen force-pushed the tickets/DM-35878 branch 4 times, most recently from a5b6df0 to 5f911bc Compare August 15, 2022 19:40
Copy link
Contributor

@wvreeven wvreeven left a comment

Choose a reason for hiding this comment

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

In general this looks great. I particularly like the mock OpsGenie. I did find a few typos and other things I commented on. I leave it to you to process or ignore them.

f"{escalation_delay=} must be > 0 if and only if"
f"{escalation_responders=} is not empty"
)
self.escalation_responders = list(escalation_responders)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is an explicit cast to list needed here if the doc string for escalation_responders already indicates that it is a list?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't try for fully correct types in doc strings (only in formal Python type annotations). list is the shortcut I always for any generic ordered sequence.

python/lsst/ts/watcher/mock_opsgenie.py Outdated Show resolved Hide resolved
python/lsst/ts/watcher/mock_opsgenie.py Outdated Show resolved Hide resolved
python/lsst/ts/watcher/mock_opsgenie.py Outdated Show resolved Hide resolved
python/lsst/ts/watcher/watcher_csc.py Outdated Show resolved Hide resolved
Update the config schema and Alarm to support new fields for responders.
Update the model to set those fields.
Update the CSC to create a new OpsGenie alert when an alarm's
do_escalate field is set.
* Split into User Guide and Developer Guide
* Add a section on escalation
@r-owen r-owen merged commit 47aae09 into develop Aug 16, 2022
@r-owen r-owen deleted the tickets/DM-35878 branch August 16, 2022 16:53
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