查看规则详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
请求语法
POST /routeRule/detail HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
body | object | 否 | 请求 Body。 | |
routeRuleId | long | 是 | 规则 ID。 | 1 |
clientToken | string | 否 | 幂等号。 | C4BE3837-1A13-413B-A225-2C88188E8A43 |
{ "routeRuleId" : 1, "}
返回参数
{ "requestId": "6B9347ED-FD93-42B4-B9A4-7282962F5D6A", "data": { "routeRuleId": 180000000, "subscriptionName": "我的订阅", "ruleName": "规则 1", "timeWindow": 3, "relatedServiceName": "冲上云霄", "enableStatus": "DISABLE", "relatedServiceId": 1000, "routeType": "INCIDENT", "incidentLevel": "P1", "assignObjectId": 1000, "assignObjectType": "SERVICEGROUP", "effection": "LOW", "matchCount": 3, "eventRouteChildRules": [ { "childRouteRuleId": 1000, "isValidChildRule": false, "parentRuleId": 1800, "monitorSourceId": 1, "monitorIntegrationConfigId": 1, "monitorSourceName": "zabbix", "conditions": [ { "key": "alarmName", "value": "Zabbix server", "operationSymbol": "contain" } ] } ], "createTime": "2020-09-08 15:30:30", "updateTime": "2020-09-08 15:30:30", "notifyChannels": [ "[SMS,PHONE]" ], "notifyChannelNames": [ "[短信,电话]" ], "assignObjectName": "刘德华" } }
示例
正常返回示例
JSON
格式
{
"requestId": "6B9347ED-FD93-42B4-B9A4-7282962F5D6A",
"data": {
"routeRuleId": 180000000,
"ruleName": "规则1",
"timeWindow": 3,
"relatedServiceName": "冲上云霄",
"enableStatus": "disable",
"relatedServiceId": 1000,
"routeType": "INCIDENT",
"incidentLevel": "P1",
"assignObjectId": 1000,
"assignObjectType": "SERVICEGROUP",
"effection": "LOW",
"matchCount": 3,
"childRuleRelation": "AND、OR",
"eventRouteChildRules": [
{
"childRouteRuleId": 1000,
"isValidChildRule": false,
"parentRuleId": 1800,
"monitorSourceId": 1,
"monitorIntegrationConfigId": 1,
"monitorSourceName": "zabbix",
"childConditionRelation": 1,
"conditions": [
{
"key": "alarmName",
"value": "Zabbix server",
"operationSymbol": "contain"
}
],
"problemLevel": "1"
}
],
"createTime": "2020-09-08 15:30:30",
"updateTime": "2020-09-08 15:30:30",
"notifyChannels": [
"[SMS,PHONE]"
],
"notifyChannelNames": [
"[短信,电话]"
],
"assignObjectName": "刘先生",
"relServiceDeleteType": 1,
"problemLevelGroup": {
"key": {
"childRuleRelation": 11,
"matchCount": 11,
"timeWindow": 1,
"timeWindowUnit": "1",
"enableUpgrade": true,
"upgradeTimeWindow": 1,
"upgradeTimeWindowUnit": "1"
}
},
"coverageProblemLevels": [
"1"
],
"problemEffectionServices": [
1
],
"convergenceFields": [
"name"
],
"convergenceType": 0
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
404 | RouteRuleNotExisted | The rule does not exist. | 流转规则不存在 |
访问错误中心查看更多错误码。