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

package ltype

import "google.golang.org/genproto/googleapis/logging/type"

Index

Package Files

http_request.pb.go log_severity.pb.go

Variables

var (
    LogSeverity_name = map[int32]string{
        0:   "DEFAULT",
        100: "DEBUG",
        200: "INFO",
        300: "NOTICE",
        400: "WARNING",
        500: "ERROR",
        600: "CRITICAL",
        700: "ALERT",
        800: "EMERGENCY",
    }
    LogSeverity_value = map[string]int32{
        "DEFAULT":   0,
        "DEBUG":     100,
        "INFO":      200,
        "NOTICE":    300,
        "WARNING":   400,
        "ERROR":     500,
        "CRITICAL":  600,
        "ALERT":     700,
        "EMERGENCY": 800,
    }
)

Enum value maps for LogSeverity.

var File_google_logging_type_http_request_proto protoreflect.FileDescriptor
var File_google_logging_type_log_severity_proto protoreflect.FileDescriptor

type HttpRequest Uses

type HttpRequest struct {

    // The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
    RequestMethod string `protobuf:"bytes,1,opt,name=request_method,json=requestMethod,proto3" json:"request_method,omitempty"`
    // The scheme (http, https), the host name, the path and the query
    // portion of the URL that was requested.
    // Example: `"http://example.com/some/info?color=red"`.
    RequestUrl string `protobuf:"bytes,2,opt,name=request_url,json=requestUrl,proto3" json:"request_url,omitempty"`
    // The size of the HTTP request message in bytes, including the request
    // headers and the request body.
    RequestSize int64 `protobuf:"varint,3,opt,name=request_size,json=requestSize,proto3" json:"request_size,omitempty"`
    // The response code indicating the status of response.
    // Examples: 200, 404.
    Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
    // The size of the HTTP response message sent back to the client, in bytes,
    // including the response headers and the response body.
    ResponseSize int64 `protobuf:"varint,5,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"`
    // The user agent sent by the client. Example:
    // `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
    // CLR 1.0.3705)"`.
    UserAgent string `protobuf:"bytes,6,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
    // The IP address (IPv4 or IPv6) of the client that issued the HTTP
    // request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
    RemoteIp string `protobuf:"bytes,7,opt,name=remote_ip,json=remoteIp,proto3" json:"remote_ip,omitempty"`
    // The IP address (IPv4 or IPv6) of the origin server that the request was
    // sent to.
    ServerIp string `protobuf:"bytes,13,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"`
    // The referer URL of the request, as defined in
    // [HTTP/1.1 Header Field
    // Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
    Referer string `protobuf:"bytes,8,opt,name=referer,proto3" json:"referer,omitempty"`
    // The request processing latency on the server, from the time the request was
    // received until the response was sent.
    Latency *duration.Duration `protobuf:"bytes,14,opt,name=latency,proto3" json:"latency,omitempty"`
    // Whether or not a cache lookup was attempted.
    CacheLookup bool `protobuf:"varint,11,opt,name=cache_lookup,json=cacheLookup,proto3" json:"cache_lookup,omitempty"`
    // Whether or not an entity was served from cache
    // (with or without validation).
    CacheHit bool `protobuf:"varint,9,opt,name=cache_hit,json=cacheHit,proto3" json:"cache_hit,omitempty"`
    // Whether or not the response was validated with the origin server before
    // being served from cache. This field is only meaningful if `cache_hit` is
    // True.
    CacheValidatedWithOriginServer bool `protobuf:"varint,10,opt,name=cache_validated_with_origin_server,json=cacheValidatedWithOriginServer,proto3" json:"cache_validated_with_origin_server,omitempty"`
    // The number of HTTP response bytes inserted into cache. Set only when a
    // cache fill was attempted.
    CacheFillBytes int64 `protobuf:"varint,12,opt,name=cache_fill_bytes,json=cacheFillBytes,proto3" json:"cache_fill_bytes,omitempty"`
    // Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
    Protocol string `protobuf:"bytes,15,opt,name=protocol,proto3" json:"protocol,omitempty"`
    // contains filtered or unexported fields
}

A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message.

func (*HttpRequest) Descriptor Uses

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

Deprecated: Use HttpRequest.ProtoReflect.Descriptor instead.

func (*HttpRequest) GetCacheFillBytes Uses

func (x *HttpRequest) GetCacheFillBytes() int64

func (*HttpRequest) GetCacheHit Uses

func (x *HttpRequest) GetCacheHit() bool

func (*HttpRequest) GetCacheLookup Uses

func (x *HttpRequest) GetCacheLookup() bool

func (*HttpRequest) GetCacheValidatedWithOriginServer Uses

func (x *HttpRequest) GetCacheValidatedWithOriginServer() bool

func (*HttpRequest) GetLatency Uses

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

func (*HttpRequest) GetProtocol Uses

func (x *HttpRequest) GetProtocol() string

func (*HttpRequest) GetReferer Uses

func (x *HttpRequest) GetReferer() string

func (*HttpRequest) GetRemoteIp Uses

func (x *HttpRequest) GetRemoteIp() string

func (*HttpRequest) GetRequestMethod Uses

func (x *HttpRequest) GetRequestMethod() string

func (*HttpRequest) GetRequestSize Uses

func (x *HttpRequest) GetRequestSize() int64

func (*HttpRequest) GetRequestUrl Uses

func (x *HttpRequest) GetRequestUrl() string

func (*HttpRequest) GetResponseSize Uses

func (x *HttpRequest) GetResponseSize() int64

func (*HttpRequest) GetServerIp Uses

func (x *HttpRequest) GetServerIp() string

func (*HttpRequest) GetStatus Uses

func (x *HttpRequest) GetStatus() int32

func (*HttpRequest) GetUserAgent Uses

func (x *HttpRequest) GetUserAgent() string

func (*HttpRequest) ProtoMessage Uses

func (*HttpRequest) ProtoMessage()

func (*HttpRequest) ProtoReflect Uses

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

func (*HttpRequest) Reset Uses

func (x *HttpRequest) Reset()

func (*HttpRequest) String Uses

func (x *HttpRequest) String() string

type LogSeverity Uses

type LogSeverity int32

The severity of the event described in a log entry, expressed as one of the standard severity levels listed below. For your reference, the levels are assigned the listed numeric values. The effect of using numeric values other than those listed is undefined.

You can filter for log entries by severity. For example, the following filter expression will match log entries with severities `INFO`, `NOTICE`, and `WARNING`:

severity > DEBUG AND severity <= WARNING

If you are writing log entries, you should map other severity encodings to one of these standard levels. For example, you might map all of Java's FINE, FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the original severity level in the log entry payload if you wish.

const (
    // (0) The log entry has no assigned severity level.
    LogSeverity_DEFAULT LogSeverity = 0
    // (100) Debug or trace information.
    LogSeverity_DEBUG LogSeverity = 100
    // (200) Routine information, such as ongoing status or performance.
    LogSeverity_INFO LogSeverity = 200
    // (300) Normal but significant events, such as start up, shut down, or
    // a configuration change.
    LogSeverity_NOTICE LogSeverity = 300
    // (400) Warning events might cause problems.
    LogSeverity_WARNING LogSeverity = 400
    // (500) Error events are likely to cause problems.
    LogSeverity_ERROR LogSeverity = 500
    // (600) Critical events cause more severe problems or outages.
    LogSeverity_CRITICAL LogSeverity = 600
    // (700) A person must take an action immediately.
    LogSeverity_ALERT LogSeverity = 700
    // (800) One or more systems are unusable.
    LogSeverity_EMERGENCY LogSeverity = 800
)

func (LogSeverity) Descriptor Uses

func (LogSeverity) Descriptor() protoreflect.EnumDescriptor

func (LogSeverity) Enum Uses

func (x LogSeverity) Enum() *LogSeverity

func (LogSeverity) EnumDescriptor Uses

func (LogSeverity) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogSeverity.Descriptor instead.

func (LogSeverity) Number Uses

func (x LogSeverity) Number() protoreflect.EnumNumber

func (LogSeverity) String Uses

func (x LogSeverity) String() string

func (LogSeverity) Type Uses

func (LogSeverity) Type() protoreflect.EnumType

Package ltype imports 7 packages (graph) and is imported by 12 packages. Updated 2020-06-16. Refresh now. Tools for package owners.