Metric events anomaly detection API - DELETE an event
Deletes the specified metric event rule.
Early Adopter
This request is an Early Adopter release and may be changed in non-compatible way.
DELETE |
|
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 |
---|---|---|---|---|
id | string |
The ID of the metric event to be deleted. |
path | required |
Response
Response codes
Code | Description |
---|---|
204 | Deleted. Response doesn't have a body. |
Response body
A successful request doesn't return any content.
Example
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
curl -X DELETE \
https://mySampleEnv.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents/1b06b18a-82df-4e18-a4aa-d4543b227734 \
-H 'Authorization: Api-token abcdefjhij1234567890'
Request URL
https://mySampleEnv.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents/1b06b18a-82df-4e18-a4aa-d4543b227734
Response code
204