def disable_alert(commandParameters, channel): if(len(commandParameters) > 1): Splunk.disableAlert(commandParameters[0], int(commandParameters[1])) HipChat.postNotification("{} disabled for {} minutes".format(commandParameters[0], commandParameters[1]), channel) else: Splunk.disableAlert(commandParameters[0]) HipChat.postNotification("{} disabled".format(commandParameters[0]), channel)
def disableAlert(params): if len(params) == 2: return splunk.disableAlert(params[0],params[1]) else: return splunk.disableAlert(params[0])