Log monitoring metrics API - DELETE a metric

Deletes the specified custom log metric definition.

This request is currently in preview and is subject to change. Changes may not be compatible with your current configuration.

DELETE
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/customMetric/log/{metricKey}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/customMetric/log/{metricKey}

Parameters

Parameter Type Description In Required
metricKey string

The key of the custom log metric to be deleted.

path required

Response format

A successful request doesn't return any content.

Example

In this example, the request deletes the Sample metric custom log metric. The response code of 204 indicates that the deletion was successful.

Curl

curl -X DELETE \
  https://mySampleEnv.live.dynatrace.com/api/config/v1/customMetric/log/calc:log.samplemetric \
  -H 'Authorization: Api-token abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/config/v1/customMetric/log/calc:log.samplemetric

Response code

204