Skip to main content

PolicyRunJob Table

This table stores information about the BigQuery jobs that are executed as part of the policy evaluation process. It includes details such as the policy ID, run time, job ID, bytes processed, bytes billed, script creation/start/end times, job status, and the policy YAML and SQL.

Fields

FieldBQ TypeCA TypeDescription
policyIdSTRINGPolicy IDThe unique identifier of the policy.
runTimeTIMESTAMPThe date and time the policy run was executed.
jobIdSTRINGThe unique identifier of the BigQuery job.
totalBytesProcessedINTEGERThe total number of bytes processed by the BigQuery job.
totalBytesBilledINTEGERThe total number of bytes billed for the BigQuery job.
scriptCreationTimeTIMESTAMPThe date and time the BigQuery script was created.
scriptStartTimeTIMESTAMPThe date and time the BigQuery script started executing.
scriptEndTimeTIMESTAMPThe date and time the BigQuery script finished executing.
jobStatusSTRINGThe status of the BigQuery job (e.g., "DONE").
policyYamlSTRINGThe YAML definition of the policy.
policySqlSTRINGThe SQL code that was executed to evaluate the policy.

Data Source

This table is populated by the Compliance Engine's policy evaluation process.

Purpose

This table is used to:

  • Track the execution of BigQuery jobs for policy evaluations.
  • Monitor the performance and cost of policy evaluations.
  • Troubleshoot issues with policy evaluations.
  • Analyze the SQL and YAML code associated with policies.

Notes

  • The policySql and policyYaml fields provide valuable information for understanding and debugging policy logic.
  • The totalBytesProcessed and totalBytesBilled fields can be used to optimize policy performance and reduce BigQuery costs.