The base exception class Alertinator uses.
Derived exceptions are used to trigger an alert. The only requirement is that they must have a class constant bitmask, which will be ORed together with each alertee’s notify levels to determine whether a particular alerting method will be used.
Run through every check, alerting the appropriate alertees on check failure.
Raises Exception: | |
---|---|
Rethrows any non-expected Exceptions thrown in the checks. |
Parameters: |
|
---|---|
Returns: | An iterable of strings corresponding to alertee names in $this->alertees. |
Alert an alertee.
Parameters: |
|
---|
Send an email to $address with $message as the body.
Send an SMS of $message through Twilio to $number.
Make a phone call through Twilio to $number, with text-to-speech of $message.
Return an object capable of sending Twilio SMS messages.
This function exists partly to ease mocking, and partly to abstract away Twilio’s deep object inheritance.
Return an object capable of making Twilio calls.
This function exists partly to ease mocking, and partly to abstract away Twilio’s deep object inheritance.
Return a configured Services_Twilio object.