You are trying to monitor states with your metric.
Metrics in Dynatrace are timeseries and therefore suited for capturing measurements, and not states. This is something I cannot recommend, for monitoring states “Business Analytics in Dynatrace”
powered by Grail would be the better choice: Business Observability — Dynatrace Docs