-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from mtakaki/mtakaki_3_create_incident
Initial attempt at creating incidents when an URL becomes unhealthy #3
- Loading branch information
Showing
8 changed files
with
228 additions
and
78 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ share/ | |
*.egg-info | ||
MANIFEST | ||
dist/ | ||
.idea |
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python | ||
|
||
COMPONENT_STATUS_OPERATIONAL = 1 | ||
COMPONENT_STATUS_PERFORMANCE_ISSUES = 2 | ||
COMPONENT_STATUS_PARTIAL_OUTAGE = 3 | ||
COMPONENT_STATUS_MAJOR_OUTAGE = 4 | ||
|
||
COMPONENT_STATUSES = [COMPONENT_STATUS_OPERATIONAL, | ||
COMPONENT_STATUS_PERFORMANCE_ISSUES, COMPONENT_STATUS_PARTIAL_OUTAGE, | ||
COMPONENT_STATUS_MAJOR_OUTAGE] |
Oops, something went wrong.
2c01d8e
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.
@mtakaki Any idea how to add multiple url in this , since its not working for me. Could you please help me .
2c01d8e
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.
@macbash Sure! It was actually not built to monitor multiple URLs in the same instance, as the concept was to map one URL to a component. I could add this functionality, so you could add a list of URLs, but the expectation would be the same. If this doesn't work for you, I would recommend you having multiple instances of the monitor running for each URL.
If it this aforementioned functionality fits your need, I can address it in the 0.3 milestone.