Skip to main content

📊 Buzzni Batch process Monitor.

Project description

bbm

📊 Buzzni Batch process Monitor -> BBM

Package version Supported Python versions

Installation

pip install bbm

Example

logging

from bbm import Interval, logging, setup


@logging()
def temp_func():
    return "Hello World"


@logging(process_name="custom_name_of_process", interval=Interval.A_DAY)
def temp_func2():
    return "Hello World"


if __name__ == "__main__":
    setup(es_url="your-es-url", index_prefix="your-index-prefix")
    temp_func()
    temp_func2()

post report

from bbm import reporter, setup

if __name__ == "__main__":
    # init bbm
    setup(es_url="your-es-url", index_prefix="your-index-prefix")
    
    # init reporter and send simple messages
    reporter = reporter.Reporter(slack_token="your-slack-token", slack_channel_id="your-slack-channel-id")
    post_response = reporter.post_message(title="title", text="text")
    ts = post_response["ts"]
    post_message_to_thread = reporter.post_message(title="title", text="text", ts=ts)
    
    # send report    
    reporter.post_report()

Report sample

  1. Need to check report report_sample
  2. Full report (It will be sent as a file at 'need to check report' thread) report_sample

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

bbm-0.0.6.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

bbm-0.0.6-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file bbm-0.0.6.tar.gz.

File metadata

  • Download URL: bbm-0.0.6.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for bbm-0.0.6.tar.gz
Algorithm Hash digest
SHA256 50dae9af1c9fce78c0ade723deb0789195559f71da1815de8e499613ce84f808
MD5 22752015312eada31a9afc601c588871
BLAKE2b-256 858d70b17d45aa64dad0c817a9c9d3469e1c4124737f1067390d637330dca0a7

See more details on using hashes here.

File details

Details for the file bbm-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: bbm-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for bbm-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c00008573ae713654b75db1ce87c0d1c336faec532e00dea707a944b35d8ec52
MD5 b9e9d0211b6d2734ea4c2e701020f094
BLAKE2b-256 2b433e632cb8c6256b2f1b69b76ba06cc5b64eeb8eb66fdd61de8eb3cd9d187f

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