DataDog
Log an event with DataDog.
Meraki HTTPS Server
HTTPS URL
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
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"
}