Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
demo/web/templates/ | H | 30-Dec-2014 | - | |||
rackspace_monitoring/ | H | 30-Dec-2014 | - | 1,629 | 1,156 | |
test/ | H | 30-Dec-2014 | - | 2,050 | 1,780 | |
CHANGES.md | H A D | 30-Dec-2014 | 3.4 KiB | 123 | 73 | |
LICENSE | H A D | 29-Dec-2014 | 11.1 KiB | 203 | 169 | |
NOTICE | H A D | 29-Dec-2014 | 252 | 9 | 6 | |
PKG-INFO | H A D | 30-Dec-2014 | 1,016 | 25 | 24 | |
README.md | H A D | 29-Dec-2014 | 1.8 KiB | 81 | 50 | |
setup.py | H A D | 03-May-2022 | 6.1 KiB | 207 | 157 | |
tox.ini | H A D | 29-Dec-2014 | 176 | 13 | 10 |
README.md
1# rackspace-monitoring 2 3rackspace-monitoring is a Python client library for Rackspace Cloud Monitoring 4built on top of [Apache Libcloud](http://libcloud.apache.org). 5 6# Installation 7 8Library can be installed using `pip`: 9 10```bash 11pip install rackspace-monitoring 12``` 13 14# Usage 15 16```python 17from pprint import pprint 18 19from rackspace_monitoring.providers import get_driver 20from rackspace_monitoring.types import Provider 21 22Cls = get_driver(Provider.RACKSPACE) 23driver = Cls('username', 'api key') 24pprint(driver.list_entities()) 25``` 26 27# Certificate verification 28 29Libcloud verifies server SSL certificate by default. This means you need to 30have the correct CA certificate files installed on your computer for this 31library to work. 32 33If Libcloud cannot find CA certificate files, you will see an error similar to 34the one below: 35 36`"RuntimeError: No CA Certificates were found in CA_CERTS_PATH."` 37 38This can be addressed by installing the CA certificate files. Below you can 39find the names of the packages which include CA certificate files. 40 41* **openssl** on CentOS/Fedora (yum) 42* **ca-certificates** on Debian/Ubuntu/Arch/Gentoo (apt-get) 43* **ca_root_nss** on FreeBSD (ports) 44* **curl-ca-bundle** on Mac OS X (ports) 45 46# Testing, style, code coverage 47 48## Running tests 49 50`sudo tox` 51 52This will run tests on all the supported versions. 53 54If you only want to run tests for a single version use: 55 56`sudo tox -e <version>` 57 58Where version is one of: 59 60* py25 61* py26 62* py27 63* pypy 64* py32 65 66## Checking pep8 compliance 67 68`python setup.py pep8` 69 70## Generating code coverage report 71 72`python setup.py coverage` 73 74# Build status 75 76[![Build Status](https://secure.travis-ci.org/racker/rackspace-monitoring.png)](http://travis-ci.org/racker/rackspace-monitoring) 77 78# Issues, Feedback 79 80Please use Github issue tracker or send an email to `monitoring@rackspace.com`. 81