- ã°ã©ãã¢ããã¼ã·ã§ã³ã®ä½æ
- ã°ã©ãã¢ããã¼ã·ã§ã³ã®åå¾
- ã°ã©ãã¢ããã¼ã·ã§ã³ã®æ´æ°
- ã°ã©ãã¢ããã¼ã·ã§ã³ã®åé¤
ã°ã©ãã¢ããã¼ã·ã§ã³ã®ä½æ
POST
/api/v0/graph-annotations
APIãã¼ã«å¿ è¦ãªæ¨©é
- Read
- Write
å ¥å
KEY | TYPE | DESCRIPTION |
---|---|---|
title |
string | ã¢ããã¼ã·ã§ã³ã®ã¿ã¤ãã« |
description |
string | [optional] ã¢ããã¼ã·ã§ã³ã®è©³ç´° |
from |
number | éå§æå» (epochç§) |
to |
number | çµäºæå» (epochç§) |
service |
string | ãµã¼ãã¹å |
roles |
array[string] | [optional] ãã¼ã«åã®é åããã®ãã£ã¼ã«ããæå®ããªãå ´åã¯ããµã¼ãã¹ã«ç´ã¥ãã¢ããã¼ã·ã§ã³ã¨ãªã |
å ¥åä¾
{ "title": "deploy application", "description": "link: https://example.com/", "from": 1484000000, "to": 1484000030, "service": "ExampleService", "roles": [ "ExampleRole1", "ExampleRole2" ] }
å¿ç
å ¥åã«idãä»ä¸ããã¦è¿å´ããã¾ãã
失ææ
STATUS CODE | DESCRIPTION |
---|---|
400 | å ¥åãåãä»ããããªããã©ã¼ãããã ã£ãã¨ã |
400 | titleã250æåãããã¯descriptionã1024æåãè¶ ãã¦ããã¨ã |
400 | éå§æå»ãçµäºæå»ãè¶ ãã¦ããã¨ã |
404 | ãµã¼ãã¹ããã¼ã«ãåå¨ããªãã¨ã |
403 | APIãã¼ã«æ¸ãè¾¼ã¿æ¨©éããªãã¨ã / 許å¯ãããIPã¢ãã¬ã¹ç¯å²å¤ããã®ã¢ã¯ã»ã¹ã®å ´å |
ã°ã©ãã¢ããã¼ã·ã§ã³ã®åå¾
ãµã¼ãã¹ã¨æéãæå®ãã¦ãã°ã©ãã®ã¢ããã¼ã·ã§ã³ã®ä¸è¦§ãåå¾ãã¾ãã æå®ãããæéã¨å ±éé¨åãããã¢ããã¼ã·ã§ã³ãå ¨ã¦è¿å´ããã¾ãã
GET
/api/v0/graph-annotations
APIãã¼ã«å¿ è¦ãªæ¨©é
- Read
å ¥å (ã¯ã¨ãªãã©ã¡ã¼ã¿)
PARAM | TYPE | DESCRIPTION |
---|---|---|
service |
string | ãµã¼ãã¹å |
from |
number | åå¾ããã¢ããã¼ã·ã§ã³ã®æéã®æå (epochç§) |
to |
number | åå¾ããã¢ããã¼ã·ã§ã³ã®æéã®æå¾ (epochç§) |
å¿ç
{ "graphAnnotations": [ { "id": "2UdH1QcZQaw", "title": "Deploy application", "description": "Deploy description", "from": 1484020459, "to": 1484020759, "service": "ExampleService" }, { "id": "2UdH1QuiGgj", "title": "Release application", "description": "Release description", "from": 1484021239, "to": 1484021239, "service": "ExampleService", "roles": [ "ExampleRole1", "ExampleRole2" ] } ] }
失ææ
STATUS CODE | DESCRIPTION |
---|---|
400 | å¿ è¦ãªã¯ã¨ãªãã©ã¡ã¼ã¿ãæå®ããã¦ããªãã¨ã |
404 | æå®ããããµã¼ãã¹ãåå¨ããªãæ |
ã°ã©ãã¢ããã¼ã·ã§ã³ã®æ´æ°
PUT
/api/v0/graph-annotations/<annotationId>
APIãã¼ã«å¿ è¦ãªæ¨©é
- Read
- Write
å ¥å
ã°ã©ãã¢ããã¼ã·ã§ã³ã®ä½æã¨åæ§ã§ãã
å¿ç
ã°ã©ãã¢ããã¼ã·ã§ã³ã®ä½æã¨åæ§ãidãä»ä¸ããã¦è¿å´ããã¾ãã
失ææ
STATUS CODE | DESCRIPTION |
---|---|
400 | å ¥åãåãä»ããããªããã©ã¼ãããã ã£ãã¨ã |
400 | titleã250æåãããã¯descriptionã1024æåãè¶ ãã¦ããã¨ã |
400 | éå§æå»ãçµäºæå»ãè¶ ãã¦ããã¨ã |
404 | ãµã¼ãã¹ããã¼ã«ãåå¨ããªãã¨ã |
404 | ã°ã©ãã®ã¢ããã¼ã·ã§ã³ãåå¨ããªãã¨ã |
403 | APIãã¼ã«æ¸ãè¾¼ã¿æ¨©éããªãã¨ã / 許å¯ãããIPã¢ãã¬ã¹ç¯å²å¤ããã®ã¢ã¯ã»ã¹ã®å ´å |
ã°ã©ãã¢ããã¼ã·ã§ã³ã®åé¤
DELETE
/api/v0/graph-annotations/<annotationId>
APIãã¼ã«å¿ è¦ãªæ¨©é
- Read
- Write
å¿ç
æåæ
åé¤åã®ã°ã©ãã®ã¢ããã¼ã·ã§ã³ãè¿å´ããã¾ãã
失ææ
STATUS CODE | DESCRIPTION |
---|---|
404 | ã°ã©ãã®ã¢ããã¼ã·ã§ã³ãåå¨ããªãã¨ã |
403 | APIãã¼ã«æ¸ãè¾¼ã¿æ¨©éããªãã¨ã / 許å¯ãããIPã¢ãã¬ã¹ç¯å²å¤ããã®ã¢ã¯ã»ã¹ã®å ´å |