0.2.1 • Published 6 years ago

nightharbor-bigquery-reporter v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

nightharbor-bigquery-reporter

CircleCI sonarcloud badge Greenkeeper badge

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