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.10.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f974ada0554496a1363480c5c7533bce0fd3721b025bf5224ada06a501963907 |
|
MD5 | e30db83ef2fc7d46b331cd1b8fe30182 |
|
BLAKE2b-256 | 6b00dc222718b7bd9632c534947b8327a857cf7bfb1e7365988d24b7935eedfa |
Close
Hashes for python_surveilclient-0.10.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a0077c923d5a6898eb5c5ab7104a7324b4f919093d85846b24aa5561117efd |
|
MD5 | 66a33fd6747641304d1af51bd5f28c6a |
|
BLAKE2b-256 | ba465e13e317e2e22473a30b80575d27fa3e34ece222ae10f74b8c94a445c0d0 |