cwtimer 0.0.2

Creator: bradpython12

Last updated:

Add to Cart

Description:

cwtimer 0.0.2

‘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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.