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:8080/v2 export SURVEIL_AUTH_URL=http://localhost:8080/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:8080/v2', auth_url='http://localhost:8080/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.8.0.tar.gz
(21.1 kB
view hashes)
Built Distribution
Close
Hashes for python-surveilclient-0.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a7d151f4bfb1c05e5d3022af7c3ae2ac159b838fe7d38a53ac44c7bd410a0ef |
|
MD5 | 781ae1b0a99fc652a86f62d120edb99d |
|
BLAKE2b-256 | 44acfb2d65c71025652aa6513a2eaae8a8873f9c1ce98498914cfea85adc3fad |
Close
Hashes for python_surveilclient-0.8.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81fa14e225d05ed22a14a011ae779dc719f89d84233dbaad3f5326eff785101d |
|
MD5 | 7ec0ba2ed9bd36d99f5d59ff3b441b5a |
|
BLAKE2b-256 | fb8e44d9f61ca6c01ceff40a4631289b5462a99087f1e11be5003c30df1a199f |