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