https://github.com/silverbackhq/pyumetric
🔰 A Python Package to unify time series data sources and third party monitoring services.
https://github.com/silverbackhq/pyumetric
newrelic python python-library silverback silverbackhq statuspage time-series
Last synced: 10 months ago
JSON representation
🔰 A Python Package to unify time series data sources and third party monitoring services.
- Host: GitHub
- URL: https://github.com/silverbackhq/pyumetric
- Owner: silverbackhq
- License: mit
- Created: 2019-01-23T22:01:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-07T11:12:27.000Z (almost 7 years ago)
- Last Synced: 2025-08-01T03:50:42.368Z (10 months ago)
- Topics: newrelic, python, python-library, silverback, silverbackhq, statuspage, time-series
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
PyuMetric
=========
A Python Package to unify time series data sources and third party monitoring services.
[](https://travis-ci.org/silverbackhq/pyumetric)
[](https://badge.fury.io/py/pyumetric)
[](https://coveralls.io/github/silverbackhq/pyumetric?branch=master)
Installation
------------
To install PyuMetric run this command:
```
pip3 install pyumetric
```
Usage
-----
After installing the library, Read the following usage criteria:
```python
from pyumetric import Datetime_Utils
from pyumetric import NewRelic_Provider
new_relic = NewRelic_Provider("api_key_here")
# Get apps list
new_relic.get_apps()
# Get app info (12345 is the app id)
new_relic.get_app(12345)
# Get all metric list
new_relic.get_metrics(12345)
# Get Metrics list with a filter (Apdex)
new_relic.get_metrics(12345, "Apdex")
# Get Metric Values from 14 days till now
new_relic.get_metric(
244202213,
["WebTransaction"],
["average_response_time"],
Datetime_Utils("UTC", -14).iso(),
Datetime_Utils("UTC").iso(),
False
)
```
Misc
====
Changelog
---------
Version 0.0.4:
```
Update Response.
Fix Exceptions.
Fix Text Cases.
```
Version 0.0.3:
```
Add Datetime Util Module.
```
Version 0.0.2:
```
Initial Release.
```
Acknowledgements
----------------
© 2019, Silverback. Released under [MIT License](https://opensource.org/licenses/mit-license.php).
**PyuMetric** is authored and maintained by [@silverbackhq](http://github.com/silverbackhq).