is there any way to return a boolean value when a time series that has a threshold of 2s is crossed, The metric is usually 0, but if a threshold of 2 is crossed, the return should be a 1?
You need to use bool modifier together with comparison operator. For example, the following query returns 0 when m is less than 2, while returning 1 when m equals or greater than 2:
m >=bool 2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With