| 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 --+ | |
| | |
Globals.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
|
|||
|
|||
| tuple |
|
||
| list |
|
||
|
|||
|
|||
| list |
|
||
|
|||
| 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 like '%s%%'\" % me.getDmdKey()"
|
|||
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 |
|||
|
|||
|
|||
|
event_key attribute.
>>> 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
|
|
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
multiselectmenu columns (prodState, severity, eventState,
priority) arrive as a list of values to match, and become 'and (field=v1
or field=v2...)' where field is the column and vn is the value.
|
Consolidate event ids and ranges of records into a list of event ids. Accepts criteria representing a console state and criteria representing selected records, in the form of a list of event ids and a list of ranges of row numbers for which the client had not loaded event ids. Can then perform the query described by the console state and use that to select event ids from the given ranges. These are then added to the evids passed in, if any. The resulting list is uniquified and returned.
|
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 |
To Do: Remove unused parameters from the method definition |
ManagedEntity.
|
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.
|
|
|
|
|
|
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
|
|
To Do: implement |
To Do: implement |
|
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. |
|
|
|
|
|||
eventStateConversions
|
severityConversions
|
priorityConversions
|
DeviceResultFields
|
ComponentWhere
|
ComponentResultFields
|
EventClassInstWhere
|
DeviceGroupWhere
|
defaultResultFields
|
defaultEventId
|
refreshConversionsForm
|
_properties
|
_relations
|
factory_type_information
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Mon Oct 19 14:41:41 2009 | http://epydoc.sourceforge.net |