python-uptimerobot
python-uptimerobot copied to clipboard
need new alert types
alert_contact.py
from future import absolute_import, division, print_function, unicode_literals
from termcolor import colored
class AlertContact(object): class Type: SMS = 1 EMAIL = 2 TWITTER = 3 BOXCAR = 4 PUSHBULLET = 6 WEBHOOK = 5
TYPES = {
Type.SMS: "sms",
Type.EMAIL: "email",
Type.TWITTER: "twitter",
Type.BOXCAR: "boxcar",
Type.PUSHBULLET: "pushbullet",
Type.WEBHOOK: "webhook",
}