# Monday morning tip, Davis monitor status value

**URL:** <https://community.dynatrace.com/t/monday-morning-tip-davis-monitor-status-value/55264>\
**Category:** Alerting\
**Tags:** problem-detection, davis, anomaly-detection, problems, problems-classic\
**Created:** [March 16, 2026, 8:02am UTC](https://community.dynatrace.com/t/monday-morning-tip-davis-monitor-status-value/55264 "2026-03-16T08:02:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 16, 2026, 8:02am UTC](https://community.dynatrace.com/t/monday-morning-tip-davis-monitor-status-value/55264/1 "2026-03-16T08:02:34Z")

</div>

Hello,

As long as you can only use higher or lower in Davis anomaly detection, this could be a workaround.

testing on status 4:

timeseries myseries = avg(xxx.device.status),by: {`dt.entity.xxx:xxx`} ,interval:1m | filter (arrayLast(myseries) == 4)

The anomaly detection should be like \<100 (or more)

Who can confirm?

KR Henk

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [March 16, 2026, 10:22am UTC](https://community.dynatrace.com/t/monday-morning-tip-davis-monitor-status-value/55264/2 "2026-03-16T10:22:21Z")

</div>

Hi Henk,  
IMO, this can work only partially, but I would not treat it as a clean or fully reliable workaround.

```markup
timeseries myseries = avg(xxx.device.status), by: {`dt.entity.xxx:xxx`}, interval:1m
| filter (arrayLast(myseries) == 4)

```

filters in only the timeseries whose latest sample is 4, but the anomaly detector still evaluates the returned 1-minute samples in the series, not just that single last value. So with a threshold like \< 100, you would effectively mark all returned points as violating, which means the alert logic is no longer really “status equals 4”, but rather “this series passed the filter and its samples are below 100”. That can be misleading.

A better approach is to transform the status into a dedicated numeric signal, for example:

- 100 when status = 4
- 0 otherwise

and then alert on above 50 or similar. That way the anomaly detector evaluates an explicit signal instead of relying on record filtering

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [March 16, 2026, 11:02am UTC](https://community.dynatrace.com/t/monday-morning-tip-davis-monitor-status-value/55264/3 "2026-03-16T11:02:22Z")

</div>

Thanks for your replay, simulation at my end&nbsp; looks perfect. myseries is already a 1m avg?

 ![image.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/2/82e1cd0b6d6fb837b92c597f19c96417f02cbb7e.png)

Am I missing something?

KR Henk

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [March 16, 2026, 11:08am UTC](https://community.dynatrace.com/t/monday-morning-tip-davis-monitor-status-value/55264/4 "2026-03-16T11:08:10Z")

</div>

yes, in your query myseries is already a 1-minute averaged time series, because avg(…) with interval:1m creates one average value per 1-minute bucket.  
So filter(arrayLast(myseries) == -1) checks whether the latest 1-minute bucket is -1, and if yes, the series remains in the result.  
So from that perspective, your simulation result makes sense.  
The only caveat is that alert behavior still depends on the anomaly detector window/dealerting/missing-data logic, because Davis evaluates the returned 1-minute series format
