Skip to main content

monitapi is something to monitor API(URL) by a serverless.

Project description

monitapi

All Contributors


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

monitapi-0.4.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

monitapi-0.4.1-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file monitapi-0.4.1.tar.gz.

File metadata

  • Download URL: monitapi-0.4.1.tar.gz
  • Upload date:
  • Size: 8.6 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

Hashes for monitapi-0.4.1.tar.gz
Algorithm Hash digest
SHA256 18f69da7a4ea3924ed8ca13666931d94f044209cad195ded7fb939b8a1b8e144
MD5 28659e58a096de6e33c22193e728acf9
BLAKE2b-256 d0649db54dd87d9e8e2a7c6324da41b91255cb26ca76f35c92a8469ebaa8a7bf

See more details on using hashes here.

File details

Details for the file monitapi-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: monitapi-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 23.8 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

Hashes for monitapi-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 580b7b08932d92186fcda5f320444dcea5ec5830ec0b1c8a3f23db09ef23e618
MD5 64e3de95c0f3e36f7b78b4ed469f5753
BLAKE2b-256 2e090918cced1263ca093283c52ab0787204a733a82c616563f7e1d790df1bed

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