Module: google/bigquery_utils

Classes

BigQueryEventStreamer

Methods

(inner) createBigQueryTableFromConfig(authClient, config, event_type, callback)

Helper function to create new BigQuery tables from BigQuery logging config files.

Parameters:
Name Type Description
authClient Object

fully authorized authentication client, either JWT, Oauth2 or Compute

config Object

JSON BigQuery config object following appropriate specs

event_type String

specific event type to create table for

callback function

callback

Source:

(inner) loadFullBigQueryConfig(pathopt, baseConfigPathopt)

Helper to get full BigQuery config for logging transport

Automatically joins in default HTTP logging config so there's no need to define redundantly in every repo.

Simply adds any keys found in child config to base config and returns joined objects, no fancy logic.

As such, any keys specified in child config WILL OVERRIDE base config values.

Parameters:
Name Type Attributes Default Description
path <optional>
'./bq_config.json'

if null, will default to './bq_config.json'

baseConfigPath <optional>
'/google/bq_config.json'

path to base config file in config repo. If null, will default to '/google/bq_config.json'

Source: