Skip to main content
POST
/
api
/
v1
/
config
/
recording-rules
cURL
curl --request POST \
  --url https://tenant.chronosphere.io/api/v1/config/recording-rules \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "recording_rule": {
    "name": "<string>",
    "bucket_slug": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "execution_group": "<string>",
    "interval_secs": 123,
    "label_policy": {
      "add": {}
    },
    "metric_name": "<string>",
    "prometheus_expr": "<string>",
    "slug": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
dry_run
boolean

If true, validates the specified configuration without creating the RecordingRule. If the specified configuration is valid, the endpoint returns a partial response without the RecordingRule. If the specified configuration is invalid, the endpoint returns an error.

recording_rule
object

The RecordingRule to create.

Response

A successful response containing the created RecordingRule.

recording_rule
object