GetSimilarIncidentStatistics

Updated at:

Lists similar events.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.