monitapi is something to monitor API(URL) by a serverless.
Project description
monitapi
What is this
monitapi is something to monitor API(URL) by a serverless.
It supports hosting with FastAPI, running with CLI, and deploying to serverless.
Getting Started
Please refer to the documents created by Docusaurus.
A rich README and website are in preparation.
https://fealone.github.io/monitapi
Installation
monitapi is made by Python, so can you install it via PyPI.
pip install monitapi
Example targets file
monitor_targets:
- github-monitapi
method: "GET"
url: https://github.com/fealone/monitapi
status_code: 200
timeout: 5
notification_targets:
- notification-to-slack:
type: slack
endpoint: {Slack Incoming Webhooks endpoint}
payload:
blocks:
-
type: section
text:
type: mrkdwn
text: "Target: {{url}}, Status: {{status_code}}, Expect: {{expected_status_code}}, Message: {{message}}"
Usage
One shot
monitapi monitor {targets.yaml}
Run with FastAPI
You need to put targets.yaml in the current directory.
monitapi serve
Deploy to serverless
monitapi deploy {platform} --name {function-name} --file {targets.yaml} --options {deploy-option}
Contributors ✨
Thanks goes to these wonderful people (emoji key):
fealone 💻 🖋 🎨 💡 |
This project follows the all-contributors specification. Contributions of any kind welcome!
License
This project is licensed under the GPLv3 License - see the LICENSE file for details
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
Built Distribution
File details
Details for the file monitapi-0.4.0.tar.gz
.
File metadata
- Download URL: monitapi-0.4.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.50.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b30065f7b2e72afd35b9666447ce669cc50ddd5e60ee4a360ba1a6467f2874ba |
|
MD5 | 12f389ae1b8972a0ba472aacb0c67bff |
|
BLAKE2b-256 | 073c2a43c54ca6c0783dd87c9a168ee920418f274e2e5eb141691f84c2fb096a |
File details
Details for the file monitapi-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: monitapi-0.4.0-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.50.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b022a5a05ae6e1afce15dffb60d564fd36dd61f3dbefc63d52f9563511644d5 |
|
MD5 | d9699b077b7dac7a06807580f6245359 |
|
BLAKE2b-256 | 87e62729f7b6c91a3cdf6cdbadf458c585e8fa06b1471302c05ea844b3f9063a |