GetIncident
Retrieves the details of an event.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:GetIncident |
get |
*All Resource
|
None | None |
Request syntax
POST /incident/detail HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters for retrieving the details of an event. |
|
| incidentId |
integer |
No |
The incident ID. |
32113 |
| clientToken |
string |
No |
The client token. |
2b63cdef-7ac3-4892-a76d-0f3389ef729f |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
2b63cdef-7ac3-4892-a76d-0f3389ef7291 |
| data |
object |
The event details. |
|
| incidentId |
integer |
The incident ID. |
3213 |
| routeRuleId |
integer |
The routing rule ID. |
3123 |
| routeRuleName |
string |
The routing rule name. |
Routing Rule A |
| relatedServiceId |
integer |
The associated service ID. |
312312 |
| relatedServiceName |
string |
The associated service name. |
Service A |
| relatedServiceDescription |
string |
The associated service description. |
Associated service description |
| incidentStatus |
string |
The event status. Valid values: ASSIGNED, RESPONDED, and FINISHED. |
FINISHE |
| incidentLevel |
string |
The event level. Valid values: P1, P2, P3, and P4, in descending order of severity. |
P4 |
| effect |
string |
The impact level. Valid values: HIGH and LOW. |
LOW |
| assignUserId |
integer |
The ID of the assigned user. |
12312 |
| assignUserName |
string |
The name of the assigned user, which is obtained from the user table. |
Xiaoming |
| assignUserPhone |
string |
The phone number of the assigned user. |
1390000**** |
| incidentNumber |
string |
The event number. |
I3443831000000016247759753663894 |
| incidentTitle |
string |
The event title. |
Event title |
| createTime |
string |
The creation time. The time is in the YYYY-MM-DD HH:mm:ss format. |
2020-01-10 00:00:00 |
| isManual |
boolean |
The event source. Valid values: true (manual) and false (automatic). |
true |
| isUpgrade |
boolean |
Indicates whether the event is upgraded. |
true |
| incidentDescription |
string |
The event description. |
Event description |
| problemId |
integer |
The problem ID. |
232113 |
| problemNumber |
string |
The problem number. |
3332113231453321 |
| durationTime |
integer |
The duration. |
3000000 |
| notifyChannels |
array |
The notification channels. |
["1"] |
|
string |
The notification channels. |
WEBHOOK |
|
| relatedServiceGroupName |
string |
The name of the associated service group. |
Service Group A |
| relatedServiceGroupId |
integer |
The associated service ID. |
13000 |
| relServiceDeleteType |
integer |
The service deletion field. |
1 |
| relRouteRuleDeleteType |
integer |
The rule deletion field. |
1 |
| assignToWhoIsValid |
integer |
Indicates whether the assigned user is valid. Valid values: 1 (valid) and 0 (invalid). |
1 |
| relServiceGroupIsValid |
integer |
Indicates whether the associated service group is valid. Valid values: 1 (valid) and 0 (invalid). |
1 |
| defaultAssignToWhoName |
string |
The name of the default assignee. |
Xiaoming |
| defaultAssignToWho |
integer |
The ID of the default assignee. |
1212 |
| defaultAssignToWhoIsValid |
integer |
The deletion status of the default assignee. Valid values: 1 (normal) and 0 (deleted). |
1 |
Examples
Success response
JSON format
{
"requestId": "2b63cdef-7ac3-4892-a76d-0f3389ef7291",
"data": {
"incidentId": 3213,
"routeRuleId": 3123,
"routeRuleName": "Routing rule A",
"relatedServiceId": 312312,
"relatedServiceName": "Service A",
"relatedServiceDescription": "Associated service description",
"incidentStatus": "FINISHE",
"incidentLevel": "P4",
"effect": "LOW",
"assignUserId": 12312,
"assignUserName": "Xiao Ming",
"assignUserPhone": "1390000****",
"incidentNumber": "I3443831000000016247759753663894",
"incidentTitle": "Event title",
"createTime": "2020-01-10 00:00:00",
"isManual": true,
"isUpgrade": true,
"incidentDescription": "Event description",
"problemId": 232113,
"problemNumber": "3332113231453321",
"durationTime": 3000000,
"notifyChannels": [
"WEBHOOK"
],
"relatedServiceGroupName": "Service group A",
"relatedServiceGroupId": 13000,
"relServiceDeleteType": 1,
"relRouteRuleDeleteType": 1,
"assignToWhoIsValid": 1,
"relServiceGroupIsValid": 1,
"defaultAssignToWhoName": "Xiao Ming",
"defaultAssignToWho": 1212,
"defaultAssignToWhoIsValid": 1
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | IncidentNotExtisted | The incident does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.