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)
def listAppNames(params): if len(params) > 0: return splunk.listAppNames(params[0]) else: return splunk.listAppNames()