A plug-n-play package to start using new relic APIs for data gathering
Project description
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 NewRelic.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 |
---|---|---|---|
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 |
AlertsEvents | get_list | N.A. | return the list of alert events |
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 |
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for newrelic-api-parser-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b08cc9a7b55870044f0605b934a9d919af007dca838a8a5a2d216515772bf998 |
|
MD5 | f67f85d4c573d143013c43ac2c0541ee |
|
BLAKE2b-256 | 8df456b3ba427ecb74651a65a351b9f51eb5714402f877d54ff0c178cfe4c221 |