구성 요소 API 레퍼런스

상태 페이지의 모든 구성 요소 가져오기

엔드포인트:

GET /v2/:page_id/components?page=:page&per_page=:per_page
  • 기본 page 번호는 1입니다.
  • 기본 per_page 값은 50이며 페이지당 최대 100개입니다.

응답 예시:

[
{
"id": "ckf01fvnxywz60a35wdbn5gz5",
"name": "App",
"status": "OPERATIONAL",
"uniqueEmail": "nasa-app-1nozrueut@automation.instatus.com",
"description": "",
"showUptime": true,
"order": 0,
"group": null
},
{
"id": "ckf01fvnxywz50a35nh1qzssm",
"name": "Website",
"status": "OPERATIONAL",
"description": "",
"showUptime": true,
"order": 0,
"group": null,
"uniqueEmail": "nasa-website-1nozrueut@automation.instatus.com"
}
]

구성 요소 가져오기

엔드포인트:

GET /v2/:page_id/components/:component_id

응답 예시

{
"id": "ckf01fvnxywz50a35nh1qzssm",
"name": "Website",
"description": "",
"status": "OPERATIONAL",
"uniqueEmail": "nasa-website-1nozrueut@automation.instatus.com",
"showUptime": true,
"order": 0,
"group": null
}

상태 페이지 가동률 가져오기

엔드포인트:

GET /v2/:page_id/uptime?start=:start&end=:end
  • start와 end는 ISO 8601 형식의 날짜입니다. 지정하지 않으면 최근 30일이 적용됩니다.
  • 기간은 최대 395일이며 start는 end보다 앞서야 합니다.

응답 예시:

{
"start": "2026-10-01T00:00:00.000Z",
"end": "2026-10-31T00:00:00.000Z",
"uptime": 99.97,
"components": [
{
"id": "ckf01fvnxywz60a35wdbn5gz5",
"name": "App",
"uptime": 99.95,
"isParent": false,
"children": []
},
{
"id": "ckf01fvnxywz40a35p2c1xk7q",
"name": "API",
"uptime": 99.98,
"isParent": true,
"children": [
{
"id": "ckf01fvnxywz50a35nh1qzssm",
"name": "Auth",
"uptime": 99.96,
"isParent": false,
"children": []
},
{
"id": "ckf01fvnxywz70a35r8m2wq4d",
"name": "Search",
"uptime": 100,
"isParent": false,
"children": []
}
]
}
]
}
  • 최상위 uptime은 페이지 전체의 가동률로, 모든 구성 요소의 평균이며 그룹 가동률과 같은 방식으로 계산됩니다.
  • 그룹은 isParent가 true이며 포함된 구성 요소를 children에 나열합니다.
  • 게시된 장애만 계산되므로 수치가 상태 페이지와 일치합니다.

구성 요소 만들기

엔드포인트:

POST /v1/:page_id/components

요청 예시:

{
"name": "Test component",
"description": "Testing",
"status": "OPERATIONAL",
"order": 6,
"showUptime": true,
"grouped": false,
"archived": false,
"translations": {
"name": {
"fr": "Composant de test"
},
"description": {
"fr": "En test"
}
}
}

응답 예시:

{
"id": "ckf1d4f6a4aaf0a356vqg0rdm",
"name": "Test component",
"description": "Testing",
"uniqueEmail": "nasa-test-component-oomaksikj@automation.instatus.com",
"status": "OPERATIONAL",
"showUptime": true,
"order": 8,
"group": null,
"translations": {
"name": {
"fr": "Composant de test"
},
"description": {
"fr": "En test"
}
}
}

구성 요소를 그룹에 넣으려면 grouped를 true로, group을 원하는 그룹의 ID로 설정하세요.

구성 요소 업데이트하기

엔드포인트:

PUT /v2/:page_id/components/:component_id

요청 예시:

{
"name": "Test component 4",
"description": "Test test test",
"status": "OPERATIONAL",
"order": 6,
"showUptime": true,
"grouped": false,
"archived": true,
"translations": {
"name": {
"fr": "Composant de test 4"
},
"description": {
"fr": "Test test test"
}
}
}

응답 예시:

{
"id": "ckf1d4f6a4aaf0a356vqg0rdm",
"name": "Test component 4",
"uniqueEmail": "nasa-test-component-oomaksikj@automation.instatus.com",
"status": "OPERATIONAL",
"description": "Test test test",
"showUptime": true,
"order": 6,
"group": null,
"translations": {
"name": {
"fr": "Composant de test 4"
},
"description": {
"fr": "Test test test"
}
}
}

구성 요소의 그룹을 변경하려면 grouped를 true로, groupId를 원하는 그룹의 ID로 설정하세요.

구성 요소 삭제하기

엔드포인트:

DELETE /v1/:page_id/components/:component_id
{
"id": "ckf1d4f6a4aaf0a356vqg0rdm"
}