A Python Package to unify time series data sources and third party monitoring services.
Project description
PyuMetric
A Python Package to unify time series data sources and third party monitoring services.
Installation
To install PyuMetric run this command:
pip3 install pyumetric
Usage
After installing the library, Read the following usage criteria:
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.
PyuMetric is authored and maintained by @silverbackhq.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyumetric-0.0.4.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file pyumetric-0.0.4.tar.gz
.
File metadata
- Download URL: pyumetric-0.0.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06055054a2bbafdf700a53a5f88023901c19535c6dae9dd5fe805ec6599838c4 |
|
MD5 | a51b288efa00e2e3c7b0989d95ee523e |
|
BLAKE2b-256 | 5a6820f756382b078efe3d94c60b66b44c2e9f91cd42665b462a2faae1e01d20 |
File details
Details for the file pyumetric-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pyumetric-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f26209de18706f78da9e0420a881da49617350ca378028a4a048694e67b909a8 |
|
MD5 | 6566c2835d4389638841b3cbee3e90a1 |
|
BLAKE2b-256 | a8a464e2531b347d7dca327d1a94a05ee599a978fc2a3aa995a764317dd67ea4 |