Calculated metrics API - DELETE a calculated metric

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

Early Adopter

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

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}

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