에스컬레이션 정책 API 레퍼런스
필드에 사용할 수 있는 값
에스컬레이션 규칙 조건
| 값 | 설명 |
|---|---|
NOT_ACKNOWLEDGED | 인시던트가 확인되지 않은 상태를 뜻합니다. |
에스컬레이션 작업 유형
| 값 | 설명 |
|---|---|
NOTIFY_TEAM | 특정 팀에 알립니다. |
NOTIFY_WORKSPACE_MEMBER | 특정 워크스페이스 멤버에게 알립니다. |
NOTIFY_CURRENT_ON_CALL_USER | 현재 온콜 담당자에게 알립니다. |
NOTIFY_NEXT_ON_CALL_USER | 다음 온콜 담당자에게 알립니다. |
NOTIFY_ALL_ON_CALL_MEMBERS | 현재 온콜 중인 모든 멤버에게 알립니다. |
에스컬레이션 정책 가져오기
엔드포인트:
GET /:page_id/escalation-policies
요청 예시
GET /1/escalation-policies
응답 예시
{"escalationPolicies": [{"id": "escalationPolicy123","siteId": "site123","name": "Primary Escalation Policy","description": "This is the primary escalation policy for site123.","rules": [{"id": "rule123","escalationPolicyId": "escalationPolicy123","order": 1,"condition": "NOT_ACKNOWLEDGED","delayInMins": 5,"actions": [{"id": "action123","ruleId": "rule123","type": "NOTIFY_TEAM","targetId": "team123","createdAt": "2023-08-08T12:00:00Z","updatedAt": "2023-08-08T12:00:00Z"},{"id": "action124","ruleId": "rule123","type": "NOTIFY_CURRENT_ON_CALL_USER","targetId": null,"createdAt": "2023-08-08T12:01:00Z","updatedAt": "2023-08-08T12:01:00Z"}]},{"id": "rule456","escalationPolicyId": "escalationPolicy123","order": 2,"condition": "NOT_ACKNOWLEDGED","delayInMins": 10,"actions": [{"id": "action125","ruleId": "rule456","type": "NOTIFY_NEXT_ON_CALL_USER","targetId": null,"createdAt": "2023-08-08T12:10:00Z","updatedAt": "2023-08-08T12:10:00Z"},{"id": "action126","ruleId": "rule456","type": "NOTIFY_WORKSPACE_MEMBER","targetId": "member456","createdAt": "2023-08-08T12:12:00Z","updatedAt": "2023-08-08T12:12:00Z"}]}],"repeat": true,"repeatCount": 3,"repeatDelay": 15,"revertAcknowledgement": true,"autoResolveIncidentsAfterRepeat": false,"createdAt": "2023-08-08T12:00:00Z","updatedAt": "2023-08-08T12:05:00Z"},{"id": "escalationPolicy456","siteId": "site123","name": "Secondary Escalation Policy","description": "This is the secondary escalation policy for site123.","rules": [],"repeat": false,"repeatCount": 0,"repeatDelay": 0,"revertAcknowledgement": false,"autoResolveIncidentsAfterRepeat": false,"createdAt": "2023-08-08T12:10:00Z","updatedAt": "2023-08-08T12:10:00Z"}]}
에스컬레이션 정책 만들기
엔드포인트:
POST /escalation-policies
요청 예시
{"pageId": "12345","name": "Critical Alerts Policy","description": "Policy for handling critical alerts","rules": [{"delayInMins": 5,"condition": "NOT_ACKNOWLEDGED","actions": [{"targetId": "target-1","type": "NOTIFY_WORKSPACE_MEMBER"},{"targetId": "target-2","type": "NOTIFY_WORKSPACE_MEMBER"}]}],"repeat": true,"repeatDelay": 10,"repeatCount": 3,"autoResolveIncidentsAfterRepeat": false,"revertAcknowledgement": true}
응답 예시
{"escalationPolicy": {"id": "new-escalation-policy-id","pageId": "12345","name": "Critical Alerts Policy","description": "Policy for handling critical alerts","rules": [{"delayInMins": 5,"condition": "NOT_ACKNOWLEDGED","actions": [{"targetId": "target-1","type": "NOTIFY_WORKSPACE_MEMBER"},{"targetId": "target-2","type": "NOTIFY_WORKSPACE_MEMBER"}]}],"repeat": true,"repeatDelay": 10,"repeatCount": 3,"autoResolveIncidentsAfterRepeat": false,"revertAcknowledgement": true},"message": "Routing rule created successfully."}
에스컬레이션 정책 삭제하기
엔드포인트:
DELETE /escalation-policies/:id
요청 예시
DELETE /escalation-policies/escalationPolicy123
응답 예시
{"message": "Escalation policy deleted successfully."}
에스컬레이션 정책 업데이트하기
엔드포인트:
PUT /escalation-policies/:id
요청 예시
{"pageId": "12345","name": "Updated Critical Alerts Policy","description": "Updated Policy for handling critical alerts","rules": [{"delayInMins": 10,"condition": "NOT_ACKNOWLEDGED","actions": [{"targetId": "target-1","type": "NOTIFY_WORKSPACE_MEMBER"},{"targetId": "target-2","type": "NOTIFY_WORKSPACE_MEMBER"}]}],"repeat": true,"repeatDelay": 10,"repeatCount": 3,"autoResolveIncidentsAfterRepeat": false,"revertAcknowledgement": true}
응답 예시
{"escalationPolicy": {"pageId": "12345","name": "Updated Critical Alerts Policy","description": "Updated Policy for handling critical alerts","rules": [{"delayInMins": 10,"condition": "NOT_ACKNOWLEDGED","actions": [{"targetId": "target-1","type": "NOTIFY_WORKSPACE_MEMBER"},{"targetId": "target-2","type": "NOTIFY_WORKSPACE_MEMBER"}]}],"repeat": true,"repeatDelay": 10,"repeatCount": 3,"autoResolveIncidentsAfterRepeat": false,"revertAcknowledgement": true},"message": "Routing rule updated successfully."}