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

# Source Code for Module Products.ZenEvents.interfaces

     1  ##############################################################################
     2  #
     3  # Copyright (C) Zenoss, Inc. 2007, all rights reserved.
     4  #
     5  # This content is made available according to terms specified in
     6  # License.zenoss under the directory where your Zenoss product is installed.
     7  #
     8  ##############################################################################
     9
    10
    11  from zope.interface import Interface
    12
    13 -class ISendEvents(Interface):
    14      """
    15      Send events to the event system backend.
    16      """
    17
    18 -    def sendEvents(self, events):
    19          """
    20          Send a list of events to the event system backend.
    21          """
    22
    23
    24 -    def sendEvent(self, event, keepopen=0):
    25          """
    26          Send a single event to the event system backend.
    27          """
    28
    29 -class IEventPlugin(Interface):
    30      """
    31      Plugins that are looked up by zeneventd and executed.
    32      """
    33 -    def apply(event):
    34          """
    35          Apply the plugin to an event.
    36          """
    37
    38 -class IPreEventPlugin(IEventPlugin):
    39      """
    40      Event plugins applied before transforms.
    41      """
    42
    43 -class IPostEventPlugin(IEventPlugin):
    44      """
    45      Event plugins applied after transforms and before passing to ZEP.
    46      """
    47
    48 -class IEventIdentifierPlugin(Interface):
    49      """
    50      Plugins used by an IdentifierPipe to do custom event identification
    51      """
    52 -    def resolveIdentifiers(event, eventProcessorMgr):
    53          """
    54          Update the identifiers in the event based on custom identifier resolution logic.
    55          """
    56