pyrax
Python Bindings for the Rackspace Cloud
|
Handles all of the alarm-specific requests. More...
Public Member Functions | |
def | create |
Creates an alarm that binds the check on the given entity with a notification plan. | |
def | update |
Updates an existing alarm. |
Handles all of the alarm-specific requests.
def create | ( | self, | |
check, | |||
notification_plan, | |||
criteria = None , |
|||
disabled = False , |
|||
label = None , |
|||
name = None , |
|||
metadata = None |
|||
) |
Creates an alarm that binds the check on the given entity with a notification plan.
Note that the 'criteria' parameter, if supplied, should be a string representing the DSL for describing alerting conditions and their output states. Pyrax does not do any validation of these criteria statements; it is up to you as the developer to understand the language and correctly form the statement. This alarm language is documented online in the Cloud Monitoring section of http://docs.rackspace.com.
def update | ( | self, | |
alarm, | |||
criteria = None , |
|||
disabled = False , |
|||
label = None , |
|||
name = None , |
|||
metadata = None |
|||
) |
Updates an existing alarm.
See the comments on the 'create()' method regarding the criteria parameter.