Exemple #1
0
def list_alerts(commandParameters, channel):
	if(len(commandParameters) > 0):
		results = Splunk.listAlertNames(commandParameters[0])
	else:
		results = Splunk.listAlertNames()
	results = eval(results)
	HipChat.postNotification(Util.formatArray(results), channel)
def listAlertNames(params):
	if len(params) > 0:
		return splunk.listAlertNames(params[0])
	else:
		return splunk.listAlertNames()