All Products
Search
Document Center

DataWorks:CreateQualityFollower

Last Updated:Nov 20, 2023

Creates a subscriber for a partition filter expression.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes CreateQualityFollower

The operation that you want to perform. Set the value to CreateQualityFollower.

ProjectName String Yes autotest

The name of the compute engine instance or data source.

Follower String Yes 123

The account ID of the subscriber.

AlarmMode Integer Yes 1

The notification method. Valid values: 1, 2, 4, 5, 6, 7, 8, and 9. The value 1 indicates that the notification is sent by email. The value 2 indicates that the notification is sent by email and text message. The value 4 indicates that the notification is sent by a DingTalk chatbot. The value 5 indicates that the notification is sent by a DingTalk chatbot to all members in a DingTalk group. The value 6 indicates that the notification is sent by Lark. The value 7 indicates that the notification is sent by WeCom. The value 8 indicates that the notification is sent by webhook. The value 9 indicates that the notification is sent by phone call.

EntityId Long Yes 12345

The ID of the partition filter expression.

ProjectId Long Yes 123

The DataWorks workspace ID. You can log on to the DataWorks console to obtain the ID.

Response parameters

Parameter

Type

Example

Description

HttpStatusCode Integer 200

The HTTP status code.

Data Integer 12345

The ID of the subscription relationship.

ErrorMessage String You have no permission.

The error message.

RequestId String ecb967ec-c137-48****

The request ID.

ErrorCode String 401

The error code.

Success Boolean true

Indicates whether the request was successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateQualityFollower
&ProjectName=autotest
&Follower=123
&AlarmMode=1
&EntityId=12345
&ProjectId=123
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateQualityFollowerResponse>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>12345</Data>
    <ErrorMessage>You have no permission.</ErrorMessage>
    <RequestId>ecb967ec-c137-48****</RequestId>
    <ErrorCode>401</ErrorCode>
    <Success>true</Success>
</CreateQualityFollowerResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "HttpStatusCode" : 200,
  "Data" : 12345,
  "ErrorMessage" : "You have no permission.",
  "RequestId" : "ecb967ec-c137-48****",
  "ErrorCode" : 401,
  "Success" : true
}

Error codes

For a list of error codes, see Service error codes.