Skip to main content

Rate, Errors and Duration Metrics.

Project description

redmx

CI Documentation Status PyPI version

Rate, Errors and Duration Metrics

Basic Example

import time
from redmx import RateErrorDuration
metrics = RateErrorDuration()
time.sleep(1)
metrics.increment_count(1)
metrics.increment_count(1)
metrics.rate()
print(metrics)

Will produce the following output:

rate = 1.9904 tps, errors = 0 in 2 (0.0%), duration = 502.4475 milliseconds per transaction.

For full documentation please go to https://redmx.readthedocs.io/en/latest/

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

redmx-0.2.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redmx-0.2.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file redmx-0.2.2.tar.gz.

File metadata

  • Download URL: redmx-0.2.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for redmx-0.2.2.tar.gz
Algorithm Hash digest
SHA256 bce4c488ba7cf6e82b184ed54a6e058456840a7c7d45e95fe4e0db728ba99b95
MD5 dcaeef015f1b779ab3164f2ee3cad548
BLAKE2b-256 5fd978ab37d809f4bb9d56449d3f9acedcffbade895b92156b3210f4accfdedd

See more details on using hashes here.

File details

Details for the file redmx-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: redmx-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for redmx-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b90d4df0375d309bf67b224d246e2ca0554fc5b2cb93ee2619987e3bff5d70d
MD5 358a98c6ee1b4347101eed8bea656626
BLAKE2b-256 96defb14781dd144b6bd5a7e9fbfdc05fa1945db3ea867f5ac94bbaa69c48739

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