-
Change Request
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
None
It would really good to have shortcut clause 'IN' similar to SQL.
To compare single value to array of values in a single expression.
so expression like this:
{HOST:METRIC.last()}=0 or {HOST:METRIC.last()}=2 or {HOST:METRIC.last()}=111 or {HOST:METRIC.last()}=4 or {HOST:METRIC.last()}=7 or {HOST:METRIC.last()}=5 or {HOST:METRIC.last()}=111
could become:
{HOST:METRIC.last()} IN (0,2,111,4,7,5,111)
or like this:
{Template SNMP Interfaces SNMPv2:net.if.speed[ifHighSpeed.{#SNMPINDEX}].change()}<0 and ( {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=6 or {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=7 or {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=11 or {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=62 or {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=69 or {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()}=117 )
to this:
{Template SNMP Interfaces SNMPv2:net.if.speed[ifHighSpeed.{#SNMPINDEX}].change()}<0 and ( {Template SNMP Interfaces SNMPv2:net.if.type[ifType.{#SNMPINDEX}].last()} IN (6,7,11,62,69,117) )