Skip to main content
PUT
/
api
/
v1
/
config
/
consumption-budgets
/
{slug}
{
  "consumption_budget": {
    "name": "<string>",
    "partition_slug_path": "<string>",
    "resource": "LOG_PERSISTED_BYTES",
    "alert_action_config": {
      "annotations": {},
      "instant_rate_sustain_secs": 123,
      "labels": {}
    },
    "created_at": "2023-11-07T05:31:56Z",
    "default_priority": 123,
    "notification_policy_slug": "<string>",
    "priorities": [
      {
        "filters": [
          {
            "dataset_slug": "<string>",
            "log_filter": {
              "query": "<string>"
            }
          }
        ],
        "priority": 123
      }
    ],
    "slug": "<string>",
    "thresholds": [
      {
        "action": "ALERT_WARN",
        "type": "DAILY_VOLUME",
        "instant_rate": {
          "fixed_value_per_sec": "<string>"
        },
        "volume": {
          "fixed_value": "<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
consumption_budget
object

The ConsumptionBudget to update.

create_if_missing
boolean

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

dry_run
boolean

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

Response

A successful response containing the updated ConsumptionBudget.

consumption_budget
object