GetSimilarIncidentStatistics - 相似事件列表

更新时间:
复制 MD 格式

相似事件列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

gemp:GetSimilarIncidentStatistics

get

*全部资源

*

无 无

请求语法

POST /incident/similarIncident/statistics HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

body

object

否

请求 Body。

incidentId

integer

是

事件 ID。

32

incidentTitle

string

是

事件标题。

测试事件A

createTime

string

是

触发时间,格式为 YYYY-MM-DD HH:mm:ss。

2021-09-09 09:09:09

relatedServiceId

integer

是

关联服务 ID。

233116754

events

array

是

事件告警内容。

string

是

事件内容。

{"message":"CPU使用率超过告警阈值"}

clientToken

string

否

幂等标识。

7C56D225-7C34-40BB-9624-C8BA449260E6

返回参数

名称

类型

描述

示例值

object

响应结构。

requestId

string

请求 ID。

7C56D225-7C34-40BB-9624-C8BA449260E6

data

object

返回数据。

topFiveIncidents

array<object>

topFiveIncidents

object

incidentId

integer

事件 ID。

32

incidentNumber

string

事件编号。

I34324

incidentTitle

string

事件标题。

测试事件标题

relatedRouteRuleId

integer

流转规则 ID。

4343

relatedRouteRuleName

string

流转规则名称。

运维事件流转规则

finishReason

integer

触发原因。

2

finishReasonDescription

string

触发原因描述。

处罚原因描述测试

incidentFinishSolution

integer

解决方案。

5

finishSolutionDescription

string

解决方案描述。

测试方案

createTime

string

触发时间,格式为 YYYY-MM-DD HH:mm:ss。

2021-09-09 09:09:09

assignUserId

string

分派人 ID。

43

assignUserName

string

分派人。

马先生

durationTime

integer

持续时间。

6787678767

similarScore

string

相似度。

1992.21

countInSixMonths

integer

6 月内相似事件数量。

43

countInSevenDays

integer

7 天内相似事件数量。

8

dailySimilarIncidents

array<object>

根据日期分类。

[{"date":"2021-07-14","commits":0,"month":6,"week":"0","day":3,"similarIncidents":[]}]

array<object>

object

date

string

日期,格式为 YYYY-MM-DD。

2021-03-07

commitment

integer

数量

0

month

integer

月份。

2

week

string

周。

1

day

integer

星期几。

1

similarIncidents

array<object>

相似事件列表。

object

incidentId

integer

事件 ID。

5435

incidentNumber

string

事件编号。

I234432

incidentTitle

string

事件名称。

事件A

relatedRouteRuleId

integer

流转规则 ID。

334

relatedRouteRuleName

string

流转规则名称。

测试规则A

finishReason

integer

触发原因。

1

finishReasonDescription

string

触发原因描述。

测试原因B

incidentFinishSolution

integer

解决方案。

5

finishSolutionDescription

string

解决方案描述。

测试方案A

createTime

string

触发时间,格式为 YYYY-MM-DD HH:mm:ss。

2021-09-09 09:09:09

assignUserName

string

分派人。

马先生

assignUserId

integer

分派人 ID。

433

durationTime

integer

持续时间。

6789765678

similarScore

string

相似度。

1003.567

requestId

string

请求 ID。

7C56D225-7C34-40BB-9624-C8BA449260E6

示例

正常返回示例

JSON格式

{
  "requestId": "7C56D225-7C34-40BB-9624-C8BA449260E6",
  "data": {
    "topFiveIncidents": [
      {
        "incidentId": 32,
        "incidentNumber": "I34324",
        "incidentTitle": "测试事件标题",
        "relatedRouteRuleId": 4343,
        "relatedRouteRuleName": "运维事件流转规则",
        "finishReason": 2,
        "finishReasonDescription": "处罚原因描述测试",
        "incidentFinishSolution": 5,
        "finishSolutionDescription": "测试方案",
        "createTime": "2021-09-09 09:09:09",
        "assignUserId": "43",
        "assignUserName": "马先生",
        "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": "事件A",
            "relatedRouteRuleId": 334,
            "relatedRouteRuleName": "测试规则A",
            "finishReason": 1,
            "finishReasonDescription": "测试原因B",
            "incidentFinishSolution": 5,
            "finishSolutionDescription": "测试方案A",
            "createTime": "2021-09-09 09:09:09",
            "assignUserName": "马先生",
            "assignUserId": 433,
            "durationTime": 6789765678,
            "similarScore": "1003.567"
          }
        ]
      }
    ],
    "requestId": "7C56D225-7C34-40BB-9624-C8BA449260E6"
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。