Skip to content

silverbackhq/pyumetric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyuMetric

A Python Package to unify time series data sources.

Build Status PyPI version

Installation

To install PyuMetric run this command:

pip3 install pyumetric

Usage

After installing the library, Read the following usage criteria:

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 2019-02-01T01:00:00+00:00 to 2019-02-14T11:03:20+00:00
new_relic.get_metric(244202213, ["WebTransaction"], ["average_response_time"], "2019-02-01T01:00:00+00:00", "2019-02-14T11:03:20+00:00", False)

Misc

Changelog

Version 0.0.1:

Initial Release.

Acknowledgements

© 2019, Silverback. Released under MIT License.

PyuMetric is authored and maintained by @silverbackhq.

About

🔰 A Python Package to unify time series data sources and third party monitoring services.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published