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.13.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9742699af674330fe670514bbf3f955604e67c0b4903e55372fd14d823e00915 |
|
MD5 | 142223392fd63de31b0d41b8d0097631 |
|
BLAKE2b-256 | a6c4d8764b8623dbd05b9cbb8dc4e26f0149c9bc20eb0e335430c0764737e628 |
Close
Hashes for python-surveilclient-0.13.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6203d23d8edf272ba24890262abb18c6f897916df6831d4b6478ce16ac72f043 |
|
MD5 | 3759a028d84283c780af960cb0328016 |
|
BLAKE2b-256 | 1c5497ed3371577ca8a0acf49365258db8ba74dbd4891165781b847662b8b219 |