Library for communicating with the BetterStack Uptime API
Project description
Python Betterstack-Uptime
betterstack-uptime
is a library written in python that can assist in dealing with the Betterstack Uptime API. This is done by converting API endpoints into python objects, and translating the attributes from the API into variables.
Current endpoints implemented
- Monitors
- Monitor SLA
- Monitor Groups
- Heartbeats
- Heartbeat Groups
- Incidents
In future, there will be more endpoints added. These however, will need some extra code in order for them to work properly. If you desperately need another endpoint, feel free to extend the BaseAPIObject
class, and implement it!
betterstack-uptime
is free and open source software, you are free to use it, share it, modify it and share the modifications with the world.
Getting Started
Requirements
You will need the following software:
python>= 3.7
Installing
Run the following command to install the package
pip install betterstack-uptime
Usage
Just some quick boilerplate code to get you started
Get all instances
from betterstack.uptime import UptimeAPI
from betterstack.uptime.objects import Monitor
api = UptimeAPI("yourtokenhere")
monitors = Monitor.get_all_instances(api=api)
for monitor in monitors:
print(monitor.url)
Documentation
Full documentation is available at https://iwink.github.io/python-betterstack-uptime/
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to me.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Wouter Mellema - Initial work - wmellema
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file betterstack-uptime-1.0.3.tar.gz
.
File metadata
- Download URL: betterstack-uptime-1.0.3.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a60c70b73ae9bfaabb5f135578fb43235de0517deb77d75bc2fc489caa0a0240 |
|
MD5 | dab8675b218ccce3b9e7c2be94eef35f |
|
BLAKE2b-256 | 502be328e957919555b8c928d96279411657f6daa8d07360c7b1b7c2919bc12d |
File details
Details for the file betterstack_uptime-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: betterstack_uptime-1.0.3-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77a1cf00e0082ca6a3dfa2841e77c1ac41f53ca3c1e4c51c814c2d6be1ff53a3 |
|
MD5 | 8c5ebc1eeff8065374630eea381ab1f3 |
|
BLAKE2b-256 | 85651ffc6cc3ada1ff4cc8feae88891be4e58569db9e77be72b77c5ecd637348 |