logging

package
v0.0.0-...-a8a6208 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_cloud_identitytoolkit_logging_request_log_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RequestLog

type RequestLog struct {

	// The name of the service method or operation.
	// For API calls, this should be the name of the API method.
	// For example,
	//
	//     "google.datastore.v1.Datastore.RunQuery"
	//     "google.logging.v1.LoggingService.DeleteLog"
	MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	// The status of the overall operation.
	Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// Metadata about the operation.
	RequestMetadata *RequestMetadata `protobuf:"bytes,3,opt,name=request_metadata,json=requestMetadata,proto3" json:"request_metadata,omitempty"`
	// 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.
	Request *structpb.Struct `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"`
	// 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.
	Response *structpb.Struct `protobuf:"bytes,5,opt,name=response,proto3" json:"response,omitempty"`
	// The number of items returned from a List or Query API method,
	// if applicable.
	NumResponseItems int64 `protobuf:"varint,6,opt,name=num_response_items,json=numResponseItems,proto3" json:"num_response_items,omitempty"`
	// Other service-specific data about the request, response, and other
	// information associated with the current event.
	Metadata *structpb.Struct `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Log of a request to Identitytoolkit. This proto is modeled after google.cloud.audit.AuditLog so that consumers can easily query for requests regardless of whether those requests were logged via Cloud Audit Logging or Identitytoolkit request logging.

func (*RequestLog) Descriptor deprecated

func (*RequestLog) Descriptor() ([]byte, []int)

Deprecated: Use RequestLog.ProtoReflect.Descriptor instead.

func (*RequestLog) GetMetadata

func (x *RequestLog) GetMetadata() *structpb.Struct

func (*RequestLog) GetMethodName

func (x *RequestLog) GetMethodName() string

func (*RequestLog) GetNumResponseItems

func (x *RequestLog) GetNumResponseItems() int64

func (*RequestLog) GetRequest

func (x *RequestLog) GetRequest() *structpb.Struct

func (*RequestLog) GetRequestMetadata

func (x *RequestLog) GetRequestMetadata() *RequestMetadata

func (*RequestLog) GetResponse

func (x *RequestLog) GetResponse() *structpb.Struct

func (*RequestLog) GetStatus

func (x *RequestLog) GetStatus() *status.Status

func (*RequestLog) ProtoMessage

func (*RequestLog) ProtoMessage()

func (*RequestLog) ProtoReflect

func (x *RequestLog) ProtoReflect() protoreflect.Message

func (*RequestLog) Reset

func (x *RequestLog) Reset()

func (*RequestLog) String

func (x *RequestLog) String() string

type RequestMetadata

type RequestMetadata struct {

	// The IP address of the caller.
	CallerIp string `protobuf:"bytes,1,opt,name=caller_ip,json=callerIp,proto3" json:"caller_ip,omitempty"`
	// The user agent of the caller.
	// This information is not authenticated and should be treated
	// accordingly.
	//
	// For example:
	//
	// +   `google-api-python-client/1.4.0`:
	//     The request was made by the Google API client for Python.
	// +   `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
	//     The request was made by the Google Cloud SDK CLI (gcloud).
	// +   `AppEngine-Google; (+http://code.google.com/appengine; appid:
	//      s~my-project`:
	//     The request was made from the `my-project` App Engine app.
	// NOLINT
	CallerSuppliedUserAgent string `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

Metadata about the request.

func (*RequestMetadata) Descriptor deprecated

func (*RequestMetadata) Descriptor() ([]byte, []int)

Deprecated: Use RequestMetadata.ProtoReflect.Descriptor instead.

func (*RequestMetadata) GetCallerIp

func (x *RequestMetadata) GetCallerIp() string

func (*RequestMetadata) GetCallerSuppliedUserAgent

func (x *RequestMetadata) GetCallerSuppliedUserAgent() string

func (*RequestMetadata) ProtoMessage

func (*RequestMetadata) ProtoMessage()

func (*RequestMetadata) ProtoReflect

func (x *RequestMetadata) ProtoReflect() protoreflect.Message

func (*RequestMetadata) Reset

func (x *RequestMetadata) Reset()

func (*RequestMetadata) String

func (x *RequestMetadata) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL