Fold getAlertState into conditional
Fold getAlertState into conditional

adityacs/kapacitor,influxdb/kapacitor,adityacs/kapacitor,sputnik13/kapacitor,influxdb/kapacitor,influxdb/kapacitor,sputnik13/kapacitor,adityacs/kapacitor,sputnik13/kapacitor