Updates a custom monitoring rule.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RemindId |
integer |
Yes |
The ID of the custom rule. |
1234 |
| RemindName |
string |
No |
The name of the custom rule. The name cannot exceed 128 characters in length. |
update_remindname |
| DndEnd |
string |
No |
The end time of the do-not-disturb period. Alerts are not sent before this time. Format: hh:mm. Valid values of hh: [0,23]. Valid values of mm: [0,59]. |
08:00 |
| RemindUnit |
string |
No |
The type of the monitored object. Valid values:
Valid values:
|
NODE |
| NodeIds |
string |
No |
The node IDs when the monitored object is a node. A rule can monitor up to 50 nodes. Separate multiple node IDs with commas (,). This parameter takes effect only when RemindUnit is set to NODE. |
1,2,3 |
| BaselineIds |
string |
No |
The baseline IDs when the monitored object is a baseline. A rule can monitor up to 5 baselines. Separate multiple baseline IDs with commas (,). This parameter takes effect only when RemindUnit is set to BASELINE. |
1,2,3 |
| ProjectId |
integer |
No |
The workspace ID when the monitored object is a workspace. A rule can monitor only one workspace. This parameter takes effect only when RemindUnit is set to PROJECT. |
1234 |
| BizProcessIds |
string |
No |
The business process IDs when the monitored object is a business process. A rule can monitor up to 5 business processes. Separate multiple business process IDs with commas (,). This parameter takes effect only when RemindUnit is set to BIZPROCESS. |
1,2,3 |
| RemindType |
string |
No |
The condition that triggers the alert rule. Valid values:
For more information about alert trigger conditions, see Custom rules. |
FINISHED |
| MaxAlertTimes |
integer |
No |
The maximum number of alerts. Valid values: [1,10]. Default value: 3. |
3 |
| AlertInterval |
integer |
No |
The alert interval, in seconds. Minimum value: 1200. Default value: 1800. |
1800 |
| Detail |
string |
No |
The configuration details for different trigger conditions:
|
{"hour":23,"minu":59} |
| AlertUnit |
string |
No |
The recipient of the alert. Valid values:
Valid values:
|
OWNER |
| AlertMethods |
string |
No |
The alert notification method. Valid values:
Separate multiple alert methods with commas (,). |
SMS,MAIL |
| AlertTargets |
string |
No |
The configuration details for different alert recipients:
|
9527952795279527 |
| UseFlag |
boolean |
No |
Specifies whether to enable the alert rule. Valid values:
|
true |
| RobotUrls |
string |
No |
The webhook URLs of DingTalk group chatbots. Separate multiple webhook URLs with commas (,). When the parameter settings are set to undefined, the system clears the DingTalk chatbot webhook URLs. |
https://oapi.dingtalk.com/robot/send?access_token=****************************** |
| Webhooks |
string |
No |
The webhook URLs of WeCom or Lark chatbots. Separate multiple webhook URLs with commas (,). The alertMethods parameter must include the WEBHOOKS alerting method. When the parameter is set to undefined, the system clears the webhook URLs. Only DataWorks Enterprise Edition is supported. Active regions: China (Shanghai), China (Chengdu), China (Zhangjiakou), China (Beijing), China (Hangzhou), China (Shenzhen), Hong Kong (China), Germany (Frankfurt), Asia-Pacific Southeast 1 (Singapore). |
https://open.feishu.cn/open-apis/bot/v2/hook/******* |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
boolean |
The result of updating the custom monitoring rule. |
true |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid. |
| RequestId |
string |
The unique ID of the request. You can use this ID to troubleshoot issues. |
0000-ABCD-EFG**** |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
1031203110005 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Data": true,
"ErrorMessage": "The specified parameters are invalid.",
"RequestId": "0000-ABCD-EFG****",
"Success": true,
"ErrorCode": "1031203110005"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | Forbidden.Not.Server | The dataworksAPI service is not available in this area. Please try it in another area. | |
| 500 | Forbidden.Wkbench.BaselineNoPermission | You are not authorized to access the baseline. | |
| 500 | Forbidden.Wkbench.ProjectNoPermission | You are not authorized to access the workspace. | |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 500 | Forbidden.Wkbench.RemindNoPermission | You are not authorized to modify the reminder. | |
| 500 | Invalid.Wkbench.RemindNotExist | The reminder does not exist. | |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.