Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_appengine_logging_v1_request_log_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LogLine

type LogLine struct {

	// Approximate time when this log entry was made.
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// Severity of this log entry.
	Severity _type.LogSeverity `protobuf:"varint,2,opt,name=severity,proto3,enum=google.logging.type.LogSeverity" json:"severity,omitempty"`
	// App-provided log message.
	LogMessage string `protobuf:"bytes,3,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"`
	// Where in the source code this log message was written.
	SourceLocation *SourceLocation `protobuf:"bytes,4,opt,name=source_location,json=sourceLocation,proto3" json:"source_location,omitempty"`
	// contains filtered or unexported fields
}

Application log line emitted while processing a request.

func (*LogLine) Descriptor

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

Deprecated: Use LogLine.ProtoReflect.Descriptor instead.

func (*LogLine) GetLogMessage

func (x *LogLine) GetLogMessage() string

func (*LogLine) GetSeverity

func (x *LogLine) GetSeverity() _type.LogSeverity

func (*LogLine) GetSourceLocation

func (x *LogLine) GetSourceLocation() *SourceLocation

func (*LogLine) GetTime

func (x *LogLine) GetTime() *timestamppb.Timestamp

func (*LogLine) ProtoMessage

func (*LogLine) ProtoMessage()

func (*LogLine) ProtoReflect

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

func (*LogLine) Reset

func (x *LogLine) Reset()

func (*LogLine) String

func (x *LogLine) String() string

type RequestLog

