Wrapper for New Relic Insights API
Avaliable Methods
- get_data(account,query_api_key,query)
- returns result in JSON format
- insert_data(account,insert_api_key,data_df)
- return response status as a list
Sample Code
Get Request
from NRInsightsApi import get_data
r = get_data('2929995','JSJW_WKJSJ_192920_192820','SELECT average(duration) FROM PageView')
{'results': [{'average': None}], 'performanceStats': {'inspectedCount': 0, 'omittedCount': 0, 'matchCount': 0, 'wallClockTime': 1},
'metadata': {'eventTypes': ['PageView'], 'eventType': 'PageView', 'openEnded': True, 'beginTime': '2021-03-31T02:48:58Z', 'endTime': '2021-03-31T03:48:58Z', 'beginTimeMillis': 1617158938335, 'endTimeMillis': 1617162538335, 'rawSince': '60 MINUTES AGO', 'rawUntil': 'NOW', 'rawCompareWith': '', 'guid': '4ade46ba-5782-6d40-7627-1411ca37131f', 'routerGuid': '74da0adc-aa35-7d58-a977-667954ca56aa', 'messages': ['No events found -- do you have the correct event type and time range?'], 'info': ['No events found -- do you have the correct event type and time range?'], 'contents': [{'function': 'average', 'attribute': 'duration', 'simple': True}]}}
Metadata
Release files for NRInsightsApi 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| NRInsightsApi-0.0.2.tar.gz | 3.5 kB | Without provenance | Details for NRInsightsApi-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| NRInsightsApi-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for NRInsightsApi-0.0.2-py3-none-any.whl |
Total release size: 7.5 kB
Release files / NRInsightsApi-0.0.2.tar.gz
| Download URL | NRInsightsApi-0.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3381469250451b3ef564cb49b09f274573a4d278e2472aa3720021ff4760abe
|
|
BLAKE2b-256 checksum How to use checksums |
07dc66055f8e0d03a472948f17ab908ee4855baa6d41f9ae8acbdc9311485969
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|
Release files / NRInsightsApi-0.0.2-py3-none-any.whl
| Download URL | NRInsightsApi-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0b0abc613135899001917c86d5dbe1d755d3d2fcc8ab8026cd0d3b53bb4d082
|
|
BLAKE2b-256 checksum How to use checksums |
4fed4771180c4d6d0a5988c1af16854b98a3f5c0a04dd553657d2e8b8e5f9b96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|
Security for NRInsightsApi 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.