Ejemplo n.º 1
0
def get_dashboard(commandParameters, channel):
	HipChat.postNotification("Getting dashboard {} from {}".format(commandParameters[1], commandParameters[0]), channel)
	Splunk.getDashboardPdf(commandParameters[0], commandParameters[1])
	pdfName = commandParameters[0] + "_" + commandParameters[1]
	pdfPath = 'pdf_files/{}.pdf'.format(pdfName)
	HipChat.postFile(pdfPath, channel)
Ejemplo n.º 2
0
def getDashboardPdf(params):
	if len(params) == 3:
		return splunk.getDashboardPdf(params[0],params[1], params[2])
	else:
		return splunk.getDashboardPdf(params[0],params[1])