Open Sandwich1699975 opened 1 day ago
This will be difficult.
Having one variable is easy because you can just create a query like $threshold
and add a config from field transformation. But you can only have one of these transformations. So you can't do 2 queries and 2 transformations because the latter one will overide the first one.
Therefore, you either need to have multiple rows with the warning
and error
values returned in one query so they can be set with the one transformation. Or instead of using multiple rows, you can use a key value pair or a json string. I'm not sure how to tackle this atm. For now I will keep the magic hard coded values
Have variables on the dashboard to alter ping and download thresholds.
For example, the user should be able to select a numerical value which indicates the yellow warning level threshold and another for the red threshold. Instead of just remembering magic numbers everywhere