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
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 Distribution
File details
Details for the file metzoo-python-sdk-0.3.1.tar.gz.
File metadata
- Download URL: metzoo-python-sdk-0.3.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59b0dd362aef884deb800ff515a02c2c6077dd7a397d8f17d4219f5618a8c0e5
|
|
| MD5 |
9d1aaf9a5d5b56bd9968b9ddb3a9f807
|
|
| BLAKE2b-256 |
270251a150c76b2cc1287d6ed2a5b293672fda77aad1d1da364aeee491f1431d
|