Package Products :: Package ZenEvents :: Module zenactiond :: Class NotificationDao |
[hide private]
[frames] | no frames]

# Class NotificationDao

source code

    object --+
             |
            NotificationDao

Instance Methods | [hide private]
__init__(self, dmd) | source code
getNotifications(self) | source code
getSignalNotifications(self, signal) Given a signal, find which notifications match this signal. | source code
notificationSubscribesToSignal(self, notification, signal) Determine if the notification matches the specified signal. | source code

Method Details | [hide private]

### __init__(self, dmd) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)

### getSignalNotifications(self, signal) | source code
Given a signal, find which notifications match this signal. In order to match, a notification must be active (enabled and if has maintenance windows, at least one must be active) and must be subscribed to the signal. Parameters: `signal` (protobuf zep.Signal) - The signal for which to get subscribers.

### notificationSubscribesToSignal(self, notification, signal) | source code
Determine if the notification matches the specified signal. Parameters: `notification` (NotificationSubscription) - The notification to check `signal` (zenoss.protocols.protbufs.zep_pb2.Signal @rtype boolean ) - The signal to match.