A Python wrapper for the updown.io API
Install from PyPI:
pip install updown
Or install using the provided setup.py
:
python setup.py install
import updown
updown.API_KEY = 'YOUR API KEY'
Or set the UPDOWN_API_KEY
environment variable
Find your API key in your settings page.
checks = updown.checks()
updown.checks()['http://myurl'].downtimes()
updown.checks()['http://myurl'].downtimes(page=2)
c = updown.checks()['http://myurl']
c.enabled = False
c.period = 120
c.sync()
c = updown.add('http://myurl')
-
The following parameters are accepted:
updown.add(url, period=60, apdex_t=0.25, enabled=True, published=False)
c = updown.checks()['http://myurl'].delete()