pyrax
Python Bindings for the Rackspace Cloud
|
Handles all of the requests dealing with notifications. More...
Public Member Functions | |
def | create |
Defines a notification for handling an alarm. | |
def | test_notification |
This allows you to test either an existing notification, or a potential notification before creating it. | |
def | update_notification |
Updates the specified notification with the supplied details. | |
def | list_types |
Returns a list of all available notification types. | |
def | get_type |
Returns a CloudMonitorNotificationType object for the given ID. |
Handles all of the requests dealing with notifications.
def create | ( | self, | |
notification_type, | |||
label = None , |
|||
name = None , |
|||
details = None |
|||
) |
Defines a notification for handling an alarm.
def get_type | ( | self, | |
notification_type_id | |||
) |
Returns a CloudMonitorNotificationType object for the given ID.
def list_types | ( | self | ) |
Returns a list of all available notification types.
def test_notification | ( | self, | |
notification = None , |
|||
notification_type = None , |
|||
details = None |
|||
) |
This allows you to test either an existing notification, or a potential notification before creating it.
The actual notification comes from the same server where the actual alert messages come from. This allow you to, among other things, verify that your firewall is configured properly.
To test an existing notification, pass it as the 'notification' parameter and leave the other parameters empty. To pre-test a notification before creating it, leave 'notification' empty, but pass in the 'notification_type' and 'details'.
def update_notification | ( | self, | |
notification, | |||
details | |||
) |
Updates the specified notification with the supplied details.