Skip to main content

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.

Release files for pyumetric 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyumetric 0.0.4
File Size Uploaded
pyumetric-0.0.4.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyumetric 0.0.4
File Interpreter ABI Platform
pyumetric-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size:8.2 kB

Release files / pyumetric-0.0.4.tar.gz

Download URL pyumetric-0.0.4.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
06055054a2bbafdf700a53a5f88023901c19535c6dae9dd5fe805ec6599838c4
BLAKE2b-256 checksum
How to use checksums
5a6820f756382b078efe3d94c60b66b44c2e9f91cd42665b462a2faae1e01d20
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pyumetric-0.0.4-py3-none-any.whl

Download URL pyumetric-0.0.4-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f26209de18706f78da9e0420a881da49617350ca378028a4a048694e67b909a8
BLAKE2b-256 checksum
How to use checksums
a8a464e2531b347d7dca327d1a94a05ee599a978fc2a3aa995a764317dd67ea4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page