cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Historical data in Metric events

hv
Frequent Guest

Hi,

I'm trying to create an alert (metric event) based on the average value of a builtin metric (eg: builtin:containers.cpu.usageMilliCores) in last X days using metric selector.

How can time be passed into metric selector?

See there is an equivalent of &from=now-5m in metric selector like in the API call below.

https://{environmentid}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.(usa...'

1 REPLY 1

hv
Frequent Guest

We ended up using a combination of api/v2/metrics and /api/v2/events/ingest to check the data and alert.

Featured Posts