def run_search(commandParameters, channel): results = Splunk.runSearch(commandParameters[0]) results = eval(results) table = Util.formatResultsAsHTMLTable(results) HipChat.postNotification(table, channel, format = 'html')
def runSearch(params): return splunk.runSearch(params[0])