Пример #1
0
def list_apps(commandParameters, channel):
	if(len(commandParameters) > 0):
		results = Splunk.listAppNames(commandParameters[0])
	else:
		results = Splunk.listAppNames()
	results = eval(results)
	HipChat.postNotification(Util.formatArray(results), channel)
Пример #2
0
def listAppNames(params):
	if len(params) > 0:
		return splunk.listAppNames(params[0])
	else:
		return splunk.listAppNames()