Skip to main content

PolicyOutput Table

This table stores the results of policy evaluations performed by the Compliance Engine. It provides a comprehensive record of compliance statuses for various cloud resources across different cloud providers.

Rows are immutable and uniquely identified by 3 fields: policyId, runTime and objectId. policyId and runTime will match the corresponding columns in PolicyRun and PolicyRunJob tables.

Fields

FieldBQ TypeCA TypeDescription
policyIdSTRINGPolicy IDID of the policy
runTimeTIMESTAMPThe date and time the policy was evaluated.
objectIdSTRINGSalesforce IDID of the cloud resource that was evaluated by the policy.
masterIdSTRINGSalesforce IDID of the master object associated with the cloud resource. This is often the account or project the resource belongs to.
externalIdSTRINGExternal IDAn external identifier for the resource, if available.
statusSTRINGCompliance StatusThe compliance status of the policy
statusDateTIMESTAMPThe date and time the compliance status was last changed.
incompliantStartDateTIMESTAMPThe date and time the resource first became non-compliant. Present if the object ever been in INCOMPLIANT status, otherwise NULL
incompliantEndDateTIMESTAMPThe date and time the resource changed status from INCOMPLIANT to any other status, NULL if never entered IMCOMPLIANT or still INCOMPLIANT
objectDetailsSTRINGMultiline TextHuman-readable text containing the object's core attributes, e.g. name, region, identifiers, etc.
currentStateMessageSTRINGA message describing the current state of the resource with respect to the policy.
currentStateReferencesSTRINGMultiline TextReferences to specific properties of the resource that were used by the policy logic to determine the state.
remediationMessageSTRINGA message providing guidance on how to remediate the non-compliance.
conditionIndexNUMERICThe index of the condition in the policy logic that determined the compliance status.
conditionTextSTRINGThe pseudo-code of the condition in the policy logic that determined the compliance status.
objectRECORDA nested record containing more information about the cloud resource, including its type, details, and master object.
object.typeNameSTRINGThe type of the cloud resource (e.g., "Google BigQuery Table", "AWS EC2 Instance").
object.typeApiNameSTRINGType API NameThe API name of the cloud resource type
object.idSTRINGSalesforce IDSame as objectId
object.externalIdSTRINGExternal IDSame as externalId
object.detailsRECORD, REPEATEDA list of records containing the object's core attributes.
object.details[].fieldNameSTRINGThe display name of the field.
object.details[].fieldApiNameSTRINGField API NameThe API name of the field.
object.details[].valueSTRINGThe value of the field.
object.masterRECORDA record containing information about the master object associated with the cloud resource.
object.master.typeNameSTRINGThe type of the master object (e.g., "Google Project", "AWS Account").
object.master.typeApiNameSTRINGType API NameThe API name of the master object type
object.master.idSTRINGSalesforce IDSame as masterId
object.master.externalIdSTRINGExternal IDAn external identifier for the master object, if available.
object.master.nameSTRINGThe name of the master object.
object.applicationRECORDInformation about the application () and tier associated with the cloud resource.
object.application.applicationUniqueNameSTRINGThe unique name (CA10__CaApplication__c: CA10__uniqueName__c) of the application
object.application.applicationIdSTRINGSalesforce IDID of the related application
object.application.applicationTierUniqueNameSTRINGThe unique name (CA10__CaApplicationTier__c: CA10__uniqueName__c) of the application tier
object.application.applicationTierIdSTRINGSalesforce IDID of thr related application tier

Data Source

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

Purpose

This table is used to:

  • Track compliance status of cloud resources.
  • Identify non-compliant resources.
  • Provide remediation guidance.
  • Analyze compliance trends.
  • Generate compliance reports.

Notes

  • The objectDetails field contains a JSON string that can be parsed to extract specific properties of the cloud resource.
  • The currentStateReferences field provides references to specific properties or settings of the resource that are relevant to the policy.
  • The remediationMessage field provides guidance on how to remediate the non-compliance.