Skip to main content

This is a Python package designed for monitoring cron jobs through Starecase.io

Project description

This is a Python module designed for monitoring cron jobs through Starecase.io

Installation

pip install starecase-cron-monitor==0.1.3

Prerequisite

You will need to:

  • Fill the form to get API Key: URL btw it's Free to use 🎉
  • Own a Starecase account
  • Create a Starecase API Key

Environment Variables

We recommend using environment variables for storing your API Key. To set values for these variables, use the following variable names:

  • STARECASE_API_KEY: To store the API Key.

Quick Start

Initialise Service

Just initialise the service by:

from cron_monitor.initialiser import initialize_service


initialize_service("YOUR_API_KEY")

Decorate methods

You need to add the @monitor decorator to your function you are using. Below is an example :

from cron_monitor.decorator import monitor

@monitor(job_name="test-python-job-name", job_group="python-test-group", expression="* * * * *", debug=True)
    def my_job():

License

This project is licensed under the terms of the MIT license.

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

starecase_cron_monitor-0.1.3.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file starecase_cron_monitor-0.1.3.tar.gz.

File metadata

  • Download URL: starecase_cron_monitor-0.1.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for starecase_cron_monitor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 41d42f7cd27af8964fa12ba98f183bd951477b6bd367ef35b4d726f54563e0f1
MD5 5b43825d6be0e378235bfc84a7280d44
BLAKE2b-256 d0bea1307b4a2923e5d632048394f369b77b511db4ca630230e2d0bb9668abc9

See more details on using hashes here.

Supported by

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