‘cwtimer’ does one simple thing, track the timing of a ‘with’ statement block and report to AWS Cloudwatch.
Install
$ pip install cwtimer
Example
from cwtimer import cwtimer
import time
with cwtimer(namespace='MyNameSpace', metric_name='MyMetric',
dimensions={'MyDimension':'Value'}):
time.sleep(1)
# 1.0s reported to cloudwatch metric
Metadata
Release files for cwtimer 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cwtimer-0.0.2.tar.gz | 1.7 kB | Details |
Release files / cwtimer-0.0.2.tar.gz
| Download URL | cwtimer-0.0.2.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04571fc3daf7de746b9e2efa680a7814ffc16139f602634359d69d8378ffe8a4
|
|
BLAKE2b-256 checksum How to use checksums |
a9304dae1471bc29c6c0f015ff0c7a18cf0a93183655dcf1465ed9c71c32dd86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |