BladePipe 1.6.0 supports Snowflake, Hologres and CloudBerry.
跳到主要内容

Update Worker Alert Config

Interface Overview

Update the alert configuration of a specified worker node, including phone, email, instant messaging, and SMS alert switches.

Interface Address

/cloudcanal/console/api/v1/openapi/worker/updateWorkerAlertConfig

Request Manner

POST

Request Parameters

ParameterNameParameter DescriptionRequestTypeWhether RequiredDataType
workerIdWorker node IDbodyTruelong
phoneWhether to enable phone alertsbodyFalseboolean
emailWhether to enable email alertsbodyFalseboolean
imWhether to enable instant messaging alerts (e.g., DingTalk)bodyFalseboolean
smsWhether to enable SMS alertsbodyFalseboolean

Public Response Results

ParameterNameParameter DescriptionType(Java)NotNull
code1: Success, 0: FailurestringTrue
dataobjectFalse
msgstringFalse
requestIdstringTrue

Request Example

{
"workerId": 1,
"phone": false,
"email": true,
"im": true,
"sms": false
}

Response Example

{
"requestId": "ebd0b7dc-54ed-11ed-b820-5bd47d77dc8c",
"code": "1",
"msg": "request success",
"data": null
}

Notes

  • Alert configuration changes take effect immediately.
  • The corresponding alert channels (email server, DingTalk robot, etc.) must be configured in the system for alerts to be sent properly.