v1

latestOpenAPI 3.0.12026-07-13149396412.1 KB
RollupRule

put/api/v1/config/rollup-rules/{slug}

Path parameters

slugstring required

Request body

create_if_missingboolean

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_runboolean

If true, the RollupRule isn't created or updated, and no response RollupRule will be returned. The response will return an error if the given RollupRule is invalid.

Example request

{
  "rollup_rule": {
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ],
    "graphite_label_policy": {
      "replace": [
        {
          "name": "__g1__",
          "new_value": "ALL_HOSTS"
        }
      ]
    }
  }
}

Response

A successful response containing the updated RollupRule.

Example response

{
  "rollup_rule": {
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ],
    "graphite_label_policy": {
      "replace": [
        {
          "name": "__g1__",
          "new_value": "ALL_HOSTS"
        }
      ]
    }
  }
}