Settings API - Metric events schema table
Metric events (builtin:anomaly-detection.metric-events)
Metric event configurations are used to automatically detect anomalies in metric timeseries by using thresholds or baselines.
builtin:anomaly-detection.metric-events
group:anomaly-detection
environment
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:anomaly-detection.metric-events |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:anomaly-detection.metric-events | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:anomaly-detection.metric-events |
Authentication
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
Parameters
enabled
summary
The textual summary of the metric event entry
eventEntityDimensionKey
Controls the preferred entity type used for triggered events.
legacyId
The QueryDefinition
object
type
METRIC_KEY
METRIC_SELECTOR
metricKey
aggregation
MIN
MAX
SUM
COUNT
AVG
VALUE
MEDIAN
PERCENTILE90
managementZone
queryOffset
Minute offset of sliding evaluation window for metrics with latency
entityFilter
Use rule-based filters to define the scope this event monitors.
The ModelProperties
object
type
Metric-key-based query definitions only support static thresholds.
STATIC_THRESHOLD
AUTO_ADAPTIVE_THRESHOLD
SEASONAL_BASELINE
threshold
Raise an event if this value is violated
alertOnNoData
The ability to set an alert on missing data in a metric. When enabled, missing data samples will contribute as violating samples defined in advanced model properties. We recommend to not alert on missing data for sparse timeseries as this leads to alert spam.
signalFluctuation
Controls how many times the signal fluctuation is added to the baseline to produce the actual threshold for alerting
tolerance
Controls the width of the confidence band and larger values lead to a less sensitive model
alertCondition
ABOVE
BELOW
OUTSIDE
violatingSamples
The number of one-minute samples within the evaluation window that must violate to trigger an event.
samples
The number of one-minute samples that form the sliding evaluation window.
dealertingSamples
The number of one-minute samples within the evaluation window that must go back to normal to close the event.
The EventTemplate
object
title
The title of the event to trigger. Type '{' for placeholder hints.
description
The description of the event to trigger. Type '{' for placeholder hints.
eventType
The event type to trigger.
INFO
ERROR
AVAILABILITY
SLOWDOWN
RESOURCE
CUSTOM_ALERT
CUSTOM_ANNOTATION
CUSTOM_CONFIGURATION
CUSTOM_DEPLOYMENT
MARKED_FOR_TERMINATION
davisMerge
DavisĀ® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
metadata
Set of additional key-value properties to be attached to the triggered event.
The EntityFilter
object
dimensionKey
Dimension key of entity type to filter
The DimensionFilter
object
dimensionKey
operator
EQUALS
DOES_NOT_EQUAL
STARTS_WITH
DOES_NOT_START_WITH
CONTAINS_CASE_SENSITIVE
DOES_NOT_CONTAIN_CASE_SENSITIVE
dimensionValue
The MetadataItem
object
metadataKey
Type 'dt.' for key hints.
metadataValue
Type '{' for placeholder hints.
The EntityFilterCondition
object
type
NAME
ENTITY_ID
MANAGEMENT_ZONE
TAG
HOST_NAME
HOST_GROUP_NAME
PROCESS_GROUP_NAME
PROCESS_GROUP_ID
CUSTOM_DEVICE_GROUP_NAME
operator
EQUALS
DOES_NOT_EQUAL
STARTS_WITH
DOES_NOT_START_WITH
CONTAINS_CASE_SENSITIVE
DOES_NOT_CONTAIN_CASE_SENSITIVE
CONTAINS_CASE_INSENSITIVE
DOES_NOT_CONTAIN_CASE_INSENSITIVE
value