Skip to content
A Python Package to unify time series data sources and third party monitoring services.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
pyumetric
tests
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
Makefile
README.md
flake8.ini
pycodestyle
setup.py

README.md

PyuMetric

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

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 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.

You can’t perform that action at this time.