BigQuery

Create a BigQuery Source

Prepare credentials and permission in Google Cloud console

Certain credentials and permission are required for Validio to validate your data.

πŸ“˜

For detailed information about permissions in BigQuery, refer to Introduction to IAM.

Create a service account and assign roles

  1. Create a new service account for Validio in the project which contains the data you want to monitor. Alternatively, you can use an existing service account.
  2. Assign the following roles to the service account:
    1. BigQuery Data Viewer - We use this to read data and metadata.
    2. BigQuery Job User - We use this to query data.
    3. BigQuery Resource Viewer - We use this for various functionality and optimizations, for example, by reading query history.
  3. Ensure Cloud Resource Manager API is enabled on the project. For more information, refer to API Console Help.
  4. If you want to monitor more projects:
    1. Grant the Validio service account access to each project, by specifying the Service account ID In the project's IAM-settings.
    2. Repeat step 2 and 3 for each project.

Create the Source in Validio

Credential parameters

FieldRequiredDescriptionExample
Nameβœ…Identifier for the credentials. Used when accessing Sources.service_acount_product_staging
Service accountβœ…Upload the JSON file, or paste the content of the JSON file containing the service account key.
For details, refer to Create and delete service account keys.

Configuration parameters

FieldRequiredDescriptionExample
Nameβœ…Identifier for the Source. Used when setting up validators.East_coast_weather_forecast
Project idβœ…Name of the BigQuery project.weather-forecast
Datasetβœ…Name of the dataset that contains the table.east-coast
Tableβœ…Name of the table to read data from.train-data
Cron presetDetermines how often to query the bucket for new data based on a preset option.

Select custom to use your own cron expression.
Cron expressionβœ…Determines how often to query the table for new data based on cron expression.

Expression of cron presets are displayed here.

Used to enter your own cron expression.

Remove credentials and permission

If you want to remove credentials and permissions used for Validio, perform the following steps:

  1. If you created a separate Validio-project, remove it from BigQuery.
  2. Remove the service account used for Validio.

Note: Before you remove the service account, verify it is not used elsewhere.