GetRemind

Updated at:

Queries the details of a custom monitoring alert rule.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RemindId

integer

Yes

The ID of the custom monitoring rule.

1234

Response elements

Element

Type

Description

Example

object

The returned data type.

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The unique ID of the request. You can use this ID to troubleshoot issues if an error occurs.

0000-ABCD-EFGH-IJK****

ErrorMessage

string

The error message.

The specified parameters are invalid.

ErrorCode

string

The error code.

1031203110005

Success

boolean

Indicates whether the call was successful.

true

Data

object

The details of the custom monitoring rule.

MaxAlertTimes

integer

The maximum number of alerts.

3

RemindUnit

string

The type of the monitored object. Valid values:

  • NODE: node.

  • BASELINE: baseline.

  • PROJECT: workspace.

  • BIZPROCESS: business process.

NODE

AlertInterval

integer

The minimum alert interval, in seconds.

1800

Useflag

boolean

Specifies whether the custom monitoring rule is enabled. Valid values:

  • true: enabled.

  • false: disabled.

true

Founder

string

The Alibaba Cloud UID of the user who created the custom monitoring rule.

9527951795****

RemindId

integer

The ID of the custom monitoring rule.

1234

DndEnd

string

The end time of the do-not-disturb period, in the hh:mm format. Valid values of hh: [0,23]. Valid values of mm: [0,59].

08:00

RemindType

string

The trigger condition. Valid values:

  • FINISHED: completed.

  • UNFINISHED: incomplete.

  • ERROR: error.

  • CYCLE_UNFINISHED: cycle incomplete.

  • TIMEOUT: timeout.

FINISHED

AlertUnit

string

The alert recipient type. For multiple recipient types, see the Receivers response parameter. Valid values:

  • OWNER: task owner.

  • OTHER: specified user.

  • SHIFT_SCHEDULE: shift schedule.

OWNER

DndStart

string

The start time of the do-not-disturb period, in the hh:mm format. Valid values of hh: [0,23]. Valid values of mm: [0,59].

00:00

RemindName

string

The name of the rule.

Rule name

Detail

string

  • If the RemindType (trigger condition) is FINISHED (completed), an empty value is returned.

  • If the RemindType (trigger condition) is UNFINISHED (incomplete), the return format is {"hour":23,"minu":59}. Valid values of hour: [0,47]. Valid values of minu: [0,59].

  • If the RemindType (trigger condition) is ERROR (error), an empty value is returned.

  • If the RemindType (trigger condition) is CYCLE_UNFINISHED (cycle incomplete), the return format is {"1":"05:50","2":"06:50","3":"07:50","4":"08:50","5":"09:50","6":"10:50","7":"11:50","8":"12:50","9":"13:50","10":"14:50","11":"15:50","12":"16:50","13":"17:50","14":"18:50","15":"19:50","16":"20:50","17":"21:50","18":"22:50","19":"23:50","20":"24:50","21":"25:50"}. The key in the JSON string is the cycle number, with valid values of [1,288]. The value is the time by which the corresponding cycle must finish, in the hh:mm format. Valid values of hh: [0,47]. Valid values of mm: [0,59].

  • If the RemindType (trigger condition) is TIMEOUT (timeout), the return format is 1800, in seconds. This indicates that alerting is triggered if the runtime exceeds 30 minutes from the start time.

{"hour":23,"minu":59}

Robots

array<object>

The list of webhook URLs for DingTalk group chatbots.

object

The returned data type.

WebUrl

string

The webhook URL of the DingTalk group chatbot.

https://oapi.dingtalk.com/robot/send?access_token=******************************

AtAll

boolean

Specifies whether to mention all members. Valid values:

  • true: yes.

  • false: no.

true

Nodes

array<object>

The list of nodes monitored by the rule when RemindUnit (object type) is NODE (node).

object

The returned data type.

Owner

string

The Alibaba Cloud UID of the node owner.

9527951795****

NodeName

string

The name of the node.

Node name

NodeId

integer

The ID of the node.

1234

ProjectId

integer

The ID of the workspace to which the node belongs.

1234

Baselines

array<object>

The list of baselines monitored by the rule when RemindUnit (object type) is BASELINE (baseline).

object

The returned data type.

BaselineName

string

The name of the baseline.

Baseline name

BaselineId

integer

The ID of the baseline.

1234

Projects

array<object>

The list of workspaces monitored by the rule when RemindUnit (object type) is PROJECT (workspace).

object

The returned data type.

ProjectId

integer

The ID of the workspace.

1234

BizProcesses

array<object>

The list of business processes monitored by the rule when RemindUnit (object type) is BIZPROCESS (business process).

object

The returned data type.

BizProcessName

string

The name of the business process.

Business process name

BizId

integer

The ID of the business process.

9527

AlertTargets

array

The description of the alert recipients. For multiple types of alert recipients, refer to the Receivers response parameter.

string

  • If AlertUnit (alert recipient type) is OWNER (node owner), an empty value is returned.

  • If AlertUnit (alert recipient type) is OTHER (specified user), the Alibaba Cloud UID of the specified user is returned.

  • If AlertUnit (alert recipient type) is SHIFT_SCHEDULE (shift schedule), the shift schedule ID is returned.

9527952795279527

AlertMethods

array

The alert methods.

string

The alert method. Valid values:

  • MAIL: email.

  • SMS: text message.

  • PHONE: phone call. This method is supported only in DataWorks Professional Edition and higher editions.

SMS,MAIL

Webhooks

array

WebHook URL

string

The webhook URL of the WeCom or Lark chatbot. The AlertMethods parameter must include the Webhook alert method. Custom webhooks are supported only in DataWorks Enterprise Edition.

https://open.feishu.cn/open-apis/bot/v2/hook/*******

Receivers

array<object>

The alert recipient information.

object

The alert recipient type.

AlertUnit

string

The alert recipient type. For multiple recipient types, see the Receivers response parameter. Valid values:

  • OWNER: task owner.

  • OTHER: specified user.

  • SHIFT_SCHEDULE: shift schedule.

OWNER

AlertTargets

array

The alert recipients.

string

  • If AlertUnit (alert recipient type) is OWNER (node owner), an empty value is returned.

  • If AlertUnit (alert recipient type) is OTHER (specified user), the Alibaba Cloud UID of the specified user is returned.

  • If AlertUnit (alert recipient type) is SHIFT_SCHEDULE (shift schedule), the shift schedule ID is returned.

9527952795279527

AllowNodes

array

The alert whitelist.

integer

The ID of the node in the whitelist, which is ignored during monitoring.

123

Examples

Success response

JSON format

{
  "HttpStatusCode": 200,
  "RequestId": "0000-ABCD-EFGH-IJK****",
  "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": "Business process name",
        "BizId": 9527
      }
    ],
    "AlertTargets": [
      "9527952795279527"
    ],
    "AlertMethods": [
      "SMS,MAIL"
    ],
    "Webhooks": [
      "https://open.feishu.cn/open-apis/bot/v2/hook/*******"
    ],
    "Receivers": [
      {
        "AlertUnit": "OWNER",
        "AlertTargets": [
          "9527952795279527"
        ]
      }
    ],
    "AllowNodes": [
      123
    ]
  }
}

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.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.