DBUtils
Class that collects utilities used in Accounting and Monitoring systems
- class DIRAC.AccountingSystem.private.DBUtils.DBUtils(db)
Bases:
object
- __init__(db)
- getKeyValues(typeName, condDict)
Get all valid key values in a type
- stripDataField(dataDict, fieldId)
Strip <fieldId> data and sum the rest as it was data from one key
- Parameters:
- Returns:
list of dictionaries
[ { <timeEpoch1>: 2, <timeEpoch2>: 4... } { <timeEpoch1>: 3, <timeEpoch2>): 5... } ]
- Return type: