Log monitoring metrics API - DELETE a metric

Deletes the specified custom log metric definition.

Early Adopter

This request is an Early Adopter release and may be changed in non-compatible way.

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

Authentication

To execute this request, you need the Write configuration (WriteConfig) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.

Parameters

Parameter Type Description In Required
metricKey string

The key of the custom log metric to be deleted.

path required

Response

Response codes

Code Description
204

Deleted. Response doesn't have a body.

400

Failed. See the response body for details

Response body

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/calculatedMetrics/log/calc:log.samplemetric \
  -H 'Authorization: Api-token abcdefjhij1234567890'

Request URL

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

Response code

204