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.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.3.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for pyumetric-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 980420262f7fd882c10389bf46181970e41e7a110f056ae1d3a6eb46fd7047d7 |
|
MD5 | eed712e90695c041675c686af1dc5592 |
|
BLAKE2b-256 | a79a34f9c6d4754e8c85ca064cb8889e72675e7a2909d0199bfdefb5a5e367f8 |