Obtains 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. | 876345234 |
ClusterId | string | Yes | The cluster ID. | cc7a37ee31aea4ed1a059eff8034b**** |
RegionId | string | Yes | The region ID. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "34ED024E-9E31-434A-9E4E-D9D15C3****",
"Data": "--- groups: - name: \"recording_demo\" rules: - expr: \"sum(jvm_memory_max_bytes)\" record: \"rate_coredns_demo\"",
"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 | ||
|