GetProblemPreview
Retrieves a preview of the fault notification.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:GetProblemPreview |
get |
*All Resource
|
None | None |
Request syntax
POST /problem/preview HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| problemId |
integer |
No |
The fault ID. |
12312 |
| problemNotifyType |
string |
No |
The notification type. Valid values:
|
PROBLEM_NOTIFY |
| problemLevel |
string |
No |
The fault level. |
P2 |
| effectServiceIds |
array |
No |
The affected services. |
|
|
integer |
No |
The ID of the affected service. |
1231 |
|
| relatedServiceId |
integer |
No |
The ID of the associated service. |
21312 |
| incidentId |
integer |
No |
The incident ID. |
213123 |
| serviceGroupIds |
array |
No |
The IDs of the emergency response groups. |
|
|
integer |
No |
The ID of the service group. |
12313 |
|
| clientToken |
string |
No |
The idempotency token. |
4361a0e1-6747-4834-96ce-0c4840f13812 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
4361a0e1-6747-4834-96ce-0c2840fd3812 |
| data |
object |
The degradation rule. |
|
| problem |
object |
The associated problem. |
|
| problemName |
string |
The problem name. |
Problem name |
| problemStatus |
string |
The problem status. Valid values:
|
HANDLING |
| problemLevel |
string |
The problem level in descending order. Valid values:
|
P2 |
| discoverTime |
string |
The discovery time in the YYYY-MM-DD HH:mm:ss format. |
2021-02-21 00:00:00 |
| recoveryTime |
string |
The recovery time in the YYYY-MM-DD HH:mm:ss format. |
2021-02-21 00:00:00 |
| serviceName |
string |
The associated service name. |
Service A |
| progressSummary |
string |
The progress summary. |
Summary 123 |
| preliminaryReason |
string |
The preliminary cause. |
Cause A |
| mainHandlerName |
string |
The primary handler. |
John Doe |
| mainHandlerId |
string |
The ID of the primary handler. |
231 |
| isManual |
boolean |
Indicates whether the problem is handled manually. |
true |
| isUpgrade |
boolean |
Indicates whether the problem is escalated. |
true |
| problemId |
integer |
The fault ID. |
123123 |
| relatedServiceId |
integer |
The ID of the associated service. |
213123 |
| createTime |
string |
The creation time in the YYYY-MM-DD HH:mm:ss format. |
2021-02-21 00:00:00 |
| progressSummaryRichTextId |
integer |
The rich text ID. |
12312 |
| coordinationGroups |
array<object> |
The emergency coordination groups. |
|
|
object |
The emergency coordination groups. |
||
| serviceGroupName |
string |
The name of the service group. |
Service group A |
| serviceGroupId |
integer |
The service ID. |
1231 |
| serviceGroupDescription |
string |
The description of the service group. |
Service group description |
| effectionServices |
array<object> |
The affected services. |
|
|
object |
The affected services. |
||
| serviceName |
string |
The affected service name. |
Service B |
| serviceId |
integer |
The ID of the affected service. |
1231 |
| voice |
object |
The voice messaging. |
|
| count |
integer |
The count. |
12 |
| users |
array<object> |
The user groups. |
|
|
object |
The user. |
||
| username |
string |
The user. |
Username |
|
object |
The email. |
||
| count |
integer |
The count. |
123 |
| users |
array<object> |
The user groups. |
|
|
object |
The user. |
||
| username |
string |
The username. |
Username |
| sms |
object |
The SMS message. |
|
| count |
integer |
The count. |
12 |
| users |
array<object> |
The user groups. |
|
|
object |
The user. |
||
| username |
string |
The username. |
Username |
| webhook |
object |
The webhook. |
|
| count |
integer |
The count. |
32 |
| serviceGroups |
array<object> |
The service groups. |
|
|
object |
The name of the service group. |
||
| serviceName |
string |
The service name. |
Service name |
| upBeforeData |
string |
The pre-upgrade data. |
Latest pre-upgrade level |
| upAfterData |
string |
The post-upgrade data. |
Latest post-upgrade level |
| deBeforeData |
string |
The pre-downgrade data. |
Latest pre-downgrade level |
| deAfterData |
string |
The post-downgrade data. |
Latest post-downgrade level |
Examples
Success response
JSON format
{
"requestId": "4361a0e1-6747-4834-96ce-0c2840fd3812",
"data": {
"problem": {
"problemName": "故障名称",
"problemStatus": "HANDLING",
"problemLevel": "P2",
"discoverTime": "2021-02-21 00:00:00",
"recoveryTime": "2021-02-21 00:00:00",
"serviceName": "服务A",
"progressSummary": "摘要123",
"preliminaryReason": "原因A",
"mainHandlerName": "小明",
"mainHandlerId": "231",
"isManual": true,
"isUpgrade": true,
"problemId": 123123,
"relatedServiceId": 213123,
"createTime": "2021-02-21 00:00:00",
"progressSummaryRichTextId": 12312,
"coordinationGroups": [
{
"serviceGroupName": "服务组A",
"serviceGroupId": 1231,
"serviceGroupDescription": "服务组描述"
}
],
"effectionServices": [
{
"serviceName": "服务B",
"serviceId": 1231
}
]
},
"voice": {
"count": 12,
"users": [
{
"username": "用户名称"
}
]
},
"mail": {
"count": 123,
"users": [
{
"username": "用户名称"
}
]
},
"sms": {
"count": 12,
"users": [
{
"username": "用户名称"
}
]
},
"webhook": {
"count": 32,
"serviceGroups": [
{
"serviceName": "服务名称"
}
]
},
"upBeforeData": "最新升级前等级",
"upAfterData": "最新升级后等级",
"deBeforeData": "最新降级前等级",
"deAfterData": "最新降级后等级"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | ProblemNotExisted | The problem does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.