Class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/clouderrorreporting_v1beta1/classes.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb

Overview

HTTP request data that is related to a reported error. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HttpRequestContext

Returns a new instance of HttpRequestContext



573
574
575
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 573

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#method_propString

The type of HTTP request, such as GET, POST, etc. Corresponds to the JSON property method

Returns:

  • (String)


553
554
555
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 553

def method_prop
  @method_prop
end

#referrerString

The referrer information that is provided with the request. Corresponds to the JSON property referrer

Returns:

  • (String)


566
567
568
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 566

def referrer
  @referrer
end

#remote_ipString

The IP address from which the request originated. This can be IPv4, IPv6, or a token which is derived from the IP address, depending on the data that has been provided in the error report. Corresponds to the JSON property remoteIp

Returns:

  • (String)


561
562
563
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 561

def remote_ip
  @remote_ip
end

#response_status_codeFixnum

The HTTP response status code for the request. Corresponds to the JSON property responseStatusCode

Returns:

  • (Fixnum)


548
549
550
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 548

def response_status_code
  @response_status_code
end

#urlString

The URL of the request. Corresponds to the JSON property url

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 543

def url
  @url
end

#user_agentString

The user agent information that is provided with the request. Corresponds to the JSON property userAgent

Returns:

  • (String)


571
572
573
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 571

def user_agent
  @user_agent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



578
579
580
581
582
583
584
585
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 578

def update!(**args)
  @url = args[:url] if args.key?(:url)
  @response_status_code = args[:response_status_code] if args.key?(:response_status_code)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
  @referrer = args[:referrer] if args.key?(:referrer)
  @user_agent = args[:user_agent] if args.key?(:user_agent)
end