Skip to content

Instantly share code, notes, and snippets.

@DBLaw
Created August 1, 2016 17:04
Show Gist options
  • Save DBLaw/db90dddeeb48fc6bb9f90df317bde22e to your computer and use it in GitHub Desktop.
Save DBLaw/db90dddeeb48fc6bb9f90df317bde22e to your computer and use it in GitHub Desktop.
#!/bin/sh
# Make sure you replace the API and/or APP key below
# with the ones for your account
curl -X POST -H "Content-type: application/json" \
-d '{
"title": "Did you hear the news today - test4?",
"text": "Oh man!",
"priority": "normal",
"tags": ["environment:test"],
"alert_type": "info"
}' \
'https://app.datadoghq.com/api/v1/events?api_key=THE_API_KEY'
curl -X POST -H "Content-type: application/json" \
-d '{
"title": "Did you hear the news today -test5?",
"text": "Oh girl!",
"priority": "normal",
"tags": ["environment:test"],
"alert_type": "info"
}' \
'https://app.datadoghq.com/api/v1/events?api_key=THE_API_KEY'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment