Specifies what kind of log the caller must write
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field type . Must be set type can be only one of the following: |
|
counter |
Counter options. |
dataAccess |
Data access options. |
cloudAudit |
Cloud audit options. |
CounterOptions
Increment a streamz counter with the specified metric and field names.
Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
Field names correspond to IAM request parameters and field values are their respective values.
Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/debug_access_count {iam_principal=[value of IAMContext.principal]}
JSON representation |
---|
{
"metric": string,
"field": string,
"customFields": [
{
object ( |
Fields | |
---|---|
metric |
The metric to update. |
field |
The field value to attribute. |
customFields[] |
Custom fields. |
CustomField
Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.
JSON representation |
---|
{ "name": string, "value": string } |
Fields | |
---|---|
name |
Name is the field name. |
value |
Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext. |
DataAccessOptions
Write a Data Access (Gin) log
JSON representation |
---|
{
"logMode": enum ( |
Fields | |
---|---|
logMode |
|
CloudAuditOptions
Write a Cloud Audit log
JSON representation |
---|
{ "logName": enum ( |
Fields | |
---|---|
logName |
The logName to populate in the Cloud Audit Record. |
authorizationLoggingOptions |
Information used by the Cloud Audit Logging pipeline. |