-
Notifications
You must be signed in to change notification settings - Fork 3
Alerting API
Shane Barbetta edited this page Jun 28, 2018
·
8 revisions
Methods for creating and/or modifying existing alerting policies.
Create a new alert policy
Retrieve a list of policies ordered by date in descending order
create(string name, list email_addresses, int strikes, **kwargs)
Create a new alert policy
Arguments:
name - the name of your alert policy
email_addresses - An array of email-addresses associated with the policy
strikes - The number of strikes before triggering an alert
Keyword Arguments:
description - A description for the policy
Example:
c.alert().create('test policy', ['test1@example.com', 'test2@example.com'], 3, description='my test policy')list()
Retrieve a list of policies ordered by date in descending order
Example:
c.alert().list()