Skip to content

Instantly share code, notes, and snippets.

- type: incident
handlebars: true
severity: "{{log.commonLabels.severity}}"
message: Please join the call - https://mycallsoftware.com/call/123
- type: bridge
id: brg_xxxxxxx
- type: incident
severity: SEV-2
message: Please join the call - https://mycallsoftware.com/call/123
- type: escalate
# repeat: 1 # optional, but only works if all layers are just users
rules:
# assign it to user
- receivers:
- usr_xxxxxxxx
timeout: 1m
# transfer to team if not ack in 1 min.
- receivers:
---
rules:
# ignore alerts M,W between 5-7p California Time
- match:
$and:
- $day:
timezone: 'America/Los_Angeles'
$in:
- 1 # monday
- 3 # wednesday
sensorid=%sensorid&sensor=%sensor&status=%status
---
rules:
- match:
$timeBetween:
timeformat: 'hh:mm a'
timezone: 'America/New_York'
starttime: '12:00 am'
endtime: '12:00 pm'
actions:
- type: assign
{{#if ctx.alert.meta.incident}}Incident{{else}}Alert{{/if}} {{ctx.alert.tinyId}}. {{#if ctx.alert.meta.incident}}{{ctx.alert.meta.incident_severity}}. {{ctx.alert.meta.incident_message}}.{{/if}}{{sanitize ctx.alert.title}}.
Push {{default (get "account.notification_templates.incident_notify.voice.acknowledge" ctx) 1}} to acknowledge or {{default (get "account.notification_templates.incident_notify.voice.reject" ctx) 2}} to reject.
POST /integration/int_ODCWagoG9 HTTP/1.1
Host: api.pagertree.com
Content-Type: application/json
{
"event_type": "create",
"Id": "example-id-123",
"Title": "Example Incident Title",
"Description": "Example Incident Description",
"Tags": [
Incoming call from {{join (lodash "toArray" data.From) " "}}