Skip to main content
PUT
/
api
/
v1
/
config
/
drop-rules
/
{slug}
{
  "drop_rule": {
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "drop_nan_value": true,
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ],
    "mode": "ENABLED",
    "slug": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "value_based_drop": {
      "enabled": true,
      "target_drop_value": 123
    }
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Body

application/json
create_if_missing
boolean

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

drop_rule
object

The DropRule to update.

dry_run
boolean

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

Response

A successful response containing the updated DropRule.

drop_rule
object