MonitoringCatalog

interacts with sqlite3 db

class DIRAC.FrameworkSystem.private.monitoring.MonitoringCatalog.MonitoringCatalog(dataPath)

Bases: object

__init__(dataPath)

Initialize monitoring catalog

activitiesQuery(selDict, sortList, start, limit)
createSchema()

Create all the sql schema if it does not exist

deleteActivity(sourceId, activityId)

Delete a view

deleteView(viewId)

Delete a view

findActivity(sourceId, acName)

Find activity

getActivities(dbCond)
getFilename(sourceId, acName)

Get rrd filename for an activity

getLastUpdate(sourceId, acName)
getMatchingActivities(condDict)

Get all activities matching the defined conditions

getSources(dbCond, fields=[])
getViewById(viewId)

Get a view for a given id

getViews(onlyStatic)

Get views

queryField(field, definedFields)

Query the values of a field given a set of defined ones

registerActivity(sourceId, acName, acDict)

Register an activity

registerSource(sourceDict)

Register an activity source

registerView(viewName, viewData, varFields)

Register a new view

setLastUpdate(sourceId, acName, lastUpdateTime)