updown

3rd-party Python interface to Updown.io API


License
MIT
Install
pip install updown==0.1.0

Documentation

Updown

A Python wrapper for the updown.io API

Installation

Install from PyPI:

pip install updown

Or install using the provided setup.py:

python setup.py install

Usage

Import library

import updown
updown.API_KEY = 'YOUR API KEY'

Or set the UPDOWN_API_KEY environment variable

Find your API key in your settings page.

List all your checks

checks = updown.checks()

List downtimes for a specific check (paginated, 100 per call)

updown.checks()['http://myurl'].downtimes()
updown.checks()['http://myurl'].downtimes(page=2)

Update a check

c = updown.checks()['http://myurl']
c.enabled = False
c.period = 120
c.sync()

Create a new check

c = updown.add('http://myurl')
  • The following parameters are accepted:

    updown.add(url, period=60, apdex_t=0.25, enabled=True, published=False)

Delete a check

c = updown.checks()['http://myurl'].delete()