type RequestLog struct {

	// Application that handled this request.
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	// Module of the application that handled this request.
	ModuleId string `protobuf:"bytes,37,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
	// Version of the application that handled this request.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// Globally unique identifier for a request, which is based on the request
	// start time.  Request IDs for requests which started later will compare
	// greater as strings than those for requests which started earlier.
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Origin IP address.
	Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
	// Time when the request started.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Time when the request finished.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Latency of the request.
	Latency *durationpb.Duration `protobuf:"bytes,8,opt,name=latency,proto3" json:"latency,omitempty"`
	// Number of CPU megacycles used to process request.
	MegaCycles int64 `protobuf:"varint,9,opt,name=mega_cycles,json=megaCycles,proto3" json:"mega_cycles,omitempty"`
	// Request method. Example: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`, `"DELETE"`.
	Method string `protobuf:"bytes,10,opt,name=method,proto3" json:"method,omitempty"`
	// Contains the path and query portion of the URL that was requested. For
	// example, if the URL was "http://example.com/app?name=val", the resource
	// would be "/app?name=val".  The fragment identifier, which is identified by
	// the `#` character, is not included.
	Resource string `protobuf:"bytes,11,opt,name=resource,proto3" json:"resource,omitempty"`
	// HTTP version of request. Example: `"HTTP/1.1"`.
	HttpVersion string `protobuf:"bytes,12,opt,name=http_version,json=httpVersion,proto3" json:"http_version,omitempty"`
	// HTTP response status code. Example: 200, 404.
	Status int32 `protobuf:"varint,13,opt,name=status,proto3" json:"status,omitempty"`
	// Size in bytes sent back to client by request.
	ResponseSize int64 `protobuf:"varint,14,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"`
	// Referrer URL of request.
	Referrer string `protobuf:"bytes,15,opt,name=referrer,proto3" json:"referrer,omitempty"`
	// User agent that made the request.
	UserAgent string `protobuf:"bytes,16,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// The logged-in user who made the request.
	//
	// Most likely, this is the part of the user's email before the `@` sign.  The
	// field value is the same for different requests from the same user, but
	// different users can have similar names.  This information is also
	// available to the application via the App Engine Users API.
	//
	// This field will be populated starting with App Engine 1.9.21.
	Nickname string `protobuf:"bytes,40,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// File or class that handled the request.
	UrlMapEntry string `protobuf:"bytes,17,opt,name=url_map_entry,json=urlMapEntry,proto3" json:"url_map_entry,omitempty"`
	// Internet host and port number of the resource being requested.
	Host string `protobuf:"bytes,20,opt,name=host,proto3" json:"host,omitempty"`
	// An indication of the relative cost of serving this request.
	Cost float64 `protobuf:"fixed64,21,opt,name=cost,proto3" json:"cost,omitempty"`
	// Queue name of the request, in the case of an offline request.
	TaskQueueName string `protobuf:"bytes,22,opt,name=task_queue_name,json=taskQueueName,proto3" json:"task_queue_name,omitempty"`
	// Task name of the request, in the case of an offline request.
	TaskName string `protobuf:"bytes,23,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"`
	// Whether this was a loading request for the instance.
	WasLoadingRequest bool `protobuf:"varint,24,opt,name=was_loading_request,json=wasLoadingRequest,proto3" json:"was_loading_request,omitempty"`
	// Time this request spent in the pending request queue.
	PendingTime *durationpb.Duration `protobuf:"bytes,25,opt,name=pending_time,json=pendingTime,proto3" json:"pending_time,omitempty"`
	// If the instance processing this request belongs to a manually scaled
	// module, then this is the 0-based index of the instance. Otherwise, this
	// value is -1.
	InstanceIndex int32 `protobuf:"varint,26,opt,name=instance_index,json=instanceIndex,proto3" json:"instance_index,omitempty"`
	// Whether this request is finished or active.
	Finished bool `protobuf:"varint,27,opt,name=finished,proto3" json:"finished,omitempty"`
	// Whether this is the first `RequestLog` entry for this request.  If an
	// active request has several `RequestLog` entries written to Stackdriver
	// Logging, then this field will be set for one of them.
	First bool `protobuf:"varint,42,opt,name=first,proto3" json:"first,omitempty"`
	// An identifier for the instance that handled the request.
	InstanceId string `protobuf:"bytes,28,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	// A list of log lines emitted by the application while serving this request.
	Line []*LogLine `protobuf:"bytes,29,rep,name=line,proto3" json:"line,omitempty"`
	// App Engine release version.
	AppEngineRelease string `protobuf:"bytes,38,opt,name=app_engine_release,json=appEngineRelease,proto3" json:"app_engine_release,omitempty"`
	// Stackdriver Trace identifier for this request.
	TraceId string `protobuf:"bytes,39,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// If true, the value in the 'trace_id' field was sampled for storage in a
	// trace backend.
	TraceSampled bool `protobuf:"varint,43,opt,name=trace_sampled,json=traceSampled,proto3" json:"trace_sampled,omitempty"`
	// Source code for the application that handled this request. There can be
	// more than one source reference per deployed application if source code is
	// distributed among multiple repositories.
	SourceReference []*SourceReference `protobuf:"bytes,41,rep,name=source_reference,json=sourceReference,proto3" json:"source_reference,omitempty"`
	// contains filtered or unexported fields
}

Complete log information about a single HTTP request to an App Engine application.

func (*RequestLog) Descriptor

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

Deprecated: Use RequestLog.ProtoReflect.Descriptor instead.

func (*RequestLog) GetAppEngineRelease

func (x *RequestLog) GetAppEngineRelease() string

func (*RequestLog) GetAppId

func (x *RequestLog) GetAppId() string

func (*RequestLog) GetCost

func (x *RequestLog) GetCost() float64

func (*RequestLog) GetEndTime

func (x *RequestLog) GetEndTime() *timestamppb.Timestamp

func (*RequestLog) GetFinished

func (x *RequestLog) GetFinished() bool

func (*RequestLog) GetFirst

func (x *RequestLog) GetFirst() bool

func (*RequestLog) GetHost

func (x *RequestLog) GetHost() string

func (*RequestLog) GetHttpVersion

func (x *RequestLog) GetHttpVersion() string

func (*RequestLog) GetInstanceId

func (x *RequestLog) GetInstanceId() string

func (*RequestLog) GetInstanceIndex

func (x *RequestLog) GetInstanceIndex() int32

func (*RequestLog) GetIp

func (x *RequestLog) GetIp() string

func (*RequestLog) GetLatency

func (x *RequestLog) GetLatency() *durationpb.Duration

func (*RequestLog) GetLine

func (x *RequestLog) GetLine() []*LogLine

