Client library for surveil API.
Go to file
aviau 6cc71a2636 Implemented V2_0 API
Change-Id: I0b5b42abe75ff9f6d0b2cbe87a240c0766e3310e
2015-04-22 16:56:50 -04:00
doc Added basic lib 2014-12-16 17:29:26 -05:00
surveilclient Implemented V2_0 API 2015-04-22 16:56:50 -04:00
tools Added bash completion script 2014-12-22 10:34:45 -05:00
.gitignore Added CLI interface 2014-12-21 15:39:04 -05:00
.gitreview Added .gitreview 2014-06-25 20:10:08 +00:00
.testr.conf Added CLI interface 2014-12-21 15:39:04 -05:00
README.rst Implemented V2_0 API 2015-04-22 16:56:50 -04:00
requirements.txt HTTPClient improvements 2014-12-22 18:21:36 -05:00
setup.cfg Added bash completion 2014-12-22 10:24:03 -05:00
setup.py Added basic lib 2014-12-16 17:29:26 -05:00
test-requirements.txt Implemented V2_0 API 2015-04-22 16:56:50 -04:00
tox.ini Added CLI interface 2014-12-21 15:39:04 -05:00

Python bindings to the Surveil API

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

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/monasca.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', version='2_0')
hosts = c.config.hosts.list()