Anomaly detection API - Metric events

The Anomaly detection—metric events API enables you to manage the configuration of custom metric events. You can:

You can also manage the same configuration in the Dynatrace UI at:

  • Settings > Anomaly detection > Plugin events.
  • Settings > Anomaly detection > Custom alerts.

GET all metric event rules

Lists all existing metric event rules.

The request produces an application/json payload.

This request is in beta and may be changed in non compatible way.

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

POST a new metric event rule

Creates a new metric event rule.

The request consumes an application/json payload.

This request is in beta and may be changed in non compatible way.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/anomalyDetection/metricEvents
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents

POST validate a new rule

Validates the payload for the POST a new metric event rule request.

The request consumes and produces an application/json payload.

This request is in beta and may be changed in non compatible way.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/anomalyDetection/metricEvents/validator
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents/validator

GET a metric event rule

Gets parameters of the specified metric event rule.

The request produces an application/json payload.

This request is in beta and may be changed in non compatible way.

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

PUT a metric event rule

Updates the specified metric event rule.

The request consumes an application/json payload.

This request is in beta and may be changed in non compatible way.

PUT
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/anomalyDetection/metricEvents/{id}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents/{id}

POST validate an update

Validates the payload for the PUT a metric event rule request.

The request consumes an application/json payload.

This request is in beta and may be changed in non compatible way.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/anomalyDetection/metricEvents/{id}/validator
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/anomalyDetection/metricEvents/{id}/validator

DELETE a metric event rule

Deletes the specified metric event rule.

This request is in beta and may be changed in non compatible way.

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