Exemplo n.º 1
0
def list_reports(commandParameters, channel):
	if(len(commandParameters) > 0):
		results = Splunk.listReportNames(commandParameters[0])
	else:
		results = Splunk.listReportNames()
	results = eval(results)
	HipChat.postNotification(Util.formatArray(results), channel)
Exemplo n.º 2
0
def listReportNames(params):
	if len(params) > 0:
		return splunk.listReportNames(params[0])
	else:
		return splunk.listReportNames()