class Google::Apis::LoggingV1beta3::HttpRequest
A common proto for logging HTTP requests.
Attributes
Whether or not an entity was served from cache (with or without validation). Corresponds to the JSON property `cacheHit` @return [Boolean]
Whether or not an entity was served from cache (with or without validation). Corresponds to the JSON property `cacheHit` @return [Boolean]
Referer (a.k.a. referrer) URL of request, as defined in www.w3.org/ Protocols/rfc2616/rfc2616-sec14.html. Corresponds to the JSON property `referer` @return [String]
IP address of the client who issues the HTTP request. Could be either IPv4 or IPv6. Corresponds to the JSON property `remoteIp` @return [String]
Request method, such as `GET`, `HEAD`, `PUT` or `POST`. Corresponds to the JSON property `requestMethod` @return [String]
Size of the HTTP request message in bytes, including request headers and the request body. Corresponds to the JSON property `requestSize` @return [String]
Contains the scheme (http|https), the host name, the path and the query portion of the URL that was requested. Corresponds to the JSON property `requestUrl` @return [String]
Size of the HTTP response message in bytes sent back to the client, including response headers and response body. Corresponds to the JSON property `responseSize` @return [String]
A response code indicates the status of response, e.g., 200. Corresponds to the JSON property `status` @return [Fixnum]
User agent sent by the client, e.g., “Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)”. Corresponds to the JSON property `userAgent` @return [String]
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. Corresponds to the JSON property `validatedWithOriginServer` @return [Boolean]
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. Corresponds to the JSON property `validatedWithOriginServer` @return [Boolean]
Public Class Methods
# File generated/google/apis/logging_v1beta3/classes.rb, line 337 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/logging_v1beta3/classes.rb, line 342 def update!(**args) @request_method = args[:request_method] unless args[:request_method].nil? @request_url = args[:request_url] unless args[:request_url].nil? @request_size = args[:request_size] unless args[:request_size].nil? @status = args[:status] unless args[:status].nil? @response_size = args[:response_size] unless args[:response_size].nil? @user_agent = args[:user_agent] unless args[:user_agent].nil? @remote_ip = args[:remote_ip] unless args[:remote_ip].nil? @referer = args[:referer] unless args[:referer].nil? @cache_hit = args[:cache_hit] unless args[:cache_hit].nil? @validated_with_origin_server = args[:validated_with_origin_server] unless args[:validated_with_origin_server].nil? end