New Relic API Parser
Getting Started
-
Prerequisites
- Python >= 3.6.x
- pip
-
Installation
$ pip install newrelic-api-parser -
Examples
- Calling the insights API
# import the class from NewRelicApiParser.Insights import Insights query_key = 'NRIQ-xxxxxxxxxxxxxxxxxxxx' # Call the api by passing the query key # pass the account ID and the query you want to execute Insights(query_key=query_key) .query(<account_id>, nrql='SELECT * from PageView')
Available Methods
- For REST APIs
| Class | Method | Params | Description |
|---|---|---|---|
| AlertsConditions | get_list | policy_id | return the list of alert conditions for the provided policy id |
| AlertsEvents | get_list | N.A. | return the list of alert events |
| AlertsPolicies | get_list | N.A. | return the list of policies for the alerts |
| AlertsViolation | get_list | N.A. | return the list of alert violations |
| Applications | get_list | N.A. | return the list of apm applications |
| Applications | show | app_id | returns the detail of an application based on the app id passed |
| Applications | delete | app_id | delete an apm app on new relic based on the app id passed |
| BrowserApplications | get_list | N.A. | return the list of browser applications |
| BrowserApplications | create | browser_application_name | returns the detail of a browser application based on the application name passed |
| Plugins | get_list | N.A. | return the list of plugins |
| Plugins | show | app_id | returns the detail of a plugin based on the app id passed |
- For Insights API
| Module | Method | Params | Description |
|---|---|---|---|
| Insights | query | account_id, nrql | execute the passed new relic query and return the data |
- For GraphQl API
| Module | Method | Params | Description |
|---|---|---|---|
| GraphQlApi | query | request_body | execute the passed new relic graph ql query and return the data |
Reference
- Please refer the official New Relic Documentation for more details on the endpoints
Note:
- The package is under development and will be prone to more frequent updates
Metadata
Release files for newrelic-api-parser 0.3.3
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 |
|---|---|---|---|---|
| newrelic-api-parser-0.3.3.tar.gz | 4.3 kB | Without provenance | Details for newrelic-api-parser-0.3.3.tar.gz |
Release files / newrelic-api-parser-0.3.3.tar.gz
| Download URL | newrelic-api-parser-0.3.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b0b17c6430a8ad6bf99b9723a245b8b0b5f71823a086d40e8a76adfb1d5572e
|
|
BLAKE2b-256 checksum How to use checksums |
62262da2712318dd1d71f99ac4bb8e4ccdfad289736ed5ff8c71c5bae667b944
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Security for newrelic-api-parser 0.3.3
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.