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.(usage,idle):filter(or(eq(%22dt.entity.host%22,%22HOST-0990886B7D39FE29%22),eq(%22dt.entity.host%22,%22HOST-0956C3557E9109C1%22)))&from=now-5m’