Skip to main content
PUT
/
api
/
v1
/
config
/
derived-labels
/
{slug}
{
  "derived_label": {
    "label_name": "<string>",
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "existing_label_policy": "KEEP",
    "metric_label": {
      "constructed_label": {
        "value_definitions": [
          {
            "filters": [
              {
                "name": "job",
                "value_glob": "myservice*"
              }
            ],
            "value": "<string>"
          }
        ]
      },
      "mapping_label": {
        "name_mappings": [
          {
            "filters": [
              {
                "name": "job",
                "value_glob": "myservice*"
              }
            ],
            "source_label": "<string>",
            "value_mappings": [
              {
                "source_value_globs": [
                  "<string>"
                ],
                "target_value": "<string>"
              }
            ]
          }
        ],
        "value_mappings": [
          {
            "source_value_globs": [
              "<string>"
            ],
            "target_value": "<string>"
          }
        ]
      }
    },
    "slug": "<string>",
    "span_tag": {
      "name_mappings": [
        {
          "source_tag": "<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 DerivedLabel will be created if it does not already exist, identified by slug. If false, an error will be returned if the DerivedLabel does not already exist.

derived_label
object

The DerivedLabel to update.

dry_run
boolean

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

Response

A successful response containing the updated DerivedLabel.

derived_label
object