ServiceInterface

This module exposes singleton gServiceInterface as istance of ServiceInterface (also in this module)

Interacts with RRD (rrdtool), with ComponentMonitoringDB (mysql) and with MonitoringCatalog (sqlite3)

Main clients are the monitoring handler (what’s called by gMonitor object), and the web portal.

class DIRAC.FrameworkSystem.private.monitoring.ServiceInterface.ServiceInterface

Bases: object

__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

commitMarks(sourceId, activitiesDict, componentExtraInfo)

Adds marks to activities

deleteActivity(sourceId, activityId)

Delete a view

deleteView(viewId)

Delete a view

fieldValue(field, definedFields)

Return values for a field given a set of defined values for other fields

generatePlots(fromSecs, toSecs, viewDescription, size=1)

Generate plots for a view

getActivities(dbCond={})

Get a list of activities

getActivitiesContents(selDict, sortList, start, limit)

DB query

getComponentsStatus(condDict=False)
getGraphData(filename)

Read the contents of a plot file

getNumberOfActivities(dbCond={})

Get a list of activities

getSources(dbCond={}, fields=[])

Get a list of activities

getViews(onlyStatic=True)

Get all stored views

initialize(dataPath)

Initialize monitoring server

initializeDB()

Initializes and creates monitoring catalog db if it doesn’t exist

plotView(viewRequest)

Generate all plots for a view

registerActivities(sourceDict, activitiesDict, componentExtraInfo)

Register new activities in the database

saveView(viewName, viewDescription)

Save a view in the catalog