ContentPolicyActionLog

Message used when saving content policy logs to external storage (such as BigQuery or Cloud Storage).

JSON representation
{
  "contentPolicy": string,
  "logTime": string,
  "dataSourceType": {
    object (DataSourceType)
  },
  "containerId": string,
  "documentId": string,
  "matchingInfoTypes": [
    {
      object (InfoTypeMatch)
    }
  ],
  "correlationId": string,

  // Union field action_taken can be only one of the following:
  "returnedVerdict": enum (ContentPolicyVerdict)
  // End of list of possible types for union field action_taken.

  // Union field trigger can be only one of the following:
  "policyRule": {
    object (PolicyRule)
  },
  "fallbackAction": enum (FallbackActionType)
  // End of list of possible types for union field trigger.
}
Fields
contentPolicy

string

The resource name of the content policy that produced this log.

logTime

string (Timestamp format)

The timestamp of when the action was taken.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

dataSourceType

object (DataSourceType)

The client-supplied source of the data that is being processed. This allows for aggregating logs by source, for example, "geminienterprise/slack".

containerId

string

The client-supplied identifier for a container from which content was scanned, also to aid in aggregation, for example, a specific folder or chat room.

documentId

string

The client-supplied identifier for the document that was scanned. This allows tracking down the exact source that produced this log, for example, a message id.

matchingInfoTypes[]

object (InfoTypeMatch)

Unordered set of matching infoTypes found in the content.

correlationId

string

Optional. A correlation ID to associate this log with other logs or systems.

Union field action_taken. The resulting action from evaluating the content policy. action_taken can be only one of the following:
returnedVerdict

enum (ContentPolicyVerdict)

The verdict that was returned.

Union field trigger. Trigger for the action. trigger can be only one of the following:
policyRule

object (PolicyRule)

A user-defined rule in the content policy was matched.

fallbackAction

enum (FallbackActionType)

A fallback action was taken.

InfoTypeMatch

Information about a matching infoType found in the content.

JSON representation
{
  "infoTypeName": string
}
Fields
infoTypeName

string