python-traceview

TraceView API Client


Keywords
traceview, api, client, development, performance
License
MIT
Install
pip install python-traceview==0.7.0

Documentation

python-traceview

https://badge.fury.io/py/python-traceview.png https://travis-ci.org/danriti/python-traceview.png?branch=master

Library for providing access to the TraceView API v2.

Please see the TraceView API Reference for more information.

Installation

To install python-traceview, simply:

$ pip install python-traceview

Usage

>>> import traceview
>>> tv = traceview.TraceView('API KEY HERE')
>>> tv.apps()
[u'Default', u'pyramid_web_app']
>>> tv.server.latency_summary(app='Default')
{u'count': 2746.0, u'average': 213911.87181354698, u'latest': 35209.87654320987}
>>> tv.error_rates('Default')
{u'fields': u'timestamp,error_rate', u'items': [[1399082880.0, 0], [1399082910.0, 0], ...]}

Documentation

Documentation available at http://python-traceview.readthedocs.org/.