Foglight service category alarm filter on severity


I am trying to filter a service category in Foglight and insert an alarm filter to display and alert on only 'warning' severity alarms.

I tried adding groovy script filter e.g.





None of the above are working. The built-in filter to "Exclude All", "Exclude Critical and Warnings" etc are working but there is no built-in to include only "Critical" or "Warning" etc.

Can anyone please help with this?

Also added a screen shot.

Thanks a lot in advance