dashboard-exporter
A Python client to export a New Relic dashboard PDF or image programmatically.
Installation
This is available on the Python Package Index (PyPI). You can install using pip.
virtualenv env
source env/bin/activate
pip install nrde
To install the development version, run:
pip install https://github.com/AnthonyBloomer/dashboard-exporter/archive/dev.zip
Usage
The first step is export your Personal API Key as an environment variable.
export NEW_RELIC_PERSONAL_API_KEY = "YOUR_API_KEY"
If you have an EU based account, you will also need to export the NEW_RELIC_REGION environment variable:
export NEW_RELIC_REGION = "EU"
Then pass the GUID of a given Dashboard to the exporter function to download a snapshot of your dashboard. You can get the GUID by pressing the info button in your dashboard.
import os
import time
from dashboard_exporter import exporter
import mimetypes
output = exporter(guid="The New Relic Dashboard GUID", file_type="PDF",)
content_type = output.headers["content-type"]
extension = mimetypes.guess_extension(content_type)
output_directory = os.getcwd()
filename = int(time.time())
of = "%s/%s%s" % (output_directory, filename, extension)
with open(of, "wb") as f:
f.write(output.content)
f.close()
Metadata
Release files for nrde 0.2.0
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 |
|---|---|---|---|---|
| nrde-0.2.0.tar.gz | 3.4 kB | Without provenance | Details for nrde-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nrde-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for nrde-0.2.0-py2.py3-none-any.whl |
Total release size: 6.1 kB
Release files / nrde-0.2.0.tar.gz
| Download URL | nrde-0.2.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ef1cae305dddb17944cf56fb101eaf0fcc05f6e5b593e2e515bac0e42270712
|
|
BLAKE2b-256 checksum How to use checksums |
ee8fbd6e9d427460ff2a482f538af27e1a247c3d31f30f3e7654698b01866800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
|
Release files / nrde-0.2.0-py2.py3-none-any.whl
| Download URL | nrde-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b2a6f2b43b62eb347465ba515cbaa973d48eae5da37e3a3b465066ed44ff8991
|
|
BLAKE2b-256 checksum How to use checksums |
4790b2aaa80daa7e1ad8cac1b278a593b243f8a2d6fd932ee4192b149a46ef8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7
|
Security for nrde 0.2.0
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.