v1

latestOpenAPI 3.0.12026-07-13149396412.1 KB
RollupRule

post/api/v1/config/rollup-rules

Request body

dry_runboolean

If true, the RollupRule isn't created, 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 created RollupRule.

Example response

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