Skip to main content
PUT
/
api
/
v1
/
config
/
rollup-rules
/
{slug}
{
  "rollup_rule": {
    "bucket_slug": "<string>",
    "name": "<string>",
    "add_metric_type_label": true,
    "aggregation": "LAST",
    "created_at": "2023-11-07T05:31:56Z",
    "drop_raw": true,
    "expansive_match": true,
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ],
    "graphite_label_policy": {
      "replace": [
        {
          "name": "__g1__",
          "new_value": "ALL_HOSTS"
        }
      ]
    },
    "interval": "<string>",
    "label_policy": {
      "discard": [
        "<string>"
      ],
      "keep": [
        "<string>"
      ]
    },
    "label_replace": {},
    "metric_name": "<string>",
    "metric_type": "COUNTER",
    "mode": "ENABLED",
    "skip_on_conflict": true,
    "slug": "<string>",
    "storage_policy": {
      "resolution": "<string>",
      "retention": "<string>"
    },
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Body

application/json
create_if_missing
boolean

If true, the RollupRule will be created if it does not already exist, identified by slug. If false, an error will be returned if the RollupRule does not already exist.

dry_run
boolean

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

rollup_rule
object

The RollupRule to update.

Response

A successful response containing the updated RollupRule.

rollup_rule
object