ListReminds
Retrieves or searches for custom monitoring rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
list |
*All Resource
|
None | None |
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 |
| Founder |
string |
No |
The Alibaba Cloud UID of the creator. |
9527952795**** |
| NodeId |
integer |
No |
The ID of the node to which the rule applies. You can search for custom monitoring rules that cover the specified node by using the node ID. |
1234 |
| RemindTypes |
string |
No |
The trigger conditions. Valid values: FINISHED (completed), UNFINISHED (incomplete), ERROR (error occurred), CYCLE_UNFINISHED (cycle incomplete), and TIMEOUT (execution timed out). Separate multiple trigger conditions with commas (,). |
FINISHED,ERROR |
| AlertTarget |
string |
No |
The Alibaba Cloud UID of the alert recipient. |
9527952795**** |
| SearchText |
string |
No |
The keyword used to search for rule names. |
Fuzzy search rule name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The unique ID of the request. You can use the ID to troubleshoot issues. |
0000-ABCD-EFG**** |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid. |
| ErrorCode |
string |
The error code. |
1031203110005 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
object |
The list of custom monitoring rules. |
|
| PageNumber |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of custom monitoring rules. |
100 |
| Reminds |
array<object> |
The list of custom monitoring rules. |
|
|
object |
The list of custom monitoring rules. |
||
| Founder |
string |
The Alibaba Cloud UID of the rule creator. |
952795**** |
| RemindId |
integer |
The ID of the custom monitoring rule. |
1234 |
| AlertUnit |
string |
The alert recipient type. Valid values: OWNER (task owner) and OTHER (specified user). |
OWNER |
| RemindType |
string |
The trigger conditions. Valid values: FINISHED (completed), UNFINISHED (incomplete), ERROR (error occurred), CYCLE_UNFINISHED (cycle incomplete), and TIMEOUT (execution timed out). |
FINISHED |
| DndEnd |
string |
The end time of the do-not-disturb period in the hh:mm format. Valid values for hh: 0 to 23. Valid values for mm: 0 to 59. |
08:00 |
| DndStart |
string |
The start time of the do-not-disturb period in the hh:mm format. Valid values for hh: 0 to 23. Valid values for mm: 0 to 59. |
00:00 |
| RemindUnit |
string |
The type of the object. Valid values: NODE (node), BASELINE (baseline), PROJECT (workspace), and BIZPROCESS (business process). |
NODE |
| Useflag |
boolean |
Indicates whether the rule is enabled. Valid values: true (enabled) and false (disabled). |
true |
| RemindName |
string |
The name of the custom monitoring rule. |
Rule name |
| AlertTargets |
array |
The list of Alibaba Cloud UIDs of the alert recipients. |
|
|
string |
The list of Alibaba Cloud UIDs of the alert recipients. |
952795**** |
|
| NodeIds |
array |
The list of monitoring node IDs when RemindUnit (object type) is NODE (node). |
|
|
integer |
The list of monitoring node IDs when RemindUnit (object type) is NODE (node). |
1234 |
|
| BizProcessIds |
array |
The list of monitoring baseline IDs when RemindUnit (object type) is BIZPROCESS (business flow). |
|
|
integer |
The list of monitoring baseline IDs when RemindUnit (object type) is BIZPROCESS (business flow). |
9527 |
|
| ProjectIds |
array |
The list of monitoring node IDs when RemindUnit (object type) is PROJECT (workspace). |
|
|
integer |
The list of monitoring node IDs when RemindUnit (object type) is PROJECT (workspace). |
1234 |
|
| BaselineIds |
array |
The list of monitoring baseline IDs when RemindUnit (object type) is BASELINE (baseline). |
|
|
integer |
The list of monitoring baseline IDs when RemindUnit (object type) is BASELINE (baseline). |
9527 |
|
| AlertMethods |
array |
The alert method. Valid values: MAIL (email), SMS (text message), and PHONE (phone call, supported only in DataWorks Professional Edition and higher editions). |
|
|
string |
The alert method. Valid values: MAIL (email), SMS (text message), and PHONE (phone call, supported only in DataWorks Professional Edition and higher editions). |
SMS |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "0000-ABCD-EFG****",
"ErrorMessage": "The specified parameters are invalid.",
"ErrorCode": "1031203110005",
"Success": true,
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 100,
"Reminds": [
{
"Founder": "952795****",
"RemindId": 1234,
"AlertUnit": "OWNER",
"RemindType": "FINISHED",
"DndEnd": "08:00",
"DndStart": "00:00",
"RemindUnit": "NODE",
"Useflag": true,
"RemindName": "Rule name",
"AlertTargets": [
"952795****"
],
"NodeIds": [
1234
],
"BizProcessIds": [
9527
],
"ProjectIds": [
1234
],
"BaselineIds": [
9527
],
"AlertMethods": [
"SMS"
]
}
]
}
}
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 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | |
| 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.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.