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

# Source Code for Module Products.ZenEvents.interfaces

     1  ###########################################################################
     2  #
     3  # This program is part of Zenoss Core, an open source monitoring platform.
     4  # Copyright (C) 2007, Zenoss Inc.
     5  #
     6  # This program is free software; you can redistribute it and/or modify it
     7  # under the terms of the GNU General Public License version 2 or (at your
     8  # option) any later version as published by the Free Software Foundation.
     9  #
    10  # For complete information please visit: http://www.zenoss.com/oss/
    11  #
    12  ###########################################################################
    13
    14  from zope.interface import Interface
    15
    16 -class ISendEvents(Interface):
    17      """
    18      Send events to the event system backend.
    19      """
    20
    21 -    def sendEvents(self, events):
    22          """
    23          Send a list of events to the event system backend.
    24          """
    25
    26
    27 -    def sendEvent(self, event, keepopen=0):
    28          """
    29          Send a single event to the event system backend.
    30          """
    31
    32 -class IEventPlugin(Interface):
    33      """
    34      Plugins that are looked up by zeneventd and executed.
    35      """
    36 -    def apply(event):
    37          """
    38          Apply the plugin to an event.
    39          """
    40
    41 -class IPreEventPlugin(IEventPlugin):
    42      """
    43      Event plugins applied before transforms.
    44      """
    45
    46 -class IPostEventPlugin(IEventPlugin):
    47      """
    48      Event plugins applied after transforms and before passing to ZEP.
    49      """
    50
    51 -class IEventIdentifierPlugin(Interface):
    52      """
    53      Plugins used by an IdentifierPipe to do custom event identification
    54      """
    55 -    def resolveIdentifiers(event, eventProcessorMgr):
    56          """
    57          Update the identifiers in the event based on custom identifier resolution logic.
    58          """
    59