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
list
getEventPillME(zem, me, number=1, 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
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=1, 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:
Returns: list
HTML strings ready for template inclusion