Calculated metrics API - DELETE a calculated metric

Deletes the specified calculated service metric. Deletion cannot be undone!

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

Authentication

To execute this request, you need the Read configuration (ReadConfig) permission assigned to your API token. To learn how to obtain and use it, see Authentication.

Parameters

Parameter Type Description In Required
metricKey string

The key of the required calculated service metric.

path required

Response format

A successful request doesn't return any content.

Example

In this example, the request deletes the Requests by code calculated service metric created in the POST request example.

The API token is passed in the Authorization header.

The response code of 204 indicates that the update was successful.

Curl

curl -X DELETE \
  https://mySampleEnv.live.dynatrace.com/api/config/v1/calculatedMetrics/service/calc:service.requestsbycode \  
  -H 'Authorization: Api-token abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/config/v1/calculatedMetrics/service/calc:service.requestsbycode

Response code

204