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
>>> agent.send({"metric1.name": 134.22, "metric2.name": 8123})
{"status":"ok"}
>>> # update own agent configuration
>>> 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.

Source Distribution

metzoo-python-sdk-0.3.0.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file metzoo-python-sdk-0.3.0.tar.gz.

File metadata

File hashes

Hashes for metzoo-python-sdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 503fdc93060ffbd393cc7a7d167346eab952ca11b2807554d086fc67b00ed883
MD5 66fd110548553cdd1c18c4865948b556
BLAKE2b-256 d8cda960bdd7dc90e53452f6713d139afa1d70146863105ba825de1ad999cc9d

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