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
Built Distribution
Close
Hashes for python-surveilclient-0.12.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaae64a9cf4eecc6af10271e5c788ef3e089a45dcde103dcf3b2b27ce3b9e9fd |
|
MD5 | 6eb05a2d3dee2178f00aaa45a130fd5c |
|
BLAKE2b-256 | eba6cffefc1d7dd232921b01f98dc6d42ee04b1a6471047551bd5994db23f68b |
Close
Hashes for python_surveilclient-0.12.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb83175498dbff40bf9aabab8b6b88c8861961f4450ee594693845738f283b0a |
|
MD5 | 24951785172dda8704cf4a276300dea9 |
|
BLAKE2b-256 | 2b20c9b494b038adf0c70f948b20f79ce5a6c2961a4d108a520cd98feccf85d3 |