Skip to main content
POST
/
api
/
v1
/
config
/
drop-rules
cURL
curl --request POST \
  --url https://tenant.chronosphere.io/api/v1/config/drop-rules \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "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

Body

application/json
drop_rule
object

The DropRule to create.

dry_run
boolean

If true, validates the specified configuration without creating 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 created DropRule.

drop_rule
object