Skip to main content

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/v1

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.v1_0 import client
c = client.Client('http://localhost:8080/v1')
hosts = c.hosts.list()

Project details


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.1.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_surveilclient-0.1.2-py2-none-any.whl (20.1 kB view details)

Uploaded Python 2

File details

Details for the file python-surveilclient-0.1.2.tar.gz.

File metadata

File hashes

Hashes for python-surveilclient-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ad2388eee573eb497118bb877bff247175c7d811bcae2176f986ae508be11510
MD5 fccb105b18b527e4361b22bc8b774b4f
BLAKE2b-256 c333624726a8e826da7667204efd832d7a49c791611d57dbcc53defb9687092c

See more details on using hashes here.

File details

Details for the file python_surveilclient-0.1.2-py2-none-any.whl.

File metadata

File hashes

Hashes for python_surveilclient-0.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 92d2158b68732f1bff21704ec333303cf71c2ba1189afe7ce669064e799fa88f
MD5 49b97013c3bf6fd69c9bdebd832ac1d2
BLAKE2b-256 4b571fadfdfe4ae18e49ad3670c6e57977be761a1dd1bbf308acdee78b24b7e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page