GetSimilarIncidentStatistics
Lists similar events.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:GetSimilarIncidentStatistics |
get |
*All Resource
|
None | None |
Request syntax
POST /incident/similarIncident/statistics HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| incidentId |
integer |
Yes |
The incident ID. |
32 |
| incidentTitle |
string |
Yes |
The incident title. |
Test incident A |
| createTime |
string |
Yes |
The trigger time in the YYYY-MM-DD HH:mm:ss format. |
2021-09-09 09:09:09 |
| relatedServiceId |
integer |
Yes |
The associated service ID. |
233116754 |
| events |
array |
Yes |
The event alerting content. |
|
|
string |
Yes |
The event content. |
{"message":"CPU utilization exceeds the alert threshold"} |
|
| clientToken |
string |
No |
The idempotency token. |
7C56D225-7C34-40BB-9624-C8BA449260E6 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
7C56D225-7C34-40BB-9624-C8BA449260E6 |
| data |
object |
The returned data. |
|
| topFiveIncidents |
array<object> |
topFiveIncidents |
|
|
object |
|||
| incidentId |
integer |
The incident ID. |
32 |
| incidentNumber |
string |
The incident number. |
I34324 |
| incidentTitle |
string |
The incident title. |
Sample incident title |
| relatedRouteRuleId |
integer |
The routing rule ID. |
4343 |
| relatedRouteRuleName |
string |
The routing rule name. |
O&M event routing rule |
| finishReason |
integer |
The trigger reason. |
2 |
| finishReasonDescription |
string |
The trigger reason description. |
Sample penalty reason description |
| incidentFinishSolution |
integer |
The Solutions. |
5 |
| finishSolutionDescription |
string |
The Solutions description. |
Sample solution |
| createTime |
string |
The trigger time in the YYYY-MM-DD HH:mm:ss format. |
2021-09-09 09:09:09 |
| assignUserId |
string |
The assignee ID. |
43 |
| assignUserName |
string |
The assignee. |
Mr. Ma |
| durationTime |
integer |
The duration. |
6787678767 |
| similarScore |
string |
The similarity score. |
1992.21 |
| countInSixMonths |
integer |
The number of similar incidents in the past 6 months. |
43 |
| countInSevenDays |
integer |
The number of similar incidents in the past 7 days. |
8 |
| dailySimilarIncidents |
array<object> |
The classification by date. |
[{"date":"2021-07-14","commits":0,"month":6,"week":"0","day":3,"similarIncidents":[]}] |
|
array<object> |
object |
||
| date |
string |
The date, in the YYYY-MM-DD format. |
2021-03-07 |
| commitment |
integer |
The count. |
0 |
| month |
integer |
The month. |
2 |
| week |
string |
The week. |
1 |
| day |
integer |
The day of the week. |
1 |
| similarIncidents |
array<object> |
The list of similar incidents. |
|
|
object |
|||
| incidentId |
integer |
The incident ID. |
5435 |
| incidentNumber |
string |
The incident number. |
I234432 |
| incidentTitle |
string |
The incident name. |
Incident A |
| relatedRouteRuleId |
integer |
The routing rule ID. |
334 |
| relatedRouteRuleName |
string |
The routing rule name. |
Sample rule A |
| finishReason |
integer |
The trigger reason. |
1 |
| finishReasonDescription |
string |
The trigger reason description. |
Sample reason B |
| incidentFinishSolution |
integer |
The Solutions. |
5 |
| finishSolutionDescription |
string |
The Solutions description. |
Sample solution A |
| createTime |
string |
The trigger time in the YYYY-MM-DD HH:mm:ss format. |
2021-09-09 09:09:09 |
| assignUserName |
string |
The assignee. |
Mr. Ma |
| assignUserId |
integer |
The assignee ID. |
433 |
| durationTime |
integer |
The duration. |
6789765678 |
| similarScore |
string |
The similarity score. |
1003.567 |
| requestId |
string |
The request ID. |
7C56D225-7C34-40BB-9624-C8BA449260E6 |
Examples
Success response
JSON format
{
"requestId": "7C56D225-7C34-40BB-9624-C8BA449260E6",
"data": {
"topFiveIncidents": [
{
"incidentId": 32,
"incidentNumber": "I34324",
"incidentTitle": "Test incident title",
"relatedRouteRuleId": 4343,
"relatedRouteRuleName": "xxx",
"finishReason": 2,
"finishReasonDescription": "Test penalty cause description",
"incidentFinishSolution": 5,
"finishSolutionDescription": "Test solution",
"createTime": "2021-09-09 09:09:09",
"assignUserId": "43",
"assignUserName": "Mr. Ma",
"durationTime": 6787678767,
"similarScore": "1992.21"
}
],
"countInSixMonths": 43,
"countInSevenDays": 8,
"dailySimilarIncidents": [
{
"date": "2021-03-07",
"commitment": 0,
"month": 2,
"week": "1",
"day": 1,
"similarIncidents": [
{
"incidentId": 5435,
"incidentNumber": "I234432",
"incidentTitle": "Incident A",
"relatedRouteRuleId": 334,
"relatedRouteRuleName": "Test rule A",
"finishReason": 1,
"finishReasonDescription": "Test cause B",
"incidentFinishSolution": 5,
"finishSolutionDescription": "Test solution A",
"createTime": "2021-09-09 09:09:09",
"assignUserName": "Mr. Ma",
"assignUserId": 433,
"durationTime": 6789765678,
"similarScore": "1003.567"
}
]
}
],
"requestId": "7C56D225-7C34-40BB-9624-C8BA449260E6"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.