Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

ブログを投稿したらサービスメトリックにグラフアノテーションを登録したい #196

Open
a-know opened this issue Feb 9, 2017 · 1 comment

Comments

@a-know
Copy link
Owner

a-know commented Feb 9, 2017

No description provided.

@a-know
Copy link
Owner Author

a-know commented Feb 9, 2017

curl で API リクエストならこう

# a-know-home
curl -s -H "X-Api-Key:<api key>" -H "Content-type: application/json" -X POST -d '{"title" : "blog posted(capistrano によるデプロイ時に Mackerel へのグラフアノテーション投稿も同時に行なう)", "description" : "http://blog.a-know.me/entry/2017/01/29/124412", "from" : 1485661452, "to" : 1485661452, "service" : "a-know-home"}' 'https://mackerel.io/api/v0/graph-annotations'

# a-know-server
curl -s -H "X-Api-Key:<api_key>" -H "Content-type: application/json" -X POST -d '{"title" : "blog posted(capistrano によるデプロイ時に Mackerel へのグラフアノテーション投稿も同時に行なう)", "description" : "http://blog.a-know.me/entry/2017/01/29/124412", "from" : 1485661452, "to" : 1485661452, "service" : "blog_a-know_me"}' 'https://mackerel.io/api/v0/graph-annotations'

curl -s -H "X-Api-Key:<api_key>" -H "Content-type: application/json" -X POST -d '{"title" : "blog posted(capistrano によるデプロイ時に Mackerel へのグラフアノテーション投稿も同時に行なう)", "description" : "http://blog.a-know.me/entry/2017/01/29/124412", "from" : 1485661452, "to" : 1485661452, "service" : "hatena-status"}' 'https://mackerel.io/api/v0/graph-annotations'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant