Package Products :: Package ZenEvents :: Package browser :: Module EventPillsAndSummaries |
[hide private]
[frames] | no frames]

# Module EventPillsAndSummaries

source code

Classes | [hide private]
SinglePill
ObjectsEventSummary Return an HTML link and event pill for each object passed as a JSON object ready for inclusion in a YUI data table.
SubOrganizersEventSummary
SubDevicesEventSummary
SingleObjectEventSummary

Functions | [hide private]
string |
getObjectsEventSummary(zem, objects, prodState=None, REQUEST=None) Return an HTML link and event pill for each object passed as a JSON object ready for inclusion in a YUI data table. | source code
getDashboardObjectsEventSummary(zem, objects, REQUEST=None) Event summary that takes dashboard production state threshold into account. | source code
_getPill(summary, url=None, number=3) | source code
getEventPill(zem, where, number=3, minSeverity=0, showGreen=True, prodState=None, url=None) | source code
list |
getEventPillME(zem, me, number=3, minSeverity=0, showGreen=True, prodState=None) Get HTML code displaying the maximum event severity and the number of events of that severity on a particular ManagedEntity in a pleasing pill-shaped container. | source code
getEventsURL(me) | source code

Variables | [hide private]
| organizerTypes = `{'Devices': 'devices', 'Groups': 'groups', 'L`...``

Function Details | [hide private]

### getObjectsEventSummary(zem, objects, prodState=None, REQUEST=None) | source code
Return an HTML link and event pill for each object passed as a JSON object ready for inclusion in a YUI data table. Parameters: `objects` (list) - The objects for which to create links and pills. Returns: string A JSON-formatted string representation of the columns and rows of the table

### getEventPillME(zem, me, number=3, minSeverity=0, showGreen=True, prodState=None) | source code
Get HTML code displaying the maximum event severity and the number of events of that severity on a particular ManagedEntity in a pleasing pill-shaped container. Optionally return pills for lesser severities as well. Optionally return a green pill if there are no events (normally no events in a severity will not yield a result). Parameters: `zem` (Products.ZenEvents.EventManagerBase.EventManagerBase) - A reference to ZenEventManager `me` (ManagedEntity) - The object regarding which event data should be queried. `number` (int) - The number of pills to return `showGreen` (bool) - Whether to return an empty green pill if all is well Returns: list HTML strings ready for template inclusion

Variables Details | [hide private]

  ### organizerTypes Value:
      {'Devices': 'devices', 'Groups': 'groups', 'Locations': 'locs', 'Syste
      ms': 'systems'}