RMSMonitoringPlotter

This class is used to define the plot using the plot attributes.

class DIRAC.MonitoringSystem.private.Plotters.RMSMonitoringPlotter.RMSMonitoringPlotter(db, setup, extraArgs=None)

Bases: BasePlotter

class RMSMonitoringPlotter

It is used to crate the plots.

param: str _typeName monitoring type param: list _typeKeyFields list of keys what we monitor (list of attributes)

__init__(db, setup, extraArgs=None)

c’tor

Parameters:
  • self – self reference

  • db – the database module

  • setup (str) – DIRAC setup

generate(reportRequest)

It retrives the data from the database and creates the plot

Parameters:

reportRequest (dict) – contains the plot attributes

getKeyValues(typeName, condDict)

Get all valid key values in a type

plotsList()

It returns the list of available plots.

stripDataField(dataDict, fieldId)

Strip <fieldId> data and sum the rest as it was data from one key

Parameters:
  • dataDict (dict) –

    dictionary of the form:

    { 'key' : { <timeEpoch1>: [1, 2, 3],
                <timeEpoch2>: [3, 4, 5].. } }
    

    The dataDict is modified in this function and the return structure is:

    dataDict : { 'key' : { <timeEpoch1>: 1,
                           <timeEpoch2>: 3.. } }
    

  • fieldId (int)

Returns:

list of dictionaries

[ { <timeEpoch1>: 2, <timeEpoch2>: 4... }
  { <timeEpoch1>: 3, <timeEpoch2>): 5... } ]

Return type:

list