python-uptimerobot icon indicating copy to clipboard operation
python-uptimerobot copied to clipboard

need new alert types

Open sfarrell5123 opened this issue 8 years ago • 0 comments

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",
}

sfarrell5123 avatar Aug 09 '16 01:08 sfarrell5123