Creates or updates a recording rule of Managed Service for Prometheus.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | Yes | The cluster ID. | cc7a37ee31aea4ed1a059eff8034b**** |
RuleYaml | string | Yes | The custom recording rule. The value is in the YAML format. | groups: - name: "recording_demo" rules: - expr: "sum(jvm_memory_max_bytes)" record: "rate_coredns_demo" |
RegionId | string | Yes | The region ID. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "9FEA6D00-317F-45E3-9004-7FB8B0B7****",
"Data": "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 | ||
|