class Google::Apis::LoggingV1beta3::HttpRequest

A common proto for logging HTTP requests.

Attributes

cache_hit[RW]

Whether or not an entity was served from cache (with or without validation). Corresponds to the JSON property `cacheHit` @return [Boolean]

cache_hit?[RW]

Whether or not an entity was served from cache (with or without validation). Corresponds to the JSON property `cacheHit` @return [Boolean]

referer[RW]

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]

remote_ip[RW]

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[RW]

Request method, such as `GET`, `HEAD`, `PUT` or `POST`. Corresponds to the JSON property `requestMethod` @return [String]

request_size[RW]

Size of the HTTP request message in bytes, including request headers and the request body. Corresponds to the JSON property `requestSize` @return [String]

request_url[RW]

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]

response_size[RW]

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]

status[RW]

A response code indicates the status of response, e.g., 200. Corresponds to the JSON property `status` @return [Fixnum]

user_agent[RW]

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]

validated_with_origin_server[RW]

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]

validated_with_origin_server?[RW]

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

new(**args) click to toggle source
# File generated/google/apis/logging_v1beta3/classes.rb, line 337
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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