Skip to content

Instantly share code, notes, and snippets.

@icelander
Created September 2, 2021 14:02
Show Gist options
  • Save icelander/2f9938ad68d1e0aa656f97969895d080 to your computer and use it in GitHub Desktop.
Save icelander/2f9938ad68d1e0aa656f97969895d080 to your computer and use it in GitHub Desktop.
This is what is posted to the webhook URL when a Mattermost Playbook Run has its status updated
{
"id": "q67iw187djnoimfcz4t9xk3ibe",
"name": "Run Name",
"description": "Status update description",
"owner_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"reporter_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"team_id": "7wx1ybtjebgyfp7b77r1x3pp7c",
"channel_id": "fhma9oci8jgqiy5em1s4k6gypy",
"create_at": 1630591134576,
"end_at": 0,
"delete_at": 0,
"active_stage": 0,
"active_stage_title": "",
"post_id": "",
"playbook_id": "9j89mu8opiytdf1euuqa98b3co",
"checklists": [
{
"id": "iu3xkmopw3fdzpw8dfi1btyb7o",
"title": "Triage",
"items": [
{
"id": "wwmwtpxc7typzpkk1us3zrcukr",
"title": "Acknowledge alert",
"state": "closed",
"state_modified": 1630591215485,
"state_modified_post_id": "p3jazokihbfqmb43ezrrh7661c",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "i1ck9ui4dp8wz85niqwj9zi7zo",
"title": "Announce incident type and resources",
"state": "closed",
"state_modified": 1630591218920,
"state_modified_post_id": "4d3z43tb5tdeub8w86ptyu5yjo",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "/echo \"\"",
"command_last_run": 1630591217945,
"description": ""
},
{
"id": "3shtgguhbffctr4h56779prmdy",
"title": "Get alert info",
"state": "closed",
"state_modified": 1630591220648,
"state_modified_post_id": "8fmjb7tj63fyz8ig6iqyt4czsh",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "tgtfbnwgh7dy8c7ur1oeeihq4c",
"title": "Invite escalators",
"state": "closed",
"state_modified": 1630591221970,
"state_modified_post_id": "63u4zkgnctbhjbck1szkugdmbo",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "nwmysqojxfbe8dwda4dnqs8n4w",
"title": "Determine priority",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "npj1y65zebfbtdwdp3un8sreda",
"title": "Update alert priority",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "q9ydk6uftbrcuq4pia1dkd9xwy",
"title": "Create a JIRA ticket",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "/jira create",
"command_last_run": 0,
"description": ""
},
{
"id": "so6hespsafge5yckyqyubshkih",
"title": "Find out who’s on call",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "/genie whoisoncall",
"command_last_run": 0,
"description": ""
},
{
"id": "dgrei3cnjty9pb5cgu15be6s4r",
"title": "Announce incident",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "phh8rown638buqk7afxggkrh3w",
"title": "Invite on-call lead",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
}
]
},
{
"id": "t1onnnrcgpyx3gi6dq47gf4buc",
"title": "Investigation",
"items": [
{
"id": "msr4bx8tz7bb7myqzzfejb3iuo",
"title": "Perform initial investigation",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "sumg3kg3g7n45nx3yrpbfpwn8w",
"title": "Escalate to other on-call members (optional)",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "nmnikodzobyrpr9698jdaeonww",
"title": "Escalate to other engineering teams (optional)",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
}
]
},
{
"id": "5ur1y4377tnku879w7wq5p5yna",
"title": "Resolution",
"items": [
{
"id": "cw5e3gyh17difceua3mryp7knr",
"title": "Close alert",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "oyr5unjm53y1x8urd9pk9eka5w",
"title": "End the incident",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "/incident end",
"command_last_run": 0,
"description": ""
},
{
"id": "tmz4qyphwffo9xjzi1ya1guxqo",
"title": "Schedule a post-mortem",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "amiayju3ppbw8cr1te74xza9io",
"title": "Record post-mortem action items",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "61gqfqudqpy1786uaajztw74ze",
"title": "Update playbook with learnings",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
},
{
"id": "3ugk7j9anbynucc4yq55cdpngc",
"title": "Export channel message history",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "/export",
"command_last_run": 0,
"description": ""
},
{
"id": "snhdji9z7br888xunzr8sztnzc",
"title": "Archive this channel",
"state": "",
"state_modified": 0,
"state_modified_post_id": "",
"assignee_id": "",
"assignee_modified": 0,
"assignee_modified_post_id": "",
"command": "",
"command_last_run": 0,
"description": ""
}
]
}
],
"status_posts": [
{
"id": "6mtxuh58a38fdpijyfzeimwkfy",
"status": "Active",
"create_at": 1630591242992,
"delete_at": 0
}
],
"current_status": "Active",
"last_status_update_at": 1630591242992,
"reminder_post_id": "",
"previous_reminder": 900000000000,
"broadcast_channel_id": "pnn8agsbjt8bfrih4o5hrt633w",
"reminder_message_template": "",
"invited_user_ids": null,
"invited_group_ids": null,
"timeline_events": [
{
"id": "t5psxh1dcfdb7kcq9ato8iwara",
"playbook_run_id": "q67iw187djnoimfcz4t9xk3ibe",
"create_at": 1630591134576,
"delete_at": 0,
"event_at": 1630591134576,
"event_type": "incident_created",
"summary": "",
"details": "",
"post_id": "68uufrg4wbnj58rkm3zjb9bpyo",
"subject_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"creator_user_id": ""
},
{
"id": "7i7smssm8t85pb49iu8opo6xar",
"playbook_run_id": "q67iw187djnoimfcz4t9xk3ibe",
"create_at": 1630591134596,
"delete_at": 0,
"event_at": 1630591134596,
"event_type": "user_joined_left",
"summary": "@playbook joined ~run-name",
"details": "{\"action\": \"joined\", \"title\": \"@playbook joined the channel\"}",
"post_id": "",
"subject_user_id": "ttmxzq9gw3fddejjz7tfgkp1be",
"creator_user_id": ""
},
{
"id": "oa418uxa9bd77gj8n69xaspgzr",
"playbook_run_id": "q67iw187djnoimfcz4t9xk3ibe",
"create_at": 1630591134629,
"delete_at": 0,
"event_at": 1630591134629,
"event_type": "user_joined_left",
"summary": "@playbook added @admin to ~run-name",
"details": "{\"action\": \"joined\", \"title\": \"@admin joined the channel\"}",
"post_id": "",
"subject_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"creator_user_id": "ttmxzq9gw3fddejjz7tfgkp1be"
},
{
"id": "fjdz1zcndp8zfj5ww83h3o13cc",
"playbook_run_id": "q67iw187djnoimfcz4t9xk3ibe",
"create_at": 1630591215485,
"delete_at": 0,
"event_at": 1630591215485,
"event_type": "task_state_modified",
"summary": "checked off checklist item **Acknowledge alert**",
"details": "",
"post_id": "p3jazokihbfqmb43ezrrh7661c",
"subject_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"creator_user_id": ""
},
{
"id": "mge6wbk1rpropf5wpfmjj1wroy",
"playbook_run_id": "q67iw187djnoimfcz4t9xk3ibe",
"create_at": 1630591217953,
"delete_at": 0,
"event_at": 1630591217953,
"event_type": "ran_slash_command",
"summary": "ran the slash command: `/echo \"\"`",
"details": "",
"post_id": "",
"subject_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"creator_user_id": ""
},
{
"id": "oksfuqw3qire5rcrkqqzbixinr",
"playbook_run_id": "q67iw187djnoimfcz4t9xk3ibe",
"create_at": 1630591218920,
"delete_at": 0,
"event_at": 1630591218920,
"event_type": "task_state_modified",
"summary": "checked off checklist item **Announce incident type and resources**",
"details": "",
"post_id": "4d3z43tb5tdeub8w86ptyu5yjo",
"subject_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"creator_user_id": ""
},
{
"id": "uysqcnknbig4djp3tu9kd93tja",
"playbook_run_id": "q67iw187djnoimfcz4t9xk3ibe",
"create_at": 1630591220648,
"delete_at": 0,
"event_at": 1630591220648,
"event_type": "task_state_modified",
"summary": "checked off checklist item **Get alert info**",
"details": "",
"post_id": "8fmjb7tj63fyz8ig6iqyt4czsh",
"subject_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"creator_user_id": ""
},
{
"id": "n33rr8ikqfrqpyew385aocnhar",
"playbook_run_id": "q67iw187djnoimfcz4t9xk3ibe",
"create_at": 1630591221970,
"delete_at": 0,
"event_at": 1630591221970,
"event_type": "task_state_modified",
"summary": "checked off checklist item **Invite escalators**",
"details": "",
"post_id": "63u4zkgnctbhjbck1szkugdmbo",
"subject_user_id": "9pjzm4kit7gp7mwadmcs697dyo",
"creator_user_id": ""
}
],
"default_owner_id": "",
"announcement_channel_id": "",
"webhook_on_creation_url": "http://192.168.0.220:4567/hook",
"webhook_on_status_update_url": "http://192.168.0.220:4567/hook",
"retrospective": "",
"retrospective_published_at": 0,
"retrospective_was_canceled": false,
"retrospective_reminder_interval_seconds": 0,
"message_on_join": "",
"export_channel_on_archive_enabled": false,
"categorize_channel_enabled": false,
"channel_url": "https://mattermost.example.com/odio-0/channels/run-name",
"details_url": "https://mattermost.example.com/odio-0/com.mattermost.plugin-incident-management/runs/q67iw187djnoimfcz4t9xk3ibe"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment