Documentation ¶
Index ¶
- type LogLine
- func (*LogLine) Descriptor() ([]byte, []int)
- func (m *LogLine) GetLogMessage() string
- func (m *LogLine) GetSeverity() _type.LogSeverity
- func (m *LogLine) GetSourceLocation() *SourceLocation
- func (m *LogLine) GetTime() *timestamp.Timestamp
- func (*LogLine) ProtoMessage()
- func (m *LogLine) Reset()
- func (m *LogLine) String() string
- func (m *LogLine) XXX_DiscardUnknown()
- func (m *LogLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogLine) XXX_Merge(src proto.Message)
- func (m *LogLine) XXX_Size() int
- func (m *LogLine) XXX_Unmarshal(b []byte) error
- type RequestLog
- func (*RequestLog) Descriptor() ([]byte, []int)
- func (m *RequestLog) GetAppEngineRelease() string
- func (m *RequestLog) GetAppId() string
- func (m *RequestLog) GetCost() float64
- func (m *RequestLog) GetEndTime() *timestamp.Timestamp
- func (m *RequestLog) GetFinished() bool
- func (m *RequestLog) GetFirst() bool
- func (m *RequestLog) GetHost() string
- func (m *RequestLog) GetHttpVersion() string
- func (m *RequestLog) GetInstanceId() string
- func (m *RequestLog) GetInstanceIndex() int32
- func (m *RequestLog) GetIp() string
- func (m *RequestLog) GetLatency() *duration.Duration
- func (m *RequestLog) GetLine() []*LogLine
- func (m *RequestLog) GetMegaCycles() int64
- func (m *RequestLog) GetMethod() string
- func (m *RequestLog) GetModuleId() string
- func (m *RequestLog) GetNickname() string
- func (m *RequestLog) GetPendingTime() *duration.Duration
- func (m *RequestLog) GetReferrer() string
- func (m *RequestLog) GetRequestId() string
- func (m *RequestLog) GetResource() string
- func (m *RequestLog) GetResponseSize() int64
- func (m *RequestLog) GetSourceReference() []*SourceReference
- func (m *RequestLog) GetStartTime() *timestamp.Timestamp
- func (m *RequestLog) GetStatus() int32
- func (m *RequestLog) GetTaskName() string
- func (m *RequestLog) GetTaskQueueName() string
- func (m *RequestLog) GetTraceId() string
- func (m *RequestLog) GetUrlMapEntry() string
- func (m *RequestLog) GetUserAgent() string
- func (m *RequestLog) GetVersionId() string
- func (m *RequestLog) GetWasLoadingRequest() bool
- func (*RequestLog) ProtoMessage()
- func (m *RequestLog) Reset()
- func (m *RequestLog) String() string
- func (m *RequestLog) XXX_DiscardUnknown()
- func (m *RequestLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestLog) XXX_Merge(src proto.Message)
- func (m *RequestLog) XXX_Size() int
- func (m *RequestLog) XXX_Unmarshal(b []byte) error
- type SourceLocation
- func (*SourceLocation) Descriptor() ([]byte, []int)
- func (m *SourceLocation) GetFile() string
- func (m *SourceLocation) GetFunctionName() string
- func (m *SourceLocation) GetLine() int64
- func (*SourceLocation) ProtoMessage()
- func (m *SourceLocation) Reset()
- func (m *SourceLocation) String() string
- func (m *SourceLocation) XXX_DiscardUnknown()
- func (m *SourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SourceLocation) XXX_Merge(src proto.Message)
- func (m *SourceLocation) XXX_Size() int
- func (m *SourceLocation) XXX_Unmarshal(b []byte) error
- type SourceReference
- func (*SourceReference) Descriptor() ([]byte, []int)
- func (m *SourceReference) GetRepository() string
- func (m *SourceReference) GetRevisionId() string
- func (*SourceReference) ProtoMessage()
- func (m *SourceReference) Reset()
- func (m *SourceReference) String() string
- func (m *SourceReference) XXX_DiscardUnknown()
- func (m *SourceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SourceReference) XXX_Merge(src proto.Message)
- func (m *SourceReference) XXX_Size() int
- func (m *SourceReference) XXX_Unmarshal(b []byte) error
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 *timestamp.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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Application log line emitted while processing a request.
func (*LogLine) Descriptor ¶
func (*LogLine) GetLogMessage ¶
func (*LogLine) GetSeverity ¶
func (m *LogLine) GetSeverity() _type.LogSeverity
func (*LogLine) GetSourceLocation ¶
func (m *LogLine) GetSourceLocation() *SourceLocation
func (*LogLine) ProtoMessage ¶
func (*LogLine) ProtoMessage()
func (*LogLine) XXX_DiscardUnknown ¶
func (m *LogLine) XXX_DiscardUnknown()
func (*LogLine) XXX_Marshal ¶
func (*LogLine) XXX_Unmarshal ¶
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 *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Time when the request finished. EndTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Latency of the request. Latency *duration.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 *duration.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"` // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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() *timestamp.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() *duration.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() *duration.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() *timestamp.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
func (*RequestLog) XXX_DiscardUnknown ¶
func (m *RequestLog) XXX_DiscardUnknown()
func (*RequestLog) XXX_Marshal ¶
func (m *RequestLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestLog) XXX_Merge ¶
func (m *RequestLog) XXX_Merge(src proto.Message)
func (*RequestLog) XXX_Size ¶
func (m *RequestLog) XXX_Size() int
func (*RequestLog) XXX_Unmarshal ¶
func (m *RequestLog) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*SourceLocation) XXX_DiscardUnknown ¶
func (m *SourceLocation) XXX_DiscardUnknown()
func (*SourceLocation) XXX_Marshal ¶
func (m *SourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SourceLocation) XXX_Merge ¶
func (m *SourceLocation) XXX_Merge(src proto.Message)
func (*SourceLocation) XXX_Size ¶
func (m *SourceLocation) XXX_Size() int
func (*SourceLocation) XXX_Unmarshal ¶
func (m *SourceLocation) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*SourceReference) XXX_DiscardUnknown ¶
func (m *SourceReference) XXX_DiscardUnknown()
func (*SourceReference) XXX_Marshal ¶
func (m *SourceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SourceReference) XXX_Merge ¶
func (m *SourceReference) XXX_Merge(src proto.Message)
func (*SourceReference) XXX_Size ¶
func (m *SourceReference) XXX_Size() int
func (*SourceReference) XXX_Unmarshal ¶
func (m *SourceReference) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.