Documentation ¶
Overview ¶
Package bigquery connects to the GCP BigQuery API and computes metrics suitable for blackbox-probing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Probe ¶
Probe executes queries against BQ and returns the resulting metrics. If no table is specified, Probe will execute a dummy query against BQ (such as 'SELECT 1'). Otherwise, table should specify an existing table in the format 'dataset.table'.
The service account cloudprober runs under should have sufficient permissions to read the table.
Types ¶
type QueryRunner ¶
The QueryRunner interface encapsulates the BigQuery API.
Query() runs the given query on BQ and returns the result and an error, if any.
Click to show internal directories.
Click to hide internal directories.