示例#1
0
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)
示例#2
0
def listDisabledAlerts(params):
	if len(params) > 0:
		return splunk.listDisabledAlerts(params[0])
	else:
		return splunk.listDisabledAlerts()