| Trees | Indices | Help |
|
|---|
|
|
object --+
|
ZenModel.ZenModelBase.ZenModelBase --+
|
ExtensionClass.Base --+ |
| |
OFS.CopySupport.CopyContainer --+ |
| |
ZenRelations.RelCopySupport.RelCopyContainer --+ |
| |
ExtensionClass.Base --+ | |
| | |
OFS.CopySupport.CopyContainer --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
App.Management.Navigation --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
App.Management.Tabs --+ | |
| | |
Acquisition.Implicit --+ | |
| | |
Persistence.Persistent --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
webdav.EtagSupport.EtagSupport --+ | | | |
| | | | |
webdav.Lockable.LockableItem --+ | | |
| | | |
webdav.Resource.Resource --+ | | |
| | | |
webdav.Collection.Collection --+ | |
| | |
OFS.Traversable.Traversable --+ | |
| | |
OFS.ObjectManager.ObjectManager --+ |
| |
ExtensionClass.Base --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
OFS.CopySupport.CopySource --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
App.Management.Tabs --+ | |
| | |
OFS.Traversable.Traversable --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
AccessControl.Owned.Owned --+ | |
| | |
ZenRelations.ZItem.ZItem --+ | |
| | |
Acquisition.Implicit --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
AccessControl.PermissionMapping.RoleManager --+ | | |
| | | |
AccessControl.Role.RoleManager --+ | |
| | |
ZenRelations.PrimaryPathObjectManager.PrimaryPathManager --+ |
| |
ExtensionClass.Base --+ | |
| | |
App.Undo.UndoSupport --+ |
| |
ZenRelations.PrimaryPathObjectManager.PrimaryPathObjectManager --+ |
| |
object --+ | |
| | |
ExtensionClass.Base --+ | | |
| | | |
OFS.ZDOM.Node --+ | | | |
| | | | |
OFS.ZDOM.Element --+ | | | |
| | | | |
OFS.ZDOM.ElementWithAttributes --+ | | |
| | | |
OFS.PropertyManager.PropertyManager --+ | |
| | |
ZenRelations.ZenPropertyManager.ZenPropertyManager --+ |
| |
ZenRelations.RelationshipManager.RelationshipManager --+
|
ExtensionClass.Base --+ |
| |
OFS.History.Historical --+
|
object --+ |
| |
ZenModel.ZenPacker.ZenPacker --+
|
ZenModel.ZenModelRM.ZenModelRM --+
|
Globals.Persistent --+ |
| |
ZenUtils.ObjectCache.ObjectCache --+
|
object --+ |
| |
DbAccessBase.DbAccessBase --+
|
EventManagerBase
Data connector to backend of the event management system.
|
|||
|
|||
| tuple |
|
||
| list |
|
||
|
|||
|
|||
|
|||
|
|||
| list |
|
||
| set |
|
||
|
|||
| list |
|
||
| list |
|
||
| list |
|
||
|
|||
| EventDetail object |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| string |
|
||
| object |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
eventStateConversions = 'New', 0, ('Acknowledged', 1), ('Suppr
|
|||
eventActions = 'status', 'history', 'drop'
|
|||
severityConversions = 'Critical', 5, ('Error', 4), ('Warning',
|
|||
severities = dict([(b, a) for a, b in severityConversions])
|
|||
priorityConversions = 'None',-1, ('Emergency', 0), ('Alert', 1
|
|||
priorities = dict([(b, a) for a, b in priorityConversions])
|
|||
statusTable = "status"
|
|||
detailTable = "detail"
|
|||
logTable = "log"
|
|||
lastTimeField = "lastTime"
|
|||
firstTimeField = "firstTime"
|
|||
deviceField = "device"
|
|||
componentField = "component"
|
|||
eventClassField = "eventClass"
|
|||
severityField = "severity"
|
|||
stateField = "eventState"
|
|||
countField = "count"
|
|||
prodStateField = "prodState"
|
|||
DeviceGroupField = "DeviceGroups"
|
|||
SystemField = "Systems"
|
|||
DeviceWhere = "\"device = '%s'\" % me.getDmdKey()"
|
|||
DeviceResultFields = "eventState", "severity", "component", "e
|
|||
ComponentWhere = "\"(device = '%s' and component = '%s')\"" "
|
|||
ComponentResultFields = "eventState", "severity", "eventClass"
|
|||
IpAddressWhere = "\"ipAddress='%s'\" % (me.getId())"
|
|||
EventClassWhere = "\"eventClass like '%s%%'\" % me.getDmdKey()"
|
|||
EventClassInstWhere = """\"eventClass = '%s' and eventClassKey
|
|||
DeviceClassWhere = "\"(DeviceClass = '%s' or DeviceClass like
|
|||
LocationWhere = "\"Location like '%s%%'\" % me.getDmdKey()"
|
|||
SystemWhere = "\"Systems like '%%|%s%%'\" % me.getDmdKey()"
|
|||
DeviceGroupWhere = "\"DeviceGroups like '%%|%s%%'\" % me.getDm
|
|||
defaultResultFields = "eventState", "severity", "device", "com
|
|||
defaultFields = 'eventState', 'severity', 'evid'
|
|||
defaultEventId = 'device', 'component', 'eventClass', 'eventKe
|
|||
requiredEventFields = 'device', 'summary', 'severity'
|
|||
refreshConversionsForm = DTMLFile('dtml/refreshNcoProduct', gl
|
|||
defaultAvailabilityDays = 7
|
|||
defaultPriority = 3
|
|||
eventAgingHours = 4
|
|||
eventAgingSeverity = 4
|
|||
historyMaxAgeDays = 0
|
|||
_properties = {'id': 'backend', 'type': 'string', 'mode': 'r',
|
|||
_relations = "commands", ToManyCont(ToOne, "Products.ZenEvents
|
|||
factory_type_information = {'immediate_view': 'editEventManage
|
|||
security = ClassSecurityInfo()
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
Sets up event database access and initializes the cache.
|
A wrapper for lookupManagedEntityResultFields accepting an object with
an >>> class dummy(object): ... event_key = 'Device' ... >>> d = dummy() >>> f = dmd.ZenEventManager.getEventResultFields(d) >>> f==dmd.ZenEventManager.DeviceResultFields True >>> d.event_key = 'Robot' >>> f = dmd.ZenEventManager.getEventResultFields(d) >>> f==dmd.ZenEventManager.defaultResultFields True
|
Queries the database for events on a managed entity.
|
Create SQL representing conditions that match passed filters and append it to a given where clause. Expressions are built using various criteria, including the type of filter widget representing the column and factors specific to the column itself. All
|
Used by both the id matching sub queries this gets brain results and returns a list of ids
|
This returns a list of component ids where the titleOrId matches the searchTerm
|
This returns a list of device ids where the titleOrId matches the searchTerm
|
Returns a batch of events based on criteria from checked rows on the event console. The event console can show thousands of events, and we want to support a "Select All" feature; enter this method. It builds a query based on the select status from the console ("All", "None", "Acknowledged", "Unacknowledged") and any checkboxes that have been modified manually.
To Do: Remove unused parameters from the method definition |
Returns a batch of events based on criteria from checked rows on the event console. The event console can show thousands of events, and we want to support a "Select All" feature; enter this method. It builds a query based on the select status from the console ("All", "New", "Acknowledged", "Suppressed") and any checkboxes that have been modified manually.
|
Fetch a list of events from the database matching certain criteria.
To Do: Remove unused parameters from the method definition |
Return the CSS class, number of acknowledged events, and number of
unacknowledged events, per severity, for a
|
Return a list of tuples with number of events and the color of the severity that the number represents. This method should not be called directly, but overridden by subclasses.
|
Return an EventDetail object for a particular event.
|
Return status based on a where clause defined for the me event_type. No fancy caching done this might be a little slow if there are a lot of events. Where clause is evaled |
Return a list of userids that correspond to the events in where. select distinct ownerid from status where device="win2k.confmon.loc" and eventState > 2 |
Lookup and build where clause for managed entity.
|
Lookup database field for managed entity default using event_key.
|
Gets the column names that should be requested in an event query for this entity type. Returns a set of result fields predefined for this entity type. If none have been defined, returns the default result fields. >>> f = dmd.ZenEventManager.lookupManagedEntityResultFields('Device') >>> f==dmd.ZenEventManager.DeviceResultFields True >>> f = dmd.ZenEventManager.lookupManagedEntityResultFields('Robot') >>> f==dmd.ZenEventManager.defaultResultFields True
|
Make a start and end date range that is at least one day long. returns a start and end date as a proper database element. |
validates the syntax and columns for an orderby used on the status and history tables. Also removes adjacent sorts of the same columns as an optimization
|
Send an event to the backend.
To Do: implement |
Prepare string values for db by escaping special characters.
To Do: implement |
Load schema from database. If field is a date set value to true. |
Delete historical events. If devices is given then only delete events for that device. If agedDays is given then only delete events that are older than that many days. devname and agedDays are mutually exclusive. No real reason for this other than there is no current need to use both in same call and I don't want to test the combination. This is an option during device deletion. It is also used by zenactions to keep history table clean. NB: Device.deleteDevice() is not currently calling this when devices are deleted. See ticket #2996. |
Need to handle editing of history event fields differently |
Add a new EventCommand
|
Delete an EventCommand
|
|
|||
eventStateConversions
|
severityConversions
|
priorityConversions
|
DeviceResultFields
|
ComponentWhere
|
ComponentResultFields
|
EventClassInstWhere
|
DeviceClassWhere
|
DeviceGroupWhere
|
defaultResultFields
|
defaultEventId
|
refreshConversionsForm
|
_properties
|
_relations
|
factory_type_information
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 14 12:01:24 2010 | http://epydoc.sourceforge.net |