1. Meraki
  2. API
  3. Webhook API
Search docsBETA
Meraki Webhook API
  • Introduction
  • Payload Templates
    • Overview
    • Getting Started
    • Custom Templates
  • Webhook Integrations
    • Overview
    • Meraki (default)
      • Included
      • Custom
    • DataDog
      • Custom
    • Microsoft Teams
      • Included
      • Custom
    • Jira
      • Custom
    • PagerDuty
      • Custom
    • ServiceNow
      • Included
    • Slack
      • Included
      • Custom
    • Webex
      • Included
      • Custom - Markdown
      • Custom - Adaptive Cards
    • Cisco XDR
      • Custom
  • Webhook Sample Alerts
  • Resources
    • Postman Collection
    • Webhook.site for testing
    • Learning Lab

DataDog

Log an event with DataDog.

DataDog

API Docs

Meraki HTTPS Server

HTTPS URL

  • USA
    • https://api.datadoghq.com/api/v1/events
  • Europe
    • https://api.datadoghq.eu/api/v1/events

Shared Secret

  • Obtain an API key for your DataDog application.
    • https://docs.datadoghq.com/api/latest/authentication/
    • Manage your DataDog API and application keys US or EU

Templates

Read more on GitHub

body.liquid

liquid
Copy
{% assign level="info" %}
{% if alertLevel == "error"%}
{% assign level="error" %}
{% endif %}
{% if alertLevel == "warning"%}
{% assign level="warning" %}
{% endif %}

{% capture markdown %}
%%%
### Alert Level: **{{alertLevel}}**

> - **Organization** - [{{organizationName}}]({{organizationUrl}})
> - **Network** -[{{networkName}}]({{networkUrl}})
> - **Device** - [{{deviceName}}]({{deviceUrl}})

### Alert Data
{% assign properties = alertData | keys -%}
| Property   |      Value      |
|----------|:-------------:|
{%- for p in properties %}
{%- if p == "imageUrl" %}
| {{p}} |  [image]({{p}})|
{%- else %} 
| {{p}} |  {{alertData[p]| jsonify}}| 
{%- endif %}
{%- endfor %}


{% if alertData.imageUrl %}
## Image
![]({{alertData.imageUrl}})
{% endif %}

%%%
{% endcapture %}

{
  "title": "{{alertType}}",
  "text": {{markdown | jsonify}},
  "source_type_name":"meraki",
  "alert_type":"{{level}}"
}

headers.liquid

liquid
Copy
{
    "DD-API-KEY":"{{sharedSecret}}",
    "Content-Type":"application/json"
}
Next