LoggerClient¶
This file contains the methods for accessing the Messages Stored in the LoggingDB; getMessagesByDate() getMessagesBySite() getMessagesByUser() getMessagesByFixedText() getMessagesByGroup() getMessagesBySiteNode() getMessages() getCountMessages() getGroupedMessages() getGroups() getSites() getSystems() getSubSystems() getFixedTextStrings()
- class DIRAC.FrameworkSystem.Client.LoggerClient.LoggerClient¶
Bases:
object
- getCountMessages(conds={}, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for the number of messages that match ‘conds’ and were generated between beginDate and endDate. If no condition is provided it returns the total number of messages present in the database
- getFixedTextStrings(startRecord=0, maxRecords=100)¶
Returns all the fixed strings of logging messages stored in the Logging DB
- getGroupedMessages(fieldList=[], conds={}, groupField=None, orderList=None, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for the number of messages that match ‘conds’ and were generated between beginDate and endDate. If no condition is provided it returns the total number of messages present in the database
- getGroups(startRecord=0, maxRecords=100)¶
Returns all the groups stored in the Logging DB
- getMessages(showFields=[], conds={}, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for all messages satisfying ‘conds’ that were generated between beginDate and endDate
- getMessagesByDate(beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for all the messages between two given dates. If no date is provided then the records returned are those generated during the last 24 hours.
- getMessagesByFixedText(texts, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for all messages whose fixed part match ‘texts’ that were generated between beginDate and endDate
- getMessagesByGroup(group, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for all messages generated by the group ‘Group’ that were generated between beginDate and endDate
- getMessagesBySite(site, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for all messages generated by ‘site’ that were generated between beginDate and endDate
- getMessagesBySiteNode(node, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for all messages generated at ‘node’ that were generated between beginDate and endDate
- getMessagesBySystem(system, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for all messages generated by system(s) ‘system’ that were generated between beginDate and endDate
- getMessagesByUser(userDN, beginDate=None, endDate=None, startRecord=0, maxRecords=100)¶
Query the database for all messages generated by the user: ‘userDN’ that were generated between beginDate and endDate
- getSites(startRecord=0, maxRecords=100)¶
Returns all the sites stored in the Logging DB
- getSubSystems(startRecord=0, maxRecords=100)¶
Returns all the subsystems stored in the Logging DB
- getSystems(startRecord=0, maxRecords=100)¶
Returns all the systems stored in the Logging DB