DataDog Metrics Collector decorator(s)
Project description
datadog-metrics decorator
A python decorator that handles DataDog Metrics API calls.
Usage
@DDMetrics.send(my_token)
def get_my_metric(x):
# 1. get metric data and build the metric payload
metric = [
{
"metric": "something",
"points": [[time(), 55]],
"tags": ['test1', 'test2']
}
]
# 2. return it
return 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for ddmetrics-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b64db9b9408bfcc64ac15f45e3bdbb65f6f79a665419f93296776025dd9cba8 |
|
MD5 | 6b27984acf9b7b6c972f9d2922840cbe |
|
BLAKE2b-256 | e1e5375049a9bfe569e3d704e5718c6aad22e351630ab49a88237803f966c70d |