예제 #1
0
def list_saved_searches(commandParameters, channel):
	"""  """
	if(len(commandParameters) > 0):
		results = Splunk.listSavedSearches(commandParameters[0])
	else:
		results = Splunk.listSavedSearches()
	HipChat.postNotification(str(results), channel)
예제 #2
0
def listSavedSearches(params):
	if len(params) > 0:
		return splunk.listSavedSearches(params[0])
	else:
		return splunk.listSavedSearches()