NetworkPlotter

A reporter class to prepare reports and network accounting plots.

Supports:

  • packet loss rate (standard and magnified),

  • one-way delay, jitter, jitter over one-way delay

class DIRAC.AccountingSystem.private.Plotters.NetworkPlotter.NetworkPlotter(db, extraArgs=None)

Bases: BaseReporter

__init__(db, extraArgs=None)
generate(reportRequest)
getKeyValues(typeName, condDict)

Get all valid key values in a type

plotsList()
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