Skip to main content
Create Recording Rules
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/latest/v1/rule-group-sets \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "groups": [
    {
      "id": "<string>",
      "interval": 123,
      "limit": "",
      "name": "<string>",
      "rules": [
        {
          "expr": "<string>",
          "labels": {},
          "record": "<string>"
        }
      ],
      "version": 123
    }
  ],
  "name": "<string>"
}
'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

A set of rule groups to create.

groups
In Rule Group · object[]
name
string

Response

Result of creating a rule group set.

id
string