Class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext
- Inherits:
-
Object
- Object
- Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext
- 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
-
#method_prop ⇒ String
The type of HTTP request, such as
GET,POST, etc. -
#referrer ⇒ String
The referrer information that is provided with the request.
-
#remote_ip ⇒ String
The IP address from which the request originated.
-
#response_status_code ⇒ Fixnum
The HTTP response status code for the request.
-
#url ⇒ String
The URL of the request.
-
#user_agent ⇒ String
The user agent information that is provided with the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpRequestContext
constructor
A new instance of HttpRequestContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ HttpRequestContext
Returns a new instance of HttpRequestContext
482 483 484 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 482 def initialize(**args) update!(**args) end |
Instance Attribute Details
#method_prop ⇒ String
The type of HTTP request, such as GET, POST, etc.
Corresponds to the JSON property method
452 453 454 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 452 def method_prop @method_prop end |
#referrer ⇒ String
The referrer information that is provided with the request.
Corresponds to the JSON property referrer
465 466 467 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 465 def referrer @referrer end |
#remote_ip ⇒ String
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
460 461 462 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 460 def remote_ip @remote_ip end |
#response_status_code ⇒ Fixnum
The HTTP response status code for the request.
Corresponds to the JSON property responseStatusCode
480 481 482 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 480 def response_status_code @response_status_code end |
#url ⇒ String
The URL of the request.
Corresponds to the JSON property url
475 476 477 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 475 def url @url end |
#user_agent ⇒ String
The user agent information that is provided with the request.
Corresponds to the JSON property userAgent
470 471 472 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 470 def user_agent @user_agent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
487 488 489 490 491 492 493 494 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 487 def update!(**args) @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) @url = args[:url] if args.key?(:url) @response_status_code = args[:response_status_code] if args.key?(:response_status_code) end |