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
--- | |
rules: | |
- match: | |
$and: | |
- $day: | |
timezone: 'America/Los_Angeles' | |
$in: | |
- 1 | |
- 2 | |
- 3 |
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
{ | |
alert: {...}, // the PagerTree alert object | |
event: { | |
type: 'alert.rejected' | |
}, | |
} |
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
{ | |
integration: {...} // the integration object | |
data: { | |
... // what was sent by the integration | |
// email integration special attributes | |
to: //the recipients of the email joined by a semi-colon | |
from: // the sender of the email joined by a semi-colon | |
subject: // the email subject | |
message: // the sanitized body of the e-mail |
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
--- | |
rules: | |
- match: | |
alert.title: | |
"$regex": "Critical Systems Down" | |
"$options": "i" | |
alert.urgency: | |
"$in": | |
- high | |
- critical |
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
# Example: aggregate the alert by source for a period of 5 minutes. Then assign all aggregated alerts to tem_xxxxxx1 | |
--- | |
rules: | |
- match: | |
always: true | |
actions: | |
- type: aggregate | |
by: | |
- source_id | |
timeout: 1m |
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
--- | |
rules: | |
# array of rules | |
- match: | |
# ... properties to match | |
actions: | |
# ... array of actions |
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
- type: repeat | |
times: 1 |
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
- type: notify | |
channels: | |
- slack | |
timeout: 1m |
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
- type: ignore |