def export_listReports( self, typeName ): """ :param str typeName monitoring type for example WMSHistory :return S_OK([]) or S_ERROR() the list of available plots """ reporter = MainReporter( self.__db, self.serviceInfoDict[ 'clientSetup' ] ) return reporter.list( typeName )
def export_listReports(self, typeName): """ :param str typeName: monitoring type for example WMSHistory :return: S_OK([]) or S_ERROR() the list of available plots """ reporter = MainReporter(self.__db, self.serviceInfoDict['clientSetup']) return reporter.list(typeName)
def export_generatePlot( self, reportRequest ): """ It creates a plots for a given request :param dict reportRequest contains the plot arguments... """ retVal = self.__checkPlotRequest( reportRequest ) if not retVal[ 'OK' ]: return retVal reporter = MainReporter( self.__db, self.serviceInfoDict[ 'clientSetup' ] ) reportRequest[ 'generatePlot' ] = True return reporter.generate( reportRequest, self.getRemoteCredentials() )
def export_generatePlot(self, reportRequest): """ It creates a plots for a given request :param dict reportRequest contains the plot arguments... """ retVal = self.__checkPlotRequest(reportRequest) if not retVal['OK']: return retVal reporter = MainReporter(self.__db, self.serviceInfoDict['clientSetup']) reportRequest['generatePlot'] = True return reporter.generate(reportRequest, self.getRemoteCredentials())
def export_generatePlot(self, reportRequest): """ It creates a plots for a given request :param dict reportRequest: contains the plot arguments... """ retVal = self.__checkPlotRequest(reportRequest) if not retVal["OK"]: return retVal reporter = MainReporter(self.__db, self.diracSetup) reportRequest["generatePlot"] = True return reporter.generate(reportRequest, self.getRemoteCredentials())
def export_getReport( self, reportRequest ): """ It is used to get the raw data used to create a plot. The reportRequest has the following parameters: :param str typeName the type of the monitoring :param str reportName the name of the plotter used to create the plot for example: NumberOfJobs :param int startTime epoch time, start time of the plot :param int endTime epoch time, end time of the plot :param dict condDict is the conditions used to gnerate the plot: {'Status':['Running'],'grouping': ['Site'] } :param str grouping is the grouping of the data for example: 'Site' :param dict extraArgs epoch time which can be last day, last week, last month :return S_OK or S_ERROR S_OK value is a dictionary which contains all values used to create the plot """ retVal = self.__checkPlotRequest( reportRequest ) if not retVal[ 'OK' ]: return retVal reporter = MainReporter( self.__db, self.serviceInfoDict[ 'clientSetup' ] ) reportRequest[ 'generatePlot' ] = False return reporter.generate( reportRequest, self.getRemoteCredentials() )
def export_getReport(self, reportRequest): """ It is used to get the raw data used to create a plot. The reportRequest has the following parameters: :param str typeName the type of the monitoring :param str reportName the name of the plotter used to create the plot for example: NumberOfJobs :param int startTime epoch time, start time of the plot :param int endTime epoch time, end time of the plot :param dict condDict is the conditions used to gnerate the plot: {'Status':['Running'],'grouping': ['Site'] } :param str grouping is the grouping of the data for example: 'Site' :param dict extraArgs epoch time which can be last day, last week, last month :return S_OK or S_ERROR S_OK value is a dictionary which contains all values used to create the plot """ retVal = self.__checkPlotRequest(reportRequest) if not retVal['OK']: return retVal reporter = MainReporter(self.__db, self.serviceInfoDict['clientSetup']) reportRequest['generatePlot'] = False return reporter.generate(reportRequest, self.getRemoteCredentials())
def export_getReport(self, reportRequest): """ It is used to get the raw data used to create a plot. The reportRequest has the following keys: str typeName: the type of the monitoring str reportName: the name of the plotter used to create the plot for example: NumberOfJobs int startTime: epoch time, start time of the plot int endTime: epoch time, end time of the plot dict condDict: is the conditions used to gnerate the plot: {'Status':['Running'],'grouping': ['Site'] } str grouping: is the grouping of the data for example: 'Site' dict extraArgs: epoch time which can be last day, last week, last month :returns: S_OK or S_ERROR S_OK value is a dictionary which contains all values used to create the plot """ retVal = self.__checkPlotRequest(reportRequest) if not retVal["OK"]: return retVal reporter = MainReporter(self.__db, self.diracSetup) reportRequest["generatePlot"] = False return reporter.generate(reportRequest, self.getRemoteCredentials())