This package can be used to the MSK IT Status Dashboard
Project description
it_status
This Python package can be used for reporting to the MSK IT Status Dashboard.
Installation
pip install it_status
Usage
from it_status.status import ITStatus
# Setup the ITStatus instance with the URL to the application API and your tenant schema name
status = ITStatus(os.getenv("IT_STATUS_API_URL"), os.getenv("IT_STATUS_TENANT_SCHEMA"))
# These are the different ways of reporting events to your job - the job key can be found on the Jobs page
job_key = "<unique_job_key_here>"
status.ping(job_key, message="Ping test is working!")
status.status(job_key, message="CPU Utilization", data=70)
status.start(job_key, message="Process is starting")
status.error(job_key, message="Error in processes", log="Some log message goes here")
status.done(job_key, message="Process is complete", data=100)
status.log(job_key, message="Logging", log={"info": "This is a test log"})
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
it_status-0.0.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for it_status-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf257145dda42b8f2e3e676b4a637d19369ad0e31295b0e303c1c3ca18b52e9 |
|
MD5 | 9754891844e9c3ca1e3015e168f99b23 |
|
BLAKE2b-256 | 5fc0ac3658edd60ae8bea06e1460fd887307d2c6d175b03f0cb0e11c16c46002 |