Queries the information about a monitoring rule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RuleId | long | Yes | The monitoring rule ID. You can call the ListQualityRules operation to query the ID. | 1234 |
| ProjectName | string | Yes | The name of the compute engine or data source. | autotest |
| ProjectId | long | Yes | The DataWorks workspace ID. | 12345 |
Response parameters
Examples
Sample success responses
JSONformat
{
"HttpStatusCode": 200,
"RequestId": "576b9457-2cf5-4****",
"ErrorMessage": "You have no permission.",
"ErrorCode": 401,
"Success": true,
"Data": {
"BlockType": 1,
"OnDutyAccountName": "test",
"WarningThreshold": 10,
"Property": "id",
"RuleType": 0,
"Comment": "Verify that the primary key is unique",
"OnDuty": "1822931****",
"Checker": 9,
"FixCheck": true,
"MethodId": 8,
"CriticalThreshold": 20,
"PredictType": 0,
"TemplateName": "SQL task table rows, 1,7, 30 days fluctuation test",
"CheckerName": "compared with a fixed value",
"RuleName": "View table fluctuations",
"MethodName": "table_count",
"EntityId": 165523,
"WhereCondition": "id>10",
"Operator": ">=",
"ExpectValue": 30,
"Trend": "abs",
"TemplateId": 7,
"Id": 123232,
"OpenSwitch": true,
"TaskSetting": "x=a,y=b\n"
}
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-06-18 | The response structure of the API has changed | View Change Details |
| 2023-08-29 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
| 2023-03-08 | The request parameters of the API has changed | View Change Details |
