MainReporter

It is a helper module which contains the available reports

class DIRAC.MonitoringSystem.private.MainReporter.MainReporter(db, setup)

Bases: object

Parameters:
  • __db (object) – database object
  • __setup (str) – DIRAC setup
  • __csSection (str) – CS section used to configure some parameters.
  • __plotterList (list) – available plotters
__init__(db, setup)

c’tor

Parameters:
  • self – self reference
  • object – the database module
  • setup (str) – DIRAC setup
generate(reportRequest, credDict)

It is used to create a plot.

Parameters:reportRequest (dict) – plot attributes used to create the plot

Note

I know credDict is not used, but if we plan to add some policy, we need to use it!

Returns:dict S_OK/S_ERROR the values used to create the plot
list(typeName)

It returns the available plots

Parameters:typeName (str) – monitoring type
Returns:dict S_OK/S_ERROR list of available reports (plots)
class DIRAC.MonitoringSystem.private.MainReporter.PlottersList

Bases: object

Used to determine all available plotters used to create the plots

Parameters:__plotters (dict) – stores the available plotters
__init__()

c’tor

Parameters:self – self reference
getPlotterClass(typeName)

It returns the plotter class for a given monitoring type