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"}
Release files for metzoo-python-sdk 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| metzoo-python-sdk-0.3.3.zip | 7.7 kB | Details |
Release files / metzoo-python-sdk-0.3.3.zip
| Download URL | metzoo-python-sdk-0.3.3.zip |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47f8c46e2a87d0660a550e02aabd6fc5afa26449c8da0bd4ec3738b404ee6430
|
|
BLAKE2b-256 checksum How to use checksums |
28ae76997b4f53635c16e4ac7c8426ad0fd901328bbb55dbb2a85e34f0d3b1c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |