Skip to main content
GET
/
api
/
v1
/
config
/
recording-rules
cURL
curl --request GET \
  --url https://tenant.chronosphere.io/api/v1/config/recording-rules \
  --header 'API-Token: <api-key>'
{
  "page": {
    "next_token": "<string>"
  },
  "recording_rules": [
    {
      "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

Query Parameters

page.max_size
integer<int64>

Sets the preferred number of items to return per page. If set to 0, the server will use its default value. Regardless of the value specified, clients must never assume how many items will be returned.

page.token
string

An opaque page token that identifies which page the client should request. An empty value indicates the first page.

slugs
string[]

Filters results by slug, where any RecordingRule with a matching slug in the given list (and matches all other filters) will be returned.

names
string[]

Filters results by name, where any RecordingRule with a matching name in the given list (and matches all other filters) will be returned.

bucket_slugs
string[]

The execution_groups filter cannot be used when a bucket_slug filter is provided.

execution_groups
string[]

The bucket_slugs filter cannot be used when an execution_group filter is provided.

Response

A successful response.

page
object
recording_rules
object[]