Edits the recording rule of a cluster monitored by Prometheus Service.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
QueryUserId | string | Yes | The user ID. | 87348589207 |
ClusterId | string | Yes | The cluster ID. | cf09705f5a82f454db0d50420b6b4e904 |
RuleYaml | string | Yes | The recording rule. | groups:\n- interval: 60s\n name: auto_analyzer_recording_rule_60s\n rules:\n - expr: sum(node_cpu_seconds_total)\n record: sum:node_cpu_seconds_total:recording_rule_hash_f341458c0f7d\n |
RegionId | string | Yes | The region ID. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CD782AEC-A676-529F-8F26-0ED0FF0EF1EA",
"Data": "success",
"Code": 200,
"Message": "success"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2023-03-20 | The response structure of the API has changed | see changesets | ||
|