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/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()

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

Uploaded Source

Built Distribution

python_surveilclient-0.3.0-py2-none-any.whl (27.4 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for python-surveilclient-0.3.0.tar.gz
Algorithm Hash digest
SHA256 013fe348eafabd374cd549baf8ad3903c4252af5c30a87ab9c1b0bf395730256
MD5 d82f2dfcc0224638c13c9b19f97e980d
BLAKE2b-256 cad934a742a3ac42eb2889b9077cb3f1d75e6c721f9fd56d4bb40112b63c0990

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for python_surveilclient-0.3.0-py2-none-any.whl
Algorithm Hash digest
SHA256 9ddc65dcf67d9346de2660c496a1afa1b85bc3fe6b334fd75557d49f5185cd2f
MD5 b717468f176fe87dde2176f68003316b
BLAKE2b-256 23becdf13bc22f3e81428653120b10fe0986d21c47e6039df069569fe7592caf

See more details on using hashes here.

Provenance

Supported by

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