Last active
January 29, 2017 07:44
-
-
Save lorentzca/964071e0cbba25f9dd8f36aae6ac0a3e to your computer and use it in GitHub Desktop.
とにかくmackerelのグラフアノテーション機能をapiから叩いてみたいときに実行するコマンド
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
curl -X POST -H "X-Api-Key: $MACKEREL_APIKEY" -H "Content-Type:application/json" -d "{\"title\": \"test\", \"description\": \"test-$(date +%Y%m%d%H%M)\", \"from\": $(date +%s), \"to\": $(date +%s), \"service\": \"サービス名\", \"roles\": [\"ロール名\"]}" https://mackerel.io/api/v0/graph-annotations |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requirement
Set mackerel api key