Publish to BigQuery

Publish metrics to Google BigQuery for charting and visualization.

Overview

The Publish to BigQuery node allows for publishing metrics to Google BigQuery for charting and visualization. This integration is useful for applications requiring detailed data analysis and reporting, enhancing the capabilities of data-driven decision-making processes.

Custom Metrics

Custom Function nodes can publish custom metrics and metadata for specific objects by storing them under its node metadata. Refer to Custom Function for how to do so.

Inputs & Outputs

  • Input media: Raw Video.
  • Output media: Raw Video.
  • Output metadata: None.

Properties

PropertyDescriptionTypeDefaultRequired
bigquery_project_idThe ID of the BigQuery project that the dataset belongs to.stringnullYes
bigquery_dataset_idThe ID of the BigQuery dataset to publish to.stringnullYes
bigquery_credentialsService account key in JSON format for the Google Cloud project with BigQuery Data Editor role.stringnullYes
node_ids_to_publishSelect a node to publish its metadata. Leave blank to publish all nodes.stringnullYes
triggerPublish node metadata only when this condition evaluates to truetrigger-conditionnullNo
objects_to_publishPublish object metadata depending on object's properties meeting the specified criteria. Options: Specified by node (node_related); Specified by metadata pattern (pattern_matched_objects); Specific types (type_matched_objects).enumnullNo
object_match_patternsPublish object metadata for objects specified by this pattern. Conditional on objects_to_publish being pattern_matched_objects. Format: comma-separated metadata paths or patterns.stringnullNo
object_typesex. car,person,car.red. Object types to publish. Leave blank to process all. Conditional on objects_to_publish being type_matched_objects.model-labelsnullNo
event_typeMetrics event type to publish. This can be used to filter or count specific events in the dashboard.stringnullNo
event_triggerLog a metrics event when this condition evaluates to true.trigger-conditionnullNo
metrics_tagTag published metrics with this tag to make it easier to filter them in the Dashboard.stringnullNo
objects_only_new_updatedIf true, only publish objects the first time they are seen else publish both new and updated objects.booltrueNo
object_track_lifespanNumber of frames for which an object is tracked to prevent duplicate reporting when the new/updated option is set. Unit: frames.number600No
intervalMin. time between consecutive publish actions. Unit: seconds.float1No
use_stream_clockUse timestamps from stream?boolfalseNo
debugPrint each outbound BigQuery row payload and destination table before publishing.boolfalseNo

BigQuery Project & Dataset ID

This node will create tables within the specified BigQuery project and dataset. Specify their id's as shown in the image.

BigQuery Credentials

The bigquery_credentials field expects JSON format private key for a service account which has BigQuery Data Editor role for your BigQuery project and dataset.

You can create one as follows:

  1. Start at Google cloud console -> IAM & Admin -> Service Accounts. Create Service Account.
  1. Configure Service account with BigQuery Data Editor role.
  1. Generate a JSON private key for the service account
  1. Download and use the key as contents in the bigquery_credentials field.

Output Metadata

Node does not insert any output metadata; upstream metadata continues through the pipeline


Did this page help you?