Package ZenPacks :: Package zenoss :: Package Impact :: Module routers
[frames] | no frames]

Module routers

source code

Operations for Impact and Dynamic Services.

Available at: /zport/dmd/enterpriseservices_router

Classes
ImpactRouter
Router for Zenoss Impact
RelatedEventsRouter
Queries for events related to a service event.
Functions
DirectResponse
impactServerConnectionError(func)
Decorator that catches exceptions from interactions with zenimpactserver and returns a clean response.
source code
Variables
  IMPACT_NEEDS_RESET = {'event_class': '/Service', 'msg': 'Impac...
  STATUS_ACKNOWLEDGED = 1
  STATUS_NEW = 0
  ZEN_ADD = 'Add DMD Objects'
  ZEN_DELETE = 'Delete objects'
  ZEN_MANAGE_DMD = 'Manage DMD'
  __package__ = 'ZenPacks.zenoss.Impact'
  log = <logging.Logger object at 0xafca2ec>
Function Details

impactServerConnectionError(func)

source code 

Decorator that catches exceptions from interactions with zenimpactserver and returns a clean response.

Returns: DirectResponse
Type: exception

Variables Details

IMPACT_NEEDS_RESET

Value:
{'event_class': '/Service',
 'msg': 'Impact database needs updating',
 'resource': 'DynamicServices',
 'severity': 5,
 'severity_name': 'Critical'}