Obtains the recording rule of a cluster.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | Yes | The ID of the cluster. | cc7a37ee31aea4ed1a059eff8034b**** |
RegionId | string | Yes | The region ID. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "9FEA6D00-317F-45E3-9004-7FB8B0B7****",
"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 | ||
|