genproto: google.golang.org/genproto/googleapis/appengine/logging/v1 Index | Files

package logging

import "google.golang.org/genproto/googleapis/appengine/logging/v1"

Index

Package Files

request_log.pb.go

Variables

var File_google_appengine_logging_v1_request_log_proto protoreflect.FileDescriptor

type LogLine Uses

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"`
    // contains filtered or unexported fields
}

Application log line emitted while processing a request.

func (*LogLine) Descriptor Uses

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

Deprecated: Use LogLine.ProtoReflect.Descriptor instead.

func (*LogLine) GetLogMessage Uses

func (x *LogLine) GetLogMessage() string

func (*LogLine) GetSeverity Uses

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

func (*LogLine) GetSourceLocation Uses

func (x *LogLine) GetSourceLocation() *SourceLocation

func (*LogLine) GetTime Uses

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

func (*LogLine) ProtoMessage Uses

func (*LogLine) ProtoMessage()

func (*LogLine) ProtoReflect Uses

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

func (*LogLine) Reset Uses

func (x *LogLine) Reset()

func (*LogLine) String Uses

func (x *LogLine) String() string

type RequestLog Uses

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"`
    // 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 Uses

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

Deprecated: Use RequestLog.ProtoReflect.Descriptor instead.

func (*RequestLog) GetAppEngineRelease Uses

func (x *RequestLog) GetAppEngineRelease() string

func (*RequestLog) GetAppId Uses

func (x *RequestLog) GetAppId() string

func (*RequestLog) GetCost Uses

func (x *RequestLog) GetCost() float64

func (*RequestLog) GetEndTime Uses

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

func (*RequestLog) GetFinished Uses

func (x *RequestLog) GetFinished() bool

func (*RequestLog) GetFirst Uses

func (x *RequestLog) GetFirst() bool

func (*RequestLog) GetHost Uses

func (x *RequestLog) GetHost() string

func (*RequestLog) GetHttpVersion Uses

func (x *RequestLog) GetHttpVersion() string

func (*RequestLog) GetInstanceId Uses

func (x *RequestLog) GetInstanceId() string

func (*RequestLog) GetInstanceIndex Uses

func (x *RequestLog) GetInstanceIndex() int32

func (*RequestLog) GetIp Uses

func (x *RequestLog) GetIp() string

func (*RequestLog) GetLatency Uses

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

func (*RequestLog) GetLine Uses

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

func (*RequestLog) GetMegaCycles Uses

func (x *RequestLog) GetMegaCycles() int64

func (*RequestLog) GetMethod Uses

func (x *RequestLog) GetMethod() string

func (*RequestLog) GetModuleId Uses

func (x *RequestLog) GetModuleId() string

func (*RequestLog) GetNickname Uses

func (x *RequestLog) GetNickname() string

func (*RequestLog) GetPendingTime Uses

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

func (*RequestLog) GetReferrer Uses

func (x *RequestLog) GetReferrer() string

func (*RequestLog) GetRequestId Uses

func (x *RequestLog) GetRequestId() string

func (*RequestLog) GetResource Uses

func (x *RequestLog) GetResource() string

func (*RequestLog) GetResponseSize Uses

func (x *RequestLog) GetResponseSize() int64

func (*RequestLog) GetSourceReference Uses

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

func (*RequestLog) GetStartTime Uses

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

func (*RequestLog) GetStatus Uses

func (x *RequestLog) GetStatus() int32

func (*RequestLog) GetTaskName Uses

func (x *RequestLog) GetTaskName() string

func (*RequestLog) GetTaskQueueName Uses

func (x *RequestLog) GetTaskQueueName() string

func (*RequestLog) GetTraceId Uses

func (x *RequestLog) GetTraceId() string

func (*RequestLog) GetTraceSampled Uses

func (x *RequestLog) GetTraceSampled() bool

func (*RequestLog) GetUrlMapEntry Uses

func (x *RequestLog) GetUrlMapEntry() string

func (*RequestLog) GetUserAgent Uses

func (x *RequestLog) GetUserAgent() string

func (*RequestLog) GetVersionId Uses

func (x *RequestLog) GetVersionId() string

func (*RequestLog) GetWasLoadingRequest Uses

func (x *RequestLog) GetWasLoadingRequest() bool

func (*RequestLog) ProtoMessage Uses

func (*RequestLog) ProtoMessage()

func (*RequestLog) ProtoReflect Uses

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

func (*RequestLog) Reset Uses

func (x *RequestLog) Reset()

func (*RequestLog) String Uses

func (x *RequestLog) String() string

type SourceLocation Uses

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 Uses

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

Deprecated: Use SourceLocation.ProtoReflect.Descriptor instead.

func (*SourceLocation) GetFile Uses

func (x *SourceLocation) GetFile() string

func (*SourceLocation) GetFunctionName Uses

func (x *SourceLocation) GetFunctionName() string

func (*SourceLocation) GetLine Uses

func (x *SourceLocation) GetLine() int64

func (*SourceLocation) ProtoMessage Uses

func (*SourceLocation) ProtoMessage()

func (*SourceLocation) ProtoReflect Uses

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

func (*SourceLocation) Reset Uses

func (x *SourceLocation) Reset()

func (*SourceLocation) String Uses

func (x *SourceLocation) String() string

type SourceReference Uses

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 Uses

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

Deprecated: Use SourceReference.ProtoReflect.Descriptor instead.

func (*SourceReference) GetRepository Uses

func (x *SourceReference) GetRepository() string

func (*SourceReference) GetRevisionId Uses

func (x *SourceReference) GetRevisionId() string

func (*SourceReference) ProtoMessage Uses

func (*SourceReference) ProtoMessage()

func (*SourceReference) ProtoReflect Uses

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

func (*SourceReference) Reset Uses

func (x *SourceReference) Reset()

func (*SourceReference) String Uses

func (x *SourceReference) String() string

Package logging imports 8 packages (graph) and is imported by 1 packages. Updated 2020-08-13. Refresh now. Tools for package owners.