Surveil API Client Library
Project description
This is a client library for Surveil built on the Surveil API.
Command-line API
Installing this package gets you a shell command, surveil, that you can use to interact with the Surveil API.
You’ll need to provide the Surveil API URL. You can do this with the --surveil-api-url parameter, but it’s easier to just set it as environment variable:
export SURVEIL_API_URL=http://localhost:5311/v2 export SURVEIL_AUTH_URL=http://localhost:5311/v2/auth
You’ll find complete documentation on the shell by running surveil help.
Bash completion
Basic command tab completion can be enabled by sourcing the bash completion script:
source /usr/local/share/surveil.bash_completion
Python API
To use the python API, simply create a client with the endpoint:
from surveilclient import client c = client.Client('http://localhost:5311/v2', auth_url='http://localhost:5311/v2/auth', version='2_0') hosts = c.config.hosts.list()
How to use it
Config-host-update:
surveil config-host-update --host_name [host_name] --address [ADDRESS] --custom_fields '{"_field1": "value1", "_field2": "value2"}'
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
python-surveilclient-0.9.0.tar.gz
(21.3 kB
view hashes)
Built Distribution
Close
Hashes for python-surveilclient-0.9.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c81db43590fb78416a02a0b2bb45d4ed402d9a552fef9226f57efac8c29e552 |
|
MD5 | 2d1f2455e43e78d90ea734f92e26aa03 |
|
BLAKE2b-256 | 0c04e4eab48397ca54629513bfc01279859e907a0140cae22f21d1e281215d4b |
Close
Hashes for python_surveilclient-0.9.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a24e57a16c75ec5ab74f13c71adbd6b595fa48832125c72fdf359591097d393 |
|
MD5 | 9e07b0b43acc0c85da275635801521ac |
|
BLAKE2b-256 | c8617d083b9ecdc4bfdcc495033aa7c1478b963c1a6b6cba6c8f03a7edf49ed6 |