MainReporter

It is a helper module which contains the available reports

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

Bases: object

Parameters:
  • __csSection (str) – CS section used to configure some parameters.

  • __plotterList (list) – available plotters

__init__(db)

c’tor

Parameters:
  • self – self reference

  • object – the database module

  • setup (str) – DIRAC setup

generate(reportRequest)

It is used to create a plot.

Parameters:

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

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