GetProblemPreview

Updated at:

Retrieves a preview of the fault notification.

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: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: Fault notification.

  • PROBLEM_UPDATE: Fault update.

  • PROBLEM_UPGRADE: Fault escalation.

  • PROBLEM_DEGRADE: Fault de-escalation.

  • PROBLEM_RECOVER: Fault recovery.

  • PROBLEM_REISSUE: Fault reissue.

  • PROBLEM_CANCEL: Fault cancellation.

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: Handling.

  • RECOVERED: Recovered.

  • REPLAYING: Replaying.

  • REPLAYED: Replayed.

  • CANCEL: Canceled.

HANDLING

problemLevel

string

The problem level in descending order. Valid values:

  • P1

  • P2

  • P3

  • P4

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

mail

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.