analytics
analytics copied to clipboard
Sorting thresholds
Hello
thresholds seems to be applied in creation order example on monitoring (/ocs/v2.php/apps/serverinfo/api/v1/info?format=json) , ocs/data/activeUsers, create 3 thresholds
activeUsers > 100.00 => orange activeUsers > 200.00 => red activeUsers > 0.00 => green
Data table:
Key | Value | |
---|---|---|
activeUsers | last5minutes | 40,00 |
activeUsers | last1hour | 54,00 |
activeUsers | last24hours | 148,00 |
=> all 3 values are in green
last24hours value should be orange so I need to delete and recreate all thresholds in correct order
Instead, It would be great if we could sort the thresholds
Hi, yes, the requests makes sense.
But its a little tricky. In your case you need to have it sorted 0,100,200 because you check for >. Other users checking for < will need it the other way round, so there is no easy was for sorting. When combining with "=" its more complicated
The user will need to provide the checking sequence and the way of creating them in order is technically the easiest one.
As a quick workaround I will add a better explanation text to the threshold section. Another technical idea would be to provide a way to change the sequence of existing thresholds. But as its not really used many times and only once during setup, its not worth the effort I think.
I will touch this section at a later stage when also enabling to change existing thresholds. I need to finish other reporting usability challenges first