Skip to main content
PUT
/
api
/
v1
/
config
/
mapping-rules
/
{slug}
{
  "mapping_rule": {
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ],
    "name": "<string>",
    "aggregation_policy": {
      "aggregation": "LAST",
      "drop_timestamp": true,
      "interval": "<string>",
      "storage_policy": {
        "resolution": "<string>",
        "retention": "<string>"
      }
    },
    "bucket_slug": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "drop": true,
    "mode": "ENABLED",
    "slug": "<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
create_if_missing
boolean

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

dry_run
boolean

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

mapping_rule
object

The MappingRule to update.

Response

A successful response containing the updated MappingRule.

mapping_rule
object