Skip to main content

Python3 module to interact with UptimeRobot API.

Project description

Python3 module to interact with UptimeRobot API

Installation

To get the latest stable release from PyPi

$ pip install upytimerobot

To get the latest commit from GitLab

$ pip install -e git+git://gitlab.com/fboaventura/upytimerobot.git#egg=uptimerobot

Usage

Use with Python:

>>> from upytimerobot import UptimeRobot
>>> up = UptimeRobot(api_key=UPTIME_ROBOT_API_KEY)
>>> up.get_monitors()
{'stat': 'ok', 'pagination': {'offset': 0, 'limit': 1, 'total': 4}, 'monitors': [{'id': 90909090, 'friendly_name': 'my_monitor', 'url': '127.0.0.1', 'type': 3, 'sub_type': '', 'keyword_type': '', 'keyword_value': '', 'http_username': '', 'http_password': '', 'port': '', 'interval': 300, 'status': 2, 'ssl': {'brand': '', 'product': None, 'expires': 0}, 'create_datetime': 1480809958}]}

History

latest

0.0.1 - 2018-06-15

Added

  • Initial commit

  • Config file to host API key and other options

  • All read only API calls are implemented:

    • getMonitors => .get_monitors()

    • getAccountDetails => .get_account_details()

    • getAlertContacts => .get_alert_contacts()

    • getMWindows => .get_mwindows()

    • getPSPs => .get_pdpd()

About the API

The full API is documented here: https://uptimerobot.com/api

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upytimerobot-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

upytimerobot-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file upytimerobot-0.0.1.tar.gz.

File metadata

File hashes

Hashes for upytimerobot-0.0.1.tar.gz
Algorithm Hash digest
SHA256 af7ccd01f4150f841ec3b1b7d956d97214c64c46c38700b8b414009ddec50bf6
MD5 c32b29dd5e02f84ff742a29013c2733b
BLAKE2b-256 4608b43277c30d6ae100be76e904d5f13cf1883d098b5d42fc2cc097a1e51b5a

See more details on using hashes here.

File details

Details for the file upytimerobot-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for upytimerobot-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5367352d19dc3855a004372503d14240f0baca81683ade4a582abdcc8a40423e
MD5 54d9b154d2c3ecf151e4efef5bdc35db
BLAKE2b-256 a317556a80d8ebe7892f56557362ab2e34055fb5b65cd0d16c93fd65cf332b4e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page