Created
November 11, 2015 16:08
-
-
Save bixu/863f43e2329c72e61b92 to your computer and use it in GitHub Desktop.
Report your deployments to Circonus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APP_NAME="<app name>" | |
API_TOKEN="<api token>" | |
TIME=$(date +%s) | |
curl --user $APP_NAME:$API_TOKEN \ | |
-H "Accept: application/json" \ | |
-X POST \ | |
--data-binary "{\"category\": \"Deployment\",\"title\":\"Deployed $APP_NAME\",\"description\":\"Deployed revision X.X.X\",\"start\": $TIME,\"stop\":$TIME}" \ | |
https://api.circonus.com/annotation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment