Queries the details of a custom alert rule.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetRemind | The operation that you want to perform. Set the value to GetRemind. |
RemindId | Long | Yes | 1234 | The ID of the custom alert rule. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
HttpStatusCode | Integer | 200 | The HTTP status code. |
RequestId | String | 0000-ABCD-EFGH-IJKLMNOPQ | The request ID. You can troubleshoot issues based on the ID. |
ErrorMessage | String | The specified parameters are invalid. | The error message. |
ErrorCode | String | 1031203110005 | The error code. |
Success | Boolean | true | Indicates whether the request was successful. |
Data | Object | The details of the custom alert rule. | |
MaxAlertTimes | Integer | 3 | The maximum number of alerts. |
RemindUnit | String | NODE | The type of the object to which the custom alert rule is applied. Valid values: NODE, BASELINE, PROJECT, and BIZPROCESS. The value NODE indicates that the monitored object is a node. The value BASELINE indicates that the monitored object is a baseline. The value PROJECT indicates that the monitored object is a workspace. The value BIZPROCESS indicates that the monitored object is a workflow. |
AlertInterval | Integer | 1800 | The minimum interval at which alerts are reported. Unit: seconds. |
Useflag | Boolean | true | Indicates whether the custom alert rule is enabled. Valid values: true and false. |
Founder | String | 9527951795**** | The ID of the Alibaba Cloud account used by the creator of the custom alert rule. |
RemindId | Long | 1234 | The ID of the custom alert rule. |
DndEnd | String | 08:00 | The end time of the quiet hours. The value is in the hh:mm format. Valid values of hh: 0 to 23. Valid values of mm: 0 to 59. |
RemindType | String | FINISHED | The conditions that trigger an alert for the node. Valid values: FINISHED, UNFINISHED, ERROR, CYCLE_UNFINISHED, and TIMEOUT. The value FINISHED indicates that the node finishes running. The value UNFINISHED indicates that the node is still running at the specified point in time. The value ERROR indicates that an error occurs when the node is running. The value CYCLE_UNFINISHED indicates that the node does not finish running in the specified scheduling cycle. The value TIMEOUT indicates that the node times out. |
AlertUnit | String | OWNER | The recipient of the alert. Valid values: OWNER and OTHER. The value OWNER indicates the node owner. The value OTHER indicates a specified user. |
DndStart | String | 00:00 | The start time of the quiet hours. The value is in the hh:mm format. Valid values of hh: 0 to 23. Valid values of mm: 0 to 59. |
RemindName | String | Rule name | The name of the custom alert rule. |
Detail | String | {"hour":23,"minu":59} |
|
Robots | Array of Robots | The webhook URLs of the DingTalk chatbots. | |
WebUrl | String | https://oapi.dingtalk.com/robot/send?access_token=****************************** | The webhook URL of the DingTalk chatbot. |
AtAll | Boolean | true | Indicates whether all group members are notified when the alert notification is sent to a DingTalk group. Valid values: true and false. |
Nodes | Array of Nodes | The nodes to which the custom alert rule is applied. This parameter is returned if the value of the RemindUnit parameter is NODE. | |
Owner | String | 9527951795**** | The ID of the Alibaba Cloud account used by the owner of the node. |
NodeName | String | Node name | The name of the node. |
NodeId | Long | 1234 | The ID of the node. |
ProjectId | Long | 1234 | The ID of the workspace to which the node belongs. |
Baselines | Array of Baselines | The baselines to which the custom alert rule is applied. This parameter is returned if the value of the RemindUnit parameter is BASELINE. | |
BaselineName | String | Baseline name | The name of the baseline. |
BaselineId | Long | 1234 | The ID of the baseline. |
Projects | Array of Projects | The workspaces to which the custom alert rule is applied. This parameter is returned if the value of the RemindUnit parameter is PROJECT. | |
ProjectId | Long | 1234 | The ID of the workspace. |
BizProcesses | Array of BizProcesses | The workflows to which the custom alert rule is applied. This parameter is returned if the value of the RemindUnit parameter is BIZPROCESS. | |
BizProcessName | String | Workflow name | The name of the workflow. |
BizId | Long | 9527 | The ID of the workflow. |
AlertTargets | Array of String | 9527952795279527 |
|
AlertMethods | Array of String | SMS,MAIL | The notification method. Valid values:
|
Webhooks | Array of String | https://open.feishu.cn/open-apis/bot/v2/hook/******* | The webhook URL of the WeCom or Lark chatbot. If multiple webhook URLs are involved, the webhook URLs are separated by commas (,). The value of AlertMethods must include WEBHOOKS. Only DataWorks Enterprise Edition supports this parameter. The webhook URL-based alerting feature is supported in the following regions: China (Shanghai), China (Chengdu), China (Zhangjiakou), China (Beijing), China (Hangzhou), China (Shenzhen), China (Hong Kong), Germany (Frankfurt), and Singapore. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetRemind
&RemindId=1234
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetRemindResponse>
<HttpStatusCode>200</HttpStatusCode>
<RequestId>0000-ABCD-EFGH-IJKLMNOPQ</RequestId>
<ErrorMessage>The specified parameters are invalid.</ErrorMessage>
<ErrorCode>1031203110005</ErrorCode>
<Success>true</Success>
<Data>
<MaxAlertTimes>3</MaxAlertTimes>
<RemindUnit>NODE</RemindUnit>
<AlertInterval>1800</AlertInterval>
<Useflag>true</Useflag>
<Founder>9527951795****</Founder>
<RemindId>1234</RemindId>
<DndEnd>08:00</DndEnd>
<RemindType>FINISHED</RemindType>
<AlertUnit>OWNER</AlertUnit>
<DndStart>00:00</DndStart>
<RemindName>Rule name</RemindName>
<Detail>{"hour":23,"minu":59}</Detail>
<Robots>
<WebUrl>https://oapi.dingtalk.com/robot/send?access_token=******************************</WebUrl>
<AtAll>true</AtAll>
</Robots>
<Nodes>
<Owner>9527951795****</Owner>
<NodeName>Node name</NodeName>
<NodeId>1234</NodeId>
<ProjectId>1234</ProjectId>
</Nodes>
<Baselines>
<BaselineName>Baseline name</BaselineName>
<BaselineId>1234</BaselineId>
</Baselines>
<Projects>
<ProjectId>1234</ProjectId>
</Projects>
<BizProcesses>
<BizProcessName>Workflow name</BizProcessName>
<BizId>9527</BizId>
</BizProcesses>
<AlertTargets>9527952795279527</AlertTargets>
<AlertMethods>SMS,MAIL</AlertMethods>
<Webhooks>https://open.feishu.cn/open-apis/bot/v2/hook/*******</Webhooks>
</Data>
</GetRemindResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"HttpStatusCode" : 200,
"RequestId" : "0000-ABCD-EFGH-IJKLMNOPQ",
"ErrorMessage" : "The specified parameters are invalid.",
"ErrorCode" : 1031203110005,
"Success" : true,
"Data" : {
"MaxAlertTimes" : 3,
"RemindUnit" : "NODE",
"AlertInterval" : 1800,
"Useflag" : true,
"Founder" : "9527951795****",
"RemindId" : 1234,
"DndEnd" : "08:00",
"RemindType" : "FINISHED",
"AlertUnit" : "OWNER",
"DndStart" : "00:00",
"RemindName" : "Rule name",
"Detail" : "{\"hour\":23,\"minu\":59}",
"Robots" : {
"WebUrl" : "https://oapi.dingtalk.com/robot/send?access_token=******************************",
"AtAll" : true
},
"Nodes" : {
"Owner" : "9527951795****",
"NodeName" : "Node name",
"NodeId" : 1234,
"ProjectId" : 1234
},
"Baselines" : {
"BaselineName" : "Baseline name",
"BaselineId" : 1234
},
"Projects" : {
"ProjectId" : 1234
},
"BizProcesses" : {
"BizProcessName" : "Workflow name",
"BizId" : 9527
},
"AlertTargets" : "9527952795279527",
"AlertMethods" : "SMS,MAIL",
"Webhooks" : "https://open.feishu.cn/open-apis/bot/v2/hook/*******"
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
429 | Throttling.Api | The request for this resource has exceeded your available limit. | The number of requests for the resource has exceeded the upper limit. |
429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | The number of requests per day for the resource has exceeded the upper limit. |
429 | Throttling.System | The DataWorks system is busy. Try again later. | The DataWorks system is busy. Try again later. |
429 | Throttling.User | Your request is too frequent. Try again later. | Excessive requests have been submitted within a short period of time. Try again later. |
500 | Forbidden.Not.Server | The dataworksAPI service is not available in this area. Please try it in another area. | DataWorks API is unavailable in this region. Try another region. |
500 | InternalError.System | An internal system error occurred. Try again later. | An internal error has occurred. Try again later. |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | An internal error has occurred. Try again later. |
For a list of error codes, see Service error codes.