logging

package
v0.0.0-...-96659ae Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package logging is a generated protocol buffer package.

It is generated from these files:

google/appengine/logging/v1/request_log.proto

It has these top-level messages:

LogLine
SourceLocation
SourceReference
RequestLog

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLine

type LogLine struct {
	// Approximate time when this log entry was made.
	Time *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=time" json:"time,omitempty"`
	// Severity of this log entry.
	Severity google_logging_type.LogSeverity `protobuf:"varint,2,opt,name=severity,enum=google.logging.type.LogSeverity" json:"severity,omitempty"`
	// App-provided log message.
	LogMessage string `protobuf:"bytes,3,opt,name=log_message,json=logMessage" 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" json:"source_location,omitempty"`
}

Application log line emitted while processing a request.

func (*LogLine) Descriptor

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

func (*LogLine) GetLogMessage

func (m *LogLine) GetLogMessage() string

func (*LogLine) GetSeverity

func (m *LogLine) GetSeverity() google_logging_type.LogSeverity

func (*LogLine) GetSourceLocation

func (m *LogLine) GetSourceLocation() *SourceLocation

func (*LogLine) GetTime

func (m *LogLine) GetTime() *google_protobuf2.Timestamp

func (*LogLine) ProtoMessage

func (*LogLine) ProtoMessage()

func (*LogLine) Reset

func (m *LogLine) Reset()

func (*LogLine) String

func (m *LogLine) String() string

type RequestLog

type RequestLog struct {
	// Application that handled this request.
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId" json:"app_id,omitempty"`
	// Module of the application that handled this request.
	ModuleId string `protobuf:"bytes,37,opt,name=module_id,json=moduleId" json:"module_id,omitempty"`
	// Version of the application that handled this request.
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId" 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" json:"request_id,omitempty"`
	// Origin IP address.
	Ip string `protobuf:"bytes,4,opt,name=ip" json:"ip,omitempty"`
	// Time when the request started.
	StartTime *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
	// Time when the request finished.
	EndTime *google_protobuf2.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
	// Latency of the request.
	Latency *google_protobuf1.Duration `protobuf:"bytes,8,opt,name=latency" json:"latency,omitempty"`
	// Number of CPU megacycles used to process request.
	MegaCycles int64 `protobuf:"varint,9,opt,name=mega_cycles,json=megaCycles" json:"mega_cycles,omitempty"`
	// Request method. Example: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`, `"DELETE"`.
	Method string `protobuf:"bytes,10,opt,name=method" 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" json:"resource,omitempty"`
	// HTTP version of request. Example: `"HTTP/1.1"`.
	HttpVersion string `protobuf:"bytes,12,opt,name=http_version,json=httpVersion" json:"http_version,omitempty"`
	// HTTP response status code. Example: 200, 404.
	Status int32 `protobuf:"varint,13,opt,name=status" json:"status,omitempty"`
	// Size in bytes sent back to client by request.
	ResponseSize int64 `protobuf:"varint,14,opt,name=response_size,json=responseSize" json:"response_size,omitempty"`
	// Referrer URL of request.
	Referrer string `protobuf:"bytes,15,opt,name=referrer" json:"referrer,omitempty"`
	// User agent that made the request.
	UserAgent string `protobuf:"bytes,16,opt,name=user_agent,json=userAgent" 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" json:"nickname,omitempty"`
	// File or class that handled the request.
	UrlMapEntry string `protobuf:"bytes,17,opt,name=url_map_entry,json=urlMapEntry" json:"url_map_entry,omitempty"`
	// Internet host and port number of the resource being requested.
	Host string `protobuf:"bytes,20,opt,name=host" json:"host,omitempty"`
	// An indication of the relative cost of serving this request.
	Cost float64 `protobuf:"fixed64,21,opt,name=cost" 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" 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" 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" json:"was_loading_request,omitempty"`
	// Time this request spent in the pending request queue.
	PendingTime *google_protobuf1.Duration `protobuf:"bytes,25,opt,name=pending_time,json=pendingTime" 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" json:"instance_index,omitempty"`
	// Whether this request is finished or active.
	Finished bool `protobuf:"varint,27,opt,name=finished" 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" json:"first,omitempty"`
	// An identifier for the instance that handled the request.
	InstanceId string `protobuf:"bytes,28,opt,name=instance_id,json=instanceId" 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" json:"line,omitempty"`
	// App Engine release version.
	AppEngineRelease string `protobuf:"bytes,38,opt,name=app_engine_release,json=appEngineRelease" json:"app_engine_release,omitempty"`
	// Stackdriver Trace identifier for this request.
	TraceId string `protobuf:"bytes,39,opt,name=trace_id,json=traceId" json:"trace_id,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" json:"source_reference,omitempty"`
}

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

