0.2.7 • Published 3 years ago
redash-snapshot v0.2.7
Redash.io query snapshots
Create query snapshots (PNG) with node for redash.
Installation
npm install redash-snapshotor
yarn add redash-snapshotUsage
import {querySnapshot} from 'redash-snapshot'
const snapshot = await querySnapshot({
token: 'my-user-token',
queryId: 'query-id',
visualizationId: 'visualization-id'
});Parameters
| name | default | type |
|---|---|---|
token | string | |
queryId | string | |
visualizationId | string | |
host | https://redash.io | string |
path | string | |
width | 800 | number |
height | 600 | number |
If path is defined, the png will be written to disk at given path.