Queries a list of alerts.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageNumber | integer | Yes | The page number. Default value: 1. Minimum value: 1. Maximum value: 30. | 1 |
PageSize | integer | Yes | The number of entries per page. Default value: 10. Maximum value: 100. | 10 |
BeginTime | string | Yes | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-dd'T'HH:mm:ssZ format. The time must be in UTC. | 2020-04-02T00:00:00+0800 |
EndTime | string | Yes | The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-dd'T'HH:mm:ssZ format. The time must be in UTC. | 2020-04-04T00:00:00+0800 |
RemindId | long | No | The custom alert rule ID. This parameter takes effect if the AlertRuleTypes parameter is set to USER_DEFINE. You can configure either this parameter or the BaselineId parameter. | 9527 |
AlertMethods | string | No | The notification method. Valid values:
You can specify multiple notification methods. Separate them with commas (,). | SMS,MAIL,PHONE |
AlertUser | string | No | The ID of the Alibaba Cloud account used by the alert recipient. | 123456 |
AlertRuleTypes | string | No | The type of the alert rule. Valid values: GLOBAL, USER_DEFINE, and OTHER. The value GLOBAL indicates that the alert rule is a global alert rule. The value USER_DEFINE indicates that the alert rule is customized by a user. The value OTHER indicates that the alert rule is a rule of another type. You can specify multiple types. Separate them with commas (,). | GLOBAL,USER_DEFINE,OTHER |
BaselineId | long | No | The baseline ID. This parameter takes effect if the AlertRuleTypes parameter is set to GLOBAL. You can configure either this parameter or the RemindId parameter. | 1234 |
Response parameters
Examples
Sample success responses
JSON
format
{
"HttpStatusCode": 200,
"RequestId": "0000-ABCD-EFG****",
"ErrorMessage": "The specified parameters are invalid.",
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Success": true,
"Data": {
"PageNumber": "1",
"PageSize": "10",
"TotalCount": "100",
"AlertMessages": [
{
"RemindId": 1234,
"AlertMessageStatus": "READY_TO_SEND",
"AlertUser": "9527952795****",
"AlertTime": 1553531401000,
"AlertMethod": "SMS",
"Source": "REMIND_ALERT",
"Content": "",
"RemindName": "",
"AlertId": 1234,
"Instances": [
{
"Status": "NOT_RUN",
"InstanceId": 12345,
"NodeName": "",
"NodeId": 1234,
"ProjectId": 1234
}
],
"Topics": [
{
"TopicName": "",
"InstanceId": 12345,
"TopicId": 1234,
"TopicOwner": "9527952795****",
"NodeId": 1234,
"TopicStatus": "FIXING"
}
],
"Nodes": [
{
"Owner": "95279527952****",
"NodeName": "",
"NodeId": 1234,
"ProjectId": 1234
}
],
"SlaAlert": {
"Status": "SAFE",
"BaselineOwner": "952795279****",
"BaselineId": 1234,
"BaselineName": "",
"Bizdate": 1553443200000,
"ProjectId": 1234,
"InGroupId": 1
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | No permission, please authorize |
429 | Throttling.Api | The request for this resource has exceeded your available limit. | - |
429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | - |
429 | Throttling.Resource | You have reached the limit for the resource. Please contact us by submitting a ticket. | - |
429 | Throttling.System | The DataWorks system is busy. Try again later. | - |
429 | Throttling.User | Your request is too frequent. Try again later. | - |
500 | Forbidden.Not.Server | The dataworksAPI service is not available in this area. Please try it in another area. | - |
500 | InternalError.System | An internal system error occurred. Try again later. | - |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|