func (*RequestLog) Descriptor

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

func (*RequestLog) GetAppEngineRelease

func (m *RequestLog) GetAppEngineRelease() string

func (*RequestLog) GetAppId

func (m *RequestLog) GetAppId() string

func (*RequestLog) GetCost

func (m *RequestLog) GetCost() float64

func (*RequestLog) GetEndTime

func (m *RequestLog) GetEndTime() *google_protobuf2.Timestamp

func (*RequestLog) GetFinished

func (m *RequestLog) GetFinished() bool

func (*RequestLog) GetFirst

func (m *RequestLog) GetFirst() bool

func (*RequestLog) GetHost

func (m *RequestLog) GetHost() string

func (*RequestLog) GetHttpVersion

func (m *RequestLog) GetHttpVersion() string

func (*RequestLog) GetInstanceId

func (m *RequestLog) GetInstanceId() string

func (*RequestLog) GetInstanceIndex

func (m *RequestLog) GetInstanceIndex() int32

func (*RequestLog) GetIp

func (m *RequestLog) GetIp() string

func (*RequestLog) GetLatency

func (m *RequestLog) GetLatency() *google_protobuf1.Duration

func (*RequestLog) GetLine

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

func (*RequestLog) GetMegaCycles

func (m *RequestLog) GetMegaCycles() int64

func (*RequestLog) GetMethod

func (m *RequestLog) GetMethod() string

func (*RequestLog) GetModuleId

func (m *RequestLog) GetModuleId() string

func (*RequestLog) GetNickname

func (m *RequestLog) GetNickname() string

func (*RequestLog) GetPendingTime

func (m *RequestLog) GetPendingTime() *google_protobuf1.Duration

func (*RequestLog) GetReferrer

func (m *RequestLog) GetReferrer() string

func (*RequestLog) GetRequestId

func (m *RequestLog) GetRequestId() string

func (*RequestLog) GetResource

func (m *RequestLog) GetResource() string

func (*RequestLog) GetResponseSize

func (m *RequestLog) GetResponseSize() int64

func (*RequestLog) GetSourceReference

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

func (*RequestLog) GetStartTime

func (m *RequestLog) GetStartTime() *google_protobuf2.Timestamp

func (*RequestLog) GetStatus

func (m *RequestLog) GetStatus() int32

func (*RequestLog) GetTaskName

func (m *RequestLog) GetTaskName() string

func (*RequestLog) GetTaskQueueName

func (m *RequestLog) GetTaskQueueName() string

func (*RequestLog) GetTraceId

func (m *RequestLog) GetTraceId() string

func (*RequestLog) GetUrlMapEntry

func (m *RequestLog) GetUrlMapEntry() string

func (*RequestLog) GetUserAgent

func (m *RequestLog) GetUserAgent() string

func (*RequestLog) GetVersionId

func (m *RequestLog) GetVersionId() string

func (*RequestLog) GetWasLoadingRequest

func (m *RequestLog) GetWasLoadingRequest() bool

func (*RequestLog) ProtoMessage

func (*RequestLog) ProtoMessage()

func (*RequestLog) Reset

func (m *RequestLog) Reset()

func (*RequestLog) String

func (m *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" json:"file,omitempty"`
	// Line within the source file.
	Line int64 `protobuf:"varint,2,opt,name=line" 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" json:"function_name,omitempty"`
}

Specifies a location in a source code file.

func (*SourceLocation) Descriptor

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

func (*SourceLocation) GetFile

func (m *SourceLocation) GetFile() string

func (*SourceLocation) GetFunctionName

func (m *SourceLocation) GetFunctionName() string

func (*SourceLocation) GetLine

func (m *SourceLocation) GetLine() int64

func (*SourceLocation) ProtoMessage

func (*SourceLocation) ProtoMessage()

func (*SourceLocation) Reset

func (m *SourceLocation) Reset()

func (*SourceLocation) String

func (m *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" 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" json:"revision_id,omitempty"`
}

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)

func (*SourceReference) GetRepository

func (m *SourceReference) GetRepository() string

func (*SourceReference) GetRevisionId

func (m *SourceReference) GetRevisionId() string

func (*SourceReference) ProtoMessage

func (*SourceReference) ProtoMessage()

func (*SourceReference) Reset

func (m *SourceReference) Reset()

func (*SourceReference) String

func (m *SourceReference) String() string

Jump to

Keyboard shortcuts

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