Skip to content

Instantly share code, notes, and snippets.

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"
}
{
"event_type": "create",
"id":"{{ticket.id}}",
"title":"{{ticket.title}}",
"created_at_with_timestamp":"{{ticket.created_at_with_timestamp}}",
"description":"{{ticket.description}}",
"ticket_type":"{{ticket.ticket_type}}",
"link":"{{ticket.link}}",
"priority":"{{ticket.priority}}",
"status":"{{ticket.status}}",
{
"event_type": "acknowledge",
"id":"{{ticket.id}}",
"title":"{{ticket.title}}",
"created_at_with_timestamp":"{{ticket.created_at_with_timestamp}}",
"description":"{{ticket.description}}",
"ticket_type":"{{ticket.ticket_type}}",
"link":"{{ticket.link}}",
"priority":"{{ticket.priority}}",
"status":"{{ticket.status}}",
{
"event_type": "resolve",
"id":"{{ticket.id}}",
"title":"{{ticket.title}}",
"created_at_with_timestamp":"{{ticket.created_at_with_timestamp}}",
"description":"{{ticket.description}}",
"ticket_type":"{{ticket.ticket_type}}",
"link":"{{ticket.link}}",
"priority":"{{ticket.priority}}",
"status":"{{ticket.status}}",
{
"text": "<https://app.pagertree.com/#/alert/{{alert.id}}|{{alert.title}}> has been {{replace event.type "alert." ""}}"
}
{{{JSONstringify alert}}}
{
"text": "The alert has been acknowledged by {{alert.d_user.name}}."
}
{
"type": "alert.resolved",
"data": {
"sid":"acc_H1fh_yx6z",
"id":"alt_HJ3eGW-6M",
"createdAt": "2018-04-27T00:02:50.419Z",
"updatedAt": "2018-04-27T00:03:06.098Z",
"meta": {
"key": "value",
...
{
"type": "<event_type>",
"data": "<object>"
}
---
rules:
- match:
always: true
actions:
- type: notify
channels:
- voice
timeout: 1m
- type: notify