Uptime Robot http://uptimerobot.com integration for your Python project. There is a Django version (https://github.com/arteria/django-uptimerobot) available containing the Uptime Robot API implementation and the infrastructure stuff used by Djangonauts.
To get the latest stable release from PyPi
$ pip install python-uptimerobot
To get the latest commit from GitHub
$ pip install -e git+git://github.com/arteria/python-uptimerobot.git#egg=uptimerobot
Use with Python:
>>> from uptimerobot.uptimerobot import UptimeRobot
>>> up = UptimeRobot(UPTIME_ROBOT_API_KEY)
>>> up.addMonitor("arteria-webpage", "https://www.arteria.ch/")
True
Use in Shell: (success if return value is 0, null)
cd /path/to/script/
chmod 755 uptimerobot.py # if necessary
./uptimerobot.py monitorFriendlyName=arteria-webpage monitorURL=https://www.arteria.ch/
latest
0.1.5
Fixed error where requestApi didn't return when the API request failed
0.1.4
- Extended API with .editMonitor().
- Updated to use HTTPs by default.
0.1.3
- Extended API with .deleteMonitorById().
0.1.1
- Extended API with .getMonitors().
0.1.0
- Releveled version
0.0.7
- Python 3.x support
The full API is documented here: https://uptimerobot.com/api