micro client for okerr cloud monitoring system
Project description
okerrupdate - simple interface to update okerr indicator
Simplest
Reads textid and secret from default config file (/etc/okerrclient.conf), updates heartbeat indicator 'test:1' with status OK. If no such indicator - creates it (if policy allows autocreate).
#!/usr/bin/python
import okerrupdate
op = okerrupdate.OkerrProject()
i = op.indicator("test:1")
i.update('OK')
More detailed
Sets verbose mode. Sets textid and secret from script. Creates numerical indicator and sets parameters for it, then updates it.
#!/usr/bin/python
import okerrupdate
# create okerr project
op = okerrupdate.OkerrProject('MyTextID', 'MySecret1')
op.verbose()
# create indicator
i = op.indicator("test:1", method='numerical|maxlim=37')
i.update('36.6', 'Current temperature is normal')
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
okerrupdate-1.1.11.tar.gz
(4.3 kB
view details)
File details
Details for the file okerrupdate-1.1.11.tar.gz
.
File metadata
- Download URL: okerrupdate-1.1.11.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cfec5f2c8dcf63d775f644d3e6124f01c1e18c0bc4066ad12bdf5919aecaaab |
|
MD5 | 281aad9448a71e8e3f15b3245b6cd8ff |
|
BLAKE2b-256 | 806e2fd7b1c02985a3a9c589f975cb1cbc6c0b39446f59cf2d0ebc4c55b96dc2 |