This API is deprecated. Use the Settings API instead. Look for the Metric events (builtin:anomaly-detection.metric-events
) schema.
Deletes the specified metric event rule.
DELETE | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents/{id} |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/anomalyDetection/metricEvents/{id} |
To execute this request, you need an access token with WriteConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
The ID of the metric event to be deleted.
Deleted. Response doesn't have a body.
In this example, the request deletes the Low disk space rule we created in the POST request example. The response code of 204 indicates that the deletion has been successful.
The API token is passed in the Authorization header.
curl -X DELETE \https://mySampleEnv.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents/1b06b18a-82df-4e18-a4aa-d4543b227734 \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
https://mySampleEnv.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents/1b06b18a-82df-4e18-a4aa-d4543b227734
204