PagerDuty

API Docs

Create an incident in PagerDuty.

image_tooltip

Template

Read more on GitHub

body.liquid


{
    "payload": {
        "summary": "{{alertType}}",
        "timestamp": "{{occurredAt}}",
        "source": "{{networkId}}",
        "organizationId": "{{organizationId}}",
        "severity": "{% if alertLevel == 'informational' %}info{% else %}warning{% endif %}",
        "component": "{{deviceName}}",
        "group": "{{networkName}}",
        "class": "deploy",
        "custom_details": {{alertData | json_markdown | jsonify }}
    },
    "routing_key": "{{sharedSecret}}",
    "dedup_key": "{{alertId}}",
    "images": [
        {
            "src": "{{alertData.imageUrl}}",
            "href": "{{alertData.imageUrl}}",
            "alt": "Image"
        }
    ],
    "links": [
        {
            "href": "{{deviceUrl}}",
            "text": "Device"
        },
        {
            "href": "{{networkUrl}}",
            "text": "Network"
        },
        {
            "href": "{{organizationUrl}}",
            "text": "Organization"
        }
    ],
    "event_action": "trigger",
    "client": "Manage Meraki Device",
    "client_url": "{{deviceUrl}}"
}