Compliance Engine dataset schema
Look up the compliance tables and views used to investigate results and build reporting queries.
This is a compact reference to the ce dataset. Use your organization's actual project and dataset names in queries. For objects whose full schemas are not described below, inspect the exported schema or view definition before choosing fields and joins.
Dataset Grain and Join Conventions
PolicyOutput has immutable rows identified by policyId, runTime, and object.id. Match policyId and runTime to execution metadata; matching the policy alone mixes runs.
Job rows describe a different level of detail from resource results. Check job multiplicity before joining: repeating run counts across resources or jobs can inflate aggregates. For a base-table example, see Find your first policy result.
PolicyOutput
Stores resource outcomes and evidence.
| Fields | BigQuery Type | Meaning |
|---|---|---|
policyId | STRING | Policy identifier |
runTime | TIMESTAMP | Evaluation time |
status | STRING | Resource outcome; see Policy statuses |
statusDate | TIMESTAMP | Last status change |
incompliantStartDate, incompliantEndDate | TIMESTAMP | Entry into and exit from incompliance |
currentStateMessage, currentStateReferences, remediationMessage | STRING | Explanation, evidence references, and corrective guidance |
conditionIndex | NUMERIC | Matching condition index |
conditionText | STRING | Condition pseudocode |
object | RECORD | Resource context |
object.id, object.name, object.caUuid, object.externalId | STRING | Resource identifiers and name |
object.typeName, object.typeApiName | STRING | Resource type labels and API names |
object.details | Repeated RECORD | Attributes: fieldName, fieldApiName, value (all STRING) |
object.master | RECORD | Parent context: id, name, externalId, typeName, typeApiName (all STRING) |
object.application | RECORD | applicationId, applicationUniqueName, applicationTierId, applicationTierUniqueName (all STRING) |
incompliantStartDate is null if the resource has never been incompliant. A null incompliantEndDate can mean either no previous incompliance or ongoing incompliance; interpret it with the other status fields.
PolicyOutputRelatedLists
Stores outcomes for related objects evaluated within a parent resource's logic. Inspect its exported fields and parent linkage before joining it to PolicyOutput; do not assume the parent result key uniquely identifies a related-object row.
PolicyRun
Describes a policy execution and summarizes resource outcomes.
| Fields | BigQuery Type | Meaning |
|---|---|---|
policyId, policyName, policyDescription | STRING | Policy identity and description |
runTime | TIMESTAMP | Execution time |
snapshotTime | TIMESTAMP | Input snapshot time |
objectType | STRING | Evaluated resource type API name |
completed | BOOLEAN | Whether execution completed successfully |
stats | RECORD | Resource outcome counts |
stats.compliant, stats.incompliant, stats.inapplicable, stats.undetermined, stats.disappeared | INTEGER | Counts by status |
masterType identifies the master object type; confirm its BigQuery type in your export. Completion describes execution success, not resource compliance.
PolicyRunJob
Describes BigQuery jobs used during policy evaluation. Use it for execution diagnostics and processing costs.
| Fields | BigQuery Type | Meaning |
|---|---|---|
policyId | STRING | Policy identifier |
runTime | TIMESTAMP | Associated run time |
jobId | STRING | BigQuery job identifier |
totalBytesProcessed, totalBytesBilled | INTEGER | Processing and billing volumes in bytes |
scriptCreationTime, scriptStartTime, scriptEndTime | TIMESTAMP | Script lifecycle times |
jobStatus | STRING | Job execution state |
policyYaml, policySql | STRING | Captured definition and executed SQL |
Use jobId to distinguish jobs when matching execution records by policyId and runTime.
Sections
Defines framework sections and their hierarchy, including controls. Confirm section identifiers and hierarchy fields in the export before traversing it.
SectionPolicies
Associates policies with framework sections. Mapping rows describe coverage relationships, not evaluation outcomes. Confirm the policy and section join columns in your export, and account for multiple mappings when aggregating results.
FrameworksWithMappedCePolicies
A reporting view listed in the dataset inventory. Inspect its SQL definition to establish its fields, row grain, and framework mapping behavior before using it for coverage reports.
CeFindingsTrend
A reporting view listed in the dataset inventory. Verify its history selection, run linkage, and retention against the exported definition before comparing evaluations over time.
CeFindings
A reporting view listed in the dataset inventory. Verify its result selection and run linkage before treating it as a current-state view. The view name alone does not establish its filters or row grain.