Skip to main content

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


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

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

ddmetrics-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file ddmetrics-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ddmetrics-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.9

File hashes

Hashes for ddmetrics-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b64db9b9408bfcc64ac15f45e3bdbb65f6f79a665419f93296776025dd9cba8
MD5 6b27984acf9b7b6c972f9d2922840cbe
BLAKE2b-256 e1e5375049a9bfe569e3d704e5718c6aad22e351630ab49a88237803f966c70d

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