nightharbor-bigquery-reporter
v0.2.1
Published
nightharbor reporter for gcp bigquery
Downloads
3
Maintainers
Readme
nightharbor-bigquery-reporter
A nightharbor reporter for GCP BigQuery.
$ npm install --save nightharbor @google-cloud/bigquery nightharbor-bigquery-reporter
import BigQuery from "@google-cloud/bigquery";
import {BigQueryReporter} from "nightharbor/reporter/gcp";
export default {
...,
reporters: [
new BigQueryReporter(new BigQuery({ projectId: "gcp project id" }), "dataset name", "table name")
]
...
}
Please don't forget to set a path to your service account credential file of GCP to GOOGLE_APPLICAITON_CREDENTIALS
.
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json