public sealed class AuditLog : IMessage<AuditLog>, IEquatable<AuditLog>, IDeepCloneable<AuditLog>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Audit API class AuditLog.
Common audit log format for Google Cloud Platform API operations.
Namespace
Google.Cloud.AuditAssembly
Google.Cloud.Audit.dll
Constructors
AuditLog()
public AuditLog()
AuditLog(AuditLog)
public AuditLog(AuditLog other)
Parameter | |
---|---|
Name | Description |
other | AuditLog |
Properties
AuthenticationInfo
public AuthenticationInfo AuthenticationInfo { get; set; }
Authentication information.
Property Value | |
---|---|
Type | Description |
AuthenticationInfo |
AuthorizationInfo
public RepeatedField<AuthorizationInfo> AuthorizationInfo { get; }
Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple.
Property Value | |
---|---|
Type | Description |
RepeatedFieldAuthorizationInfo |
Metadata
public Struct Metadata { get; set; }
Other service-specific data about the request, response, and other information associated with the current audited event.
Property Value | |
---|---|
Type | Description |
Struct |
MethodName
public string MethodName { get; set; }
The name of the service method or operation. For API calls, this should be the name of the API method. For example,
"google.cloud.bigquery.v2.TableService.InsertTable"
"google.logging.v2.ConfigServiceV2.CreateSink"
Property Value | |
---|---|
Type | Description |
string |
NumResponseItems
public long NumResponseItems { get; set; }
The number of items returned from a List or Query API method, if applicable.
Property Value | |
---|---|
Type | Description |
long |
PolicyViolationInfo
public PolicyViolationInfo PolicyViolationInfo { get; set; }
Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.
Property Value | |
---|---|
Type | Description |
PolicyViolationInfo |
Request
public Struct Request { get; set; }
The operation request. This may not include all request parameters,
such as those that are too large, privacy-sensitive, or duplicated
elsewhere in the log record.
It should never include user-generated data, such as file contents.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
Property Value | |
---|---|
Type | Description |
Struct |
RequestMetadata
public RequestMetadata RequestMetadata { get; set; }
Metadata about the operation.
Property Value | |
---|---|
Type | Description |
RequestMetadata |
ResourceLocation
public ResourceLocation ResourceLocation { get; set; }
The resource location information.
Property Value | |
---|---|
Type | Description |
ResourceLocation |
ResourceName
public string ResourceName { get; set; }
The resource or collection that is the target of the operation. The name is a scheme-less URI, not including the API service name. For example:
"projects/PROJECT_ID/zones/us-central1-a/instances"
"projects/PROJECT_ID/datasets/DATASET_ID"
Property Value | |
---|---|
Type | Description |
string |
ResourceOriginalState
public Struct ResourceOriginalState { get; set; }
The resource's original state before mutation. Present only for
operations which have successfully modified the targeted resource(s).
In general, this field should contain all changed fields, except those
that are already been included in request
, response
, metadata
or
service_data
fields.
When the JSON object represented here has a proto equivalent,
the proto name will be indicated in the @type
property.
Property Value | |
---|---|
Type | Description |
Struct |
Response
public Struct Response { get; set; }
The operation response. This may not include all response elements,
such as those that are too large, privacy-sensitive, or duplicated
elsewhere in the log record.
It should never include user-generated data, such as file contents.
When the JSON object represented here has a proto equivalent, the proto
name will be indicated in the @type
property.
Property Value | |
---|---|
Type | Description |
Struct |
ServiceData
[Obsolete]
public Any ServiceData { get; set; }
Deprecated. Use the metadata
field instead.
Other service-specific data about the request, response, and other
activities.
Property Value | |
---|---|
Type | Description |
Any |
ServiceName
public string ServiceName { get; set; }
The name of the API service performing the operation. For example,
"compute.googleapis.com"
.
Property Value | |
---|---|
Type | Description |
string |
Status
public Status Status { get; set; }
The status of the overall operation.
Property Value | |
---|---|
Type | Description |
Status |