Skip to main content

Python SDK for Metzoo

Project description

Exmaple of use:

>>> import metzoo
>>> # create an agent
>>> agent = metzoo.Agent(CUSTOMER_KEY, "")
<Agent '', key: 'xxx...'>
>>> # or with an url
>>> agent = metzoo.Agent(CUSTOMER_KEY, "", "")
<Agent '', key: 'xxx...'>
>>> # configure the metrics to use (optional)
>>> agent.configure({"": "unit", "": "unit"})
>>> # send data for given metrics using system time...
>>> agent.send({"": 134.22, "": 8123})
>>> # ...or using your own time
>>> agent.send({"": 134.22, "": 8123}, timestamp=1234567)
>>> # update own agent configuration (not implemented yet)
>>> agent.update()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (7.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page