def buildInteractiveReport(self, data, dygraphLoc):
		# Note: CPU and MEM both have different logic currently, so they are just handed empty arrays []
		#       For DISKBUSY and NET please do adjust the collumns you'd like to plot
		
		if os.path.exists(self.args.confFname):
			reportConfig = self.loadReportConfig(configFname=self.args.confFname)
		else:
			log.error("something went wrong.. looks like %s is missing. run --defaultConfig to generate a template" % (self.args.confFname))
			sys.exit()

		# Build interactive HTML report using dygraphs
		pyNmonReport.createInteractiveReport(reportConfig, self.args.outdir, data=data, dygraphLoc=dygraphLoc)
Exemple #2
0
    def buildInteractiveReport(self, data, dygraphLoc):
        # Note: CPU and MEM both have different logic currently, so they are just handed empty arrays []
        #       For DISKBUSY and NET please do adjust the collumns you'd like to plot

        if os.path.exists(self.args.confFname):
            reportConfig = self.loadReportConfig(
                configFname=self.args.confFname)
        else:
            log.error("something went wrong.. looks like %s is missing. run --defaultConfig to generate a template" %
                      (self.args.confFname))
            sys.exit()

        # Build interactive HTML report using dygraphs
        pyNmonReport.createInteractiveReport(
            reportConfig, self.args.outdir, data=data, dygraphLoc=dygraphLoc)