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
metzoo-python-sdk-0.3.3.zip
(7.7 kB
view details)
File details
Details for the file metzoo-python-sdk-0.3.3.zip.
File metadata
- Download URL: metzoo-python-sdk-0.3.3.zip
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47f8c46e2a87d0660a550e02aabd6fc5afa26449c8da0bd4ec3738b404ee6430
|
|
| MD5 |
b40c7697a71d5174bb41bb21e7c4ba5f
|
|
| BLAKE2b-256 |
28ae76997b4f53635c16e4ac7c8426ad0fd901328bbb55dbb2a85e34f0d3b1c5
|