def list_disabled_alerts(commandParameters, channel): if(len(commandParameters) > 0): results = Splunk.listDisabledAlerts(commandParameters[0]) else: results = Splunk.listDisabledAlerts() results = eval(results) HipChat.postNotification(Util.formatArray(results), channel)
def listDisabledAlerts(params): if len(params) > 0: return splunk.listDisabledAlerts(params[0]) else: return splunk.listDisabledAlerts()