• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

demo/web/templates/H30-Dec-2014-

rackspace_monitoring/H30-Dec-2014-1,6291,156

test/H30-Dec-2014-2,0501,780

CHANGES.mdH A D30-Dec-20143.4 KiB12373

LICENSEH A D29-Dec-201411.1 KiB203169

NOTICEH A D29-Dec-2014252 96

PKG-INFOH A D30-Dec-20141,016 2524

README.mdH A D29-Dec-20141.8 KiB8150

setup.pyH A D03-May-20226.1 KiB207157

tox.iniH A D29-Dec-2014176 1310

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