예제 #1
0
def list_dashboards(commandParameters, channel):
	if(len(commandParameters) > 1):
		results = Splunk.listDashboardNames(commandParameters[0], commandParameters[1])
	else:
		results = Splunk.listDashboardNames(commandParameters[0])
	results = eval(results)
	HipChat.postNotification(Util.formatArray(results), channel)
예제 #2
0
def listDashboardNames(params):
	if len(params) == 2:
		return splunk.listDashboardNames(params[0],params[1])
	else:
		return splunk.listDashboardNames(params[0])