DataDog

Log an event with DataDog.

DataDog

API Docs

Meraki HTTPS Server

HTTPS URL

Shared Secret

Templates

Read more on GitHub

body.liquid


{% 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


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