Hello, I'm trying to select the Min value from an asset. I've done some tests to try and resolve the issue but I'm stuck at the point:
The structure of data is the following:
Host -> Applications -> System Type -> SLA PAT (Days)
I'm trying to select the lowest value in SLA PAT (Days). In this case the Host has 2 Applications, their SLA values are 8 and 1, as you can see the logs, but when I try to log the min of them I get no result. Does anyone know how to get the min value here?
Please note there are brackets around the values when you logged the "SLA PAT (Days)" information. That indicates this is an array, not a list. And the min function works with a list.
I believe you can use split() to convert the array into a list, and then use the min function on the resulting values.
If that does not work, you may need an intermediate step of storing the array to a created variable first, and then using split on that variable.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.