Pythonic timing tracker with reporting to Cloudwatch
Project description
‘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
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
cwtimer-0.0.2.tar.gz
(1.7 kB
view details)
File details
Details for the file cwtimer-0.0.2.tar.gz
.
File metadata
- Download URL: cwtimer-0.0.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04571fc3daf7de746b9e2efa680a7814ffc16139f602634359d69d8378ffe8a4 |
|
MD5 | 375c13f39e11ff724d2ce90144f065ad |
|
BLAKE2b-256 | a9304dae1471bc29c6c0f015ff0c7a18cf0a93183655dcf1465ed9c71c32dd86 |