Skip to main content

Python SDK for Metzoo

Project description

Exmaple of use:

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

Project details


Download files

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

Files for metzoo-python-sdk, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size metzoo-python-sdk-0.3.3.zip (7.7 kB) File type Source Python version None Upload date Hashes View

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