Skip to main content

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.

FieldsBigQuery TypeMeaning
policyIdSTRINGPolicy identifier
runTimeTIMESTAMPEvaluation time
statusSTRINGResource outcome; see Policy statuses
statusDateTIMESTAMPLast status change
incompliantStartDate, incompliantEndDateTIMESTAMPEntry into and exit from incompliance
currentStateMessage, currentStateReferences, remediationMessageSTRINGExplanation, evidence references, and corrective guidance
conditionIndexNUMERICMatching condition index
conditionTextSTRINGCondition pseudocode
objectRECORDResource context
object.id, object.name, object.caUuid, object.externalIdSTRINGResource identifiers and name
object.typeName, object.typeApiNameSTRINGResource type labels and API names
object.detailsRepeated RECORDAttributes: fieldName, fieldApiName, value (all STRING)
object.masterRECORDParent context: id, name, externalId, typeName, typeApiName (all STRING)
object.applicationRECORDapplicationId, 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.

FieldsBigQuery TypeMeaning
policyId, policyName, policyDescriptionSTRINGPolicy identity and description
runTimeTIMESTAMPExecution time
snapshotTimeTIMESTAMPInput snapshot time
objectTypeSTRINGEvaluated resource type API name
completedBOOLEANWhether execution completed successfully
statsRECORDResource outcome counts
stats.compliant, stats.incompliant, stats.inapplicable, stats.undetermined, stats.disappearedINTEGERCounts 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.

FieldsBigQuery TypeMeaning
policyIdSTRINGPolicy identifier
runTimeTIMESTAMPAssociated run time
jobIdSTRINGBigQuery job identifier
totalBytesProcessed, totalBytesBilledINTEGERProcessing and billing volumes in bytes
scriptCreationTime, scriptStartTime, scriptEndTimeTIMESTAMPScript lifecycle times
jobStatusSTRINGJob execution state
policyYaml, policySqlSTRINGCaptured 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.