Skip to main content
Python Module for Uptime Robot
==============================

Python3 module to interact with UptimeRobot API

Installation
------------

To get the latest stable release from PyPi

.. code:: bash

$ pip install upytimerobot

To get the latest commit from GitLab

.. code:: bash

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

Usage
-----

Use with Python:

.. code:: 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}]}

ToDo
----
- Add support to edit existing Monitors
- Add support to delete existing Monitors
- Add support to add new Alert Contacts
- Add support to edit existing Alert Contacts
- Add support to delete existing Alert Contacts
- Add support to add new Maintenance Windows
- Add support to edit existing Maintenance Windows
- Add support to delete existing Maintenance Windows
- Add support to add new Public Status Pages
- Add support to edit existing Public Status Pages
- Add support to delete existing Public Status Pages
- Make the module work as a standalone script

History
-------

[0.2.1] - 2018-06-28
--
Some work was made toward improving the collection of monitors by type, status, etc..

Added
--
- `.add_monitor` to add new monitors
- `.add_http_monitor` to add http/https monitors
- `.add_ping_monitor` to add ping monitors
- `.add_port_monitor` to add port monitors
- File `add_monitor.py` to serve as example of what can be achieved

Changed
--
- `Changelog` texts to be more clear
- FIX: `get_monitor_by_status` is now working properly
- FIX: `get_monitor_by_type` is now working properly

[0.1.0] - 2018-06-18
---
This is functional module already, one can query all the information regarding `account`, `monitors`, `alert contacts`, `maintenance windows` and `public status pages`.

Also, the functions are all well documented, containing all the possible parameters that can be used to each of the queries available.

Added
--
- Add `constants` file to hold parameters options and other constants that will be used

Changed
--
- Renamed some internal usage methods to differentiate from the public ones
- Improved documentation on the existing methods
- The importing of some libraries
- `.get_monitors_by_name`: Changed validation if a monitor was recovered
- `.get_monitors_by_id`: Changed validation if a monitor was recovered
- Changed the name of the methods to a more pythonic naming:
- `.getMonitors` -> `.get_monitors`
- `.getAccountDetails` -> `.get_account_details`
- `.getAlertContacts` -> `.get_alert_contacts`
- `.getMWindows` -> `.get_mwindows`
- `.getPSPs` -> `.get_psps`


About the API
-------------

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


Metadata

Release files for upytimerobot 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for upytimerobot 0.2.1
File Size Uploaded
upytimerobot-0.2.1.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for upytimerobot 0.2.1
File Interpreter ABI Platform
upytimerobot-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.0 kB

Release files / upytimerobot-0.2.1.tar.gz

Download URL upytimerobot-0.2.1.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a7d6a7f535472992551a12bee9b8ad66e020e3cd87c919c4a8f44dcc970d1dad
BLAKE2b-256 checksum
How to use checksums
405431f4c9e53f9d54b6b734acd1271d3cb1d54e48a72f88a06eb417bfaf6822
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / upytimerobot-0.2.1-py3-none-any.whl

Download URL upytimerobot-0.2.1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08119d6b0e2db1bd12d043d82d88e198ed06108774133fb10f274ddbc5c69cd1
BLAKE2b-256 checksum
How to use checksums
6d08490fe17db062603ef2dfd07fa63922957509f06581c7d29e19043e14edcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page