func (*RequestLog) GetMegaCycles

func (x *RequestLog) GetMegaCycles() int64

func (*RequestLog) GetMethod

func (x *RequestLog) GetMethod() string

func (*RequestLog) GetModuleId

func (x *RequestLog) GetModuleId() string

func (*RequestLog) GetNickname

func (x *RequestLog) GetNickname() string

func (*RequestLog) GetPendingTime

func (x *RequestLog) GetPendingTime() *durationpb.Duration

func (*RequestLog) GetReferrer

func (x *RequestLog) GetReferrer() string

func (*RequestLog) GetRequestId

func (x *RequestLog) GetRequestId() string

func (*RequestLog) GetResource

func (x *RequestLog) GetResource() string

func (*RequestLog) GetResponseSize

func (x *RequestLog) GetResponseSize() int64

func (*RequestLog) GetSourceReference

func (x *RequestLog) GetSourceReference() []*SourceReference

func (*RequestLog) GetStartTime

func (x *RequestLog) GetStartTime() *timestamppb.Timestamp

func (*RequestLog) GetStatus

func (x *RequestLog) GetStatus() int32

func (*RequestLog) GetTaskName

func (x *RequestLog) GetTaskName() string

func (*RequestLog) GetTaskQueueName

func (x *RequestLog) GetTaskQueueName() string

func (*RequestLog) GetTraceId

func (x *RequestLog) GetTraceId() string

func (*RequestLog) GetTraceSampled

func (x *RequestLog) GetTraceSampled() bool

func (*RequestLog) GetUrlMapEntry

func (x *RequestLog) GetUrlMapEntry() string

func (*RequestLog) GetUserAgent

func (x *RequestLog) GetUserAgent() string

func (*RequestLog) GetVersionId

func (x *RequestLog) GetVersionId() string

func (*RequestLog) GetWasLoadingRequest

func (x *RequestLog) GetWasLoadingRequest() bool

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 SourceLocation

type SourceLocation struct {

	// Source file name. Depending on the runtime environment, this might be a
	// simple name or a fully-qualified name.
	File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	// Line within the source file.
	Line int64 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	// Human-readable name of the function or method being invoked, with optional
	// context such as the class or package name. This information is used in
	// contexts such as the logs viewer, where a file and line number are less
	// meaningful. The format can vary by language. For example:
	// `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
	// (Python).
	FunctionName string `protobuf:"bytes,3,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
	// contains filtered or unexported fields
}

Specifies a location in a source code file.

func (*SourceLocation) Descriptor

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

Deprecated: Use SourceLocation.ProtoReflect.Descriptor instead.

func (*SourceLocation) GetFile

func (x *SourceLocation) GetFile() string

func (*SourceLocation) GetFunctionName

func (x *SourceLocation) GetFunctionName() string

func (*SourceLocation) GetLine

func (x *SourceLocation) GetLine() int64

func (*SourceLocation) ProtoMessage

func (*SourceLocation) ProtoMessage()

func (*SourceLocation) ProtoReflect

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

func (*SourceLocation) Reset

func (x *SourceLocation) Reset()

func (*SourceLocation) String

func (x *SourceLocation) String() string

type SourceReference

type SourceReference struct {

	// Optional. A URI string identifying the repository.
	// Example: "https://github.com/GoogleCloudPlatform/kubernetes.git"
	Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	// The canonical and persistent identifier of the deployed revision.
	// Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
	RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
	// contains filtered or unexported fields
}

A reference to a particular snapshot of the source tree used to build and deploy an application.

func (*SourceReference) Descriptor

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

Deprecated: Use SourceReference.ProtoReflect.Descriptor instead.

func (*SourceReference) GetRepository

func (x *SourceReference) GetRepository() string

func (*SourceReference) GetRevisionId

func (x *SourceReference) GetRevisionId() string

func (*SourceReference) ProtoMessage

func (*SourceReference) ProtoMessage()

func (*SourceReference) ProtoReflect

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

func (*SourceReference) Reset

func (x *SourceReference) Reset()

func (*SourceReference) String

func (x *SourceReference) String() string