GetAlertMessage

Updated at:

Queries the details of an alert by alert ID.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

AlertId

string

Yes

The alert ID. You can call the ListAlertMessages operation to obtain the alert ID.

1421

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID. You can use the request ID to locate logs and troubleshoot issues.

0000-ABCD-EFG****

HttpStatusCode

integer

The HTTP status code.

200

ErrorMessage

string

The error message.

The specified parameters are invalid.

ErrorCode

string

The error code.

Invalid.Tenant.ConnectionNotExists

Success

boolean

Specifies whether the call is successful. Valid values:

  • true: The call is successful.

  • false: The call fails.

true

Data

object

The details of the returned data.

RemindId

integer

The ID of the custom monitoring rule that triggers the alert. This parameter is returned only when the Source parameter is set to REMIND_ALERT.

1234

AlertMessageStatus

string

The sending status of the alert message. Valid values:

  • READY_TO_SEND: The message is ready to be sent.

  • SEND_FAIL: The message fails to be sent.

  • SEND_SUCCESS: The message is sent.

  • SEND_OVERLIMIT: The alert limit is exceeded.

READY_TO_SEND

AlertUser

string

The Alibaba Cloud UID of the alert message recipient.

9527952795****

AlertTime

integer

The time when the alert is triggered. The value is a 13-digit timestamp, such as 1553524393000.

1553524393000

AlertMethod

string

The alert notification method. Valid values:

  • MAIL: Email.

  • SMS: Text message.

  • PHONE: Phone call. This method is supported only in DataWorks Professional Edition or a higher edition.

SMS

Source

string

The source of the alert. Valid values:

  • REMIND_ALERT: Custom alert.

  • TOPIC_ALERT: Event alert.

  • SLA_ALERT: Baseline alert.

  • NODE_CYCLE_ALERT: Node loop alert.

  • NODE_LONELY_ALERT: Isolated node alert.

REMIND_ALERT

Content

string

The content of the alert message.

Node error

RemindName

string

The name of the custom monitoring rule that triggers the alert. This parameter is returned only when the Source parameter is set to REMIND_ALERT.

Custom monitoring rule name

AlertId

integer

The alert ID.

123

Instances

array<object>

The list of instances that trigger the custom monitoring rule. This parameter is returned only when the Source parameter is set to REMIND_ALERT. For other alert sources, an empty list is returned.

object

The instance information.

Status

string

The instance status. Valid values:

  • NOT_RUN: The instance is not run.

  • WAIT_TIME: The instance is waiting for the scheduled time.

  • WAIT_RESOURCE: The instance is waiting for resources.

  • RUNNING: The instance is running.

  • CHECKING: The instance is being checked.

  • CHECKING_CONDITION: The conditions are being checked.

  • FAILURE: The instance failed to run.

  • SUCCESS: The instance runs successfully.

NOT_RUN

InstanceId

integer

The instance ID.

12312****

NodeName

string

The node name.

Node name

NodeId

integer

The node ID.

1234

ProjectId

integer

The ID of the workspace to which the node belongs.

1234

Topics

array<object>

The list of events that trigger the alerting. This parameter is returned only when the Source parameter is set to TOPIC_ALERT (global event alerting). For other alerting sources, an empty list is returned.

object

The event information.

TopicName

string

The event name.

error

InstanceId

integer

The instance ID associated with the event.

12345

TopicId

integer

The event ID.

412431

TopicOwner

string

The Alibaba Cloud UID of the event owner.

9527952795****

NodeId

integer

The ID of the node associated with the event.

1234

TopicStatus

string

The status of the event. Valid values:

  • IGNORE: The event is ignored.

  • NEW: The event is newly discovered.

  • FIXING: The event is being handled.

  • RECOVER: The event is recovered.

FIXING

Nodes

array<object>

The returned node list varies based on the alert source: If Source is NODE_CYCLE_ALERT (cyclic node alert), the types of cyclic nodes are returned. If Source is NODELONELYALERT (isolated node alert), the types of isolated nodes are returned.

object

The node information.

Owner

string

The Alibaba Cloud UID of the node owner.

95279527952****

NodeName

string

The node name.

Node name

NodeId

integer

The node ID.

1234

ProjectId

integer

The ID of the workspace to which the node belongs.

1234

SlaAlert

object

The basic information about the baseline instance that triggers the baseline alert. This parameter is returned only when the Source parameter is set to SLA_ALERT. For other alert sources, this parameter is empty.

Status

string

The baseline status. Valid values:

  • ERROR: Abnormal.

  • SAFE: Safe.

  • DANGEROUS: Warning.

  • OVER: Broken.

SAFE

BaselineOwner

string

The Alibaba Cloud UIDs of the baseline owners. Multiple UIDs are separated by commas (,).

952795279****

BaselineId

integer

The baseline ID.

15142123

BaselineName

string

The baseline name.

Baseline name

Bizdate

integer

The timestamp of the business date for the baseline instance.

1553443200000

ProjectId

integer

The ID of the workspace to which the baseline belongs.

1234

InGroupId

integer

The cycle number of the baseline instance. The value is 1 for daily baselines and ranges from 1 to 24 for hourly baselines.

1

Examples

Success response

JSON format

{
  "RequestId": "0000-ABCD-EFG****",
  "HttpStatusCode": 200,
  "ErrorMessage": "The specified parameters are invalid.",
  "ErrorCode": "Invalid.Tenant.ConnectionNotExists",
  "Success": true,
  "Data": {
    "RemindId": 1234,
    "AlertMessageStatus": "READY_TO_SEND",
    "AlertUser": "9527952795****",
    "AlertTime": 1553524393000,
    "AlertMethod": "SMS",
    "Source": "REMIND_ALERT",
    "Content": "Node error",
    "RemindName": "Custom monitoring rule name",
    "AlertId": 123,
    "Instances": [
      {
        "Status": "NOT_RUN",
        "InstanceId": 0,
        "NodeName": "Node name",
        "NodeId": 1234,
        "ProjectId": 1234
      }
    ],
    "Topics": [
      {
        "TopicName": "error",
        "InstanceId": 12345,
        "TopicId": 412431,
        "TopicOwner": "9527952795****",
        "NodeId": 1234,
        "TopicStatus": "FIXING"
      }
    ],
    "Nodes": [
      {
        "Owner": "95279527952****",
        "NodeName": "Node name",
        "NodeId": 1234,
        "ProjectId": 1234
      }
    ],
    "SlaAlert": {
      "Status": "SAFE",
      "BaselineOwner": "952795279****",
      "BaselineId": 15142123,
      "BaselineName": "Baseline name",
      "Bizdate": 1553443200000,
      "ProjectId": 1234,
      "InGroupId": 1
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.