Class: Google::Apis::LoggingV1beta3::RequestLog
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV1beta3::RequestLog
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/logging_v1beta3/classes.rb,
generated/google/apis/logging_v1beta3/representations.rb,
generated/google/apis/logging_v1beta3/representations.rb
Overview
Complete log information about a single request to an application.
Instance Attribute Summary collapse
-
#app_engine_release ⇒ String
App Engine release version string.
-
#app_id ⇒ String
Identifies the application that handled this request.
-
#cost ⇒ Float
An indication of the relative cost of serving this request.
-
#end_time ⇒ String
Time at which request was known to end processing.
-
#finished ⇒ Boolean
(also: #finished?)
If true, represents a finished request.
-
#host ⇒ String
The Internet host and port number of the resource being requested.
-
#http_version ⇒ String
HTTP version of request.
-
#instance_id ⇒ String
An opaque identifier for the instance that handled the request.
-
#instance_index ⇒ Fixnum
If the instance that processed this request was individually addressable (i.e. belongs to a manually scaled module), this is the index of the instance.
-
#ip ⇒ String
Origin IP address.
-
#latency ⇒ String
Latency of the request.
-
#line ⇒ Array<Google::Apis::LoggingV1beta3::LogLine>
List of log lines emitted by the application while serving this request, if requested.
-
#mega_cycles ⇒ String
Number of CPU megacycles used to process request.
-
#method_prop ⇒ String
Request method, such as
GET
,HEAD
,PUT
,POST
, orDELETE
. -
#module_id ⇒ String
Identifies the module of the application that handled this request.
-
#nickname ⇒ String
A string that identifies a logged-in user who made this request, or empty if the user is not logged in.
-
#pending_time ⇒ String
Time this request spent in the pending request queue, if it was pending at all.
-
#referrer ⇒ String
Referrer URL of request.
-
#request_id ⇒ String
Globally unique identifier for a request, based on request start time.
-
#resource ⇒ String
Contains the path and query portion of the URL that was requested.
-
#response_size ⇒ String
Size in bytes sent back to client by request.
-
#source_reference ⇒ Array<Google::Apis::LoggingV1beta3::SourceReference>
Source code for the application that handled this request.
-
#start_time ⇒ String
Time at which request was known to have begun processing.
-
#status ⇒ Fixnum
Response status of request.
-
#task_name ⇒ String
Task name of the request (for an offline request).
-
#task_queue_name ⇒ String
Queue name of the request (for an offline request).
-
#trace_id ⇒ String
Cloud Trace identifier of the trace for this request.
-
#url_map_entry ⇒ String
File or class within URL mapping used for request.
-
#user_agent ⇒ String
User agent used for making request.
-
#version_id ⇒ String
Version of the application that handled this request.
-
#was_loading_request ⇒ Boolean
(also: #was_loading_request?)
Was this request a loading request for this instance? Corresponds to the JSON property
wasLoadingRequest
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestLog
constructor
A new instance of RequestLog.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RequestLog
Returns a new instance of RequestLog
937 938 939 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 937 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_engine_release ⇒ String
App Engine release version string.
Corresponds to the JSON property appEngineRelease
923 924 925 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 923 def app_engine_release @app_engine_release end |
#app_id ⇒ String
Identifies the application that handled this request.
Corresponds to the JSON property appId
767 768 769 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 767 def app_id @app_id end |
#cost ⇒ Float
An indication of the relative cost of serving this request.
Corresponds to the JSON property cost
874 875 876 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 874 def cost @cost end |
#end_time ⇒ String
Time at which request was known to end processing.
Corresponds to the JSON property endTime
799 800 801 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 799 def end_time @end_time end |
#finished ⇒ Boolean Also known as: finished?
If true, represents a finished request. Otherwise, the request is active.
Corresponds to the JSON property finished
906 907 908 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 906 def finished @finished end |
#host ⇒ String
The Internet host and port number of the resource being requested.
Corresponds to the JSON property host
869 870 871 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 869 def host @host end |
#http_version ⇒ String
HTTP version of request.
Corresponds to the JSON property httpVersion
827 828 829 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 827 def http_version @http_version end |
#instance_id ⇒ String
An opaque identifier for the instance that handled the request.
Corresponds to the JSON property instanceId
912 913 914 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 912 def instance_id @instance_id end |
#instance_index ⇒ Fixnum
If the instance that processed this request was individually addressable (i.e.
belongs to a manually scaled module), this is the index of the instance.
Corresponds to the JSON property instanceIndex
901 902 903 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 901 def instance_index @instance_index end |
#ip ⇒ String
Origin IP address.
Corresponds to the JSON property ip
789 790 791 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 789 def ip @ip end |
#latency ⇒ String
Latency of the request.
Corresponds to the JSON property latency
804 805 806 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 804 def latency @latency end |
#line ⇒ Array<Google::Apis::LoggingV1beta3::LogLine>
List of log lines emitted by the application while serving this request, if
requested.
Corresponds to the JSON property line
918 919 920 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 918 def line @line end |
#mega_cycles ⇒ String
Number of CPU megacycles used to process request.
Corresponds to the JSON property megaCycles
809 810 811 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 809 def mega_cycles @mega_cycles end |
#method_prop ⇒ String
Request method, such as GET
, HEAD
, PUT
, POST
, or DELETE
.
Corresponds to the JSON property method
814 815 816 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 814 def method_prop @method_prop end |
#module_id ⇒ String
Identifies the module of the application that handled this request.
Corresponds to the JSON property moduleId
772 773 774 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 772 def module_id @module_id end |
#nickname ⇒ String
A string that identifies a logged-in user who made this request, or empty if
the user is not logged in. Most likely, this is the part of the user's email
before the '@' sign. The field value is the same for different requests from
the same user, but different users may have a similar name. This information
is also available to the application via Users API. This field will be
populated starting with App Engine 1.9.21.
Corresponds to the JSON property nickname
857 858 859 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 857 def nickname @nickname end |
#pending_time ⇒ String
Time this request spent in the pending request queue, if it was pending at all.
Corresponds to the JSON property pendingTime
895 896 897 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 895 def pending_time @pending_time end |
#referrer ⇒ String
Referrer URL of request.
Corresponds to the JSON property referrer
842 843 844 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 842 def referrer @referrer end |
#request_id ⇒ String
Globally unique identifier for a request, based on request start time. Request
IDs for requests which started later will compare greater as strings than
those for requests which started earlier.
Corresponds to the JSON property requestId
784 785 786 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 784 def request_id @request_id end |
#resource ⇒ String
Contains the path and query portion of the URL that was requested. For example,
if the URL was "http://example.com/app?name=val", the resource would be "/app?
name=val". Any trailing fragment (separated by a '#' character) will not be
included.
Corresponds to the JSON property resource
822 823 824 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 822 def resource @resource end |
#response_size ⇒ String
Size in bytes sent back to client by request.
Corresponds to the JSON property responseSize
837 838 839 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 837 def response_size @response_size end |
#source_reference ⇒ Array<Google::Apis::LoggingV1beta3::SourceReference>
Source code for the application that handled this request. There can be more
than one source reference per deployed application if source code is
distributed among multiple repositories.
Corresponds to the JSON property sourceReference
935 936 937 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 935 def source_reference @source_reference end |
#start_time ⇒ String
Time at which request was known to have begun processing.
Corresponds to the JSON property startTime
794 795 796 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 794 def start_time @start_time end |
#status ⇒ Fixnum
Response status of request.
Corresponds to the JSON property status
832 833 834 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 832 def status @status end |
#task_name ⇒ String
Task name of the request (for an offline request).
Corresponds to the JSON property taskName
884 885 886 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 884 def task_name @task_name end |
#task_queue_name ⇒ String
Queue name of the request (for an offline request).
Corresponds to the JSON property taskQueueName
879 880 881 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 879 def task_queue_name @task_queue_name end |
#trace_id ⇒ String
Cloud Trace identifier of the trace for this request.
Corresponds to the JSON property traceId
928 929 930 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 928 def trace_id @trace_id end |
#url_map_entry ⇒ String
File or class within URL mapping used for request. Useful for tracking down
the source code which was responsible for managing request. Especially for
multiply mapped handlers.
Corresponds to the JSON property urlMapEntry
864 865 866 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 864 def url_map_entry @url_map_entry end |
#user_agent ⇒ String
User agent used for making request.
Corresponds to the JSON property userAgent
847 848 849 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 847 def user_agent @user_agent end |
#version_id ⇒ String
Version of the application that handled this request.
Corresponds to the JSON property versionId
777 778 779 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 777 def version_id @version_id end |
#was_loading_request ⇒ Boolean Also known as: was_loading_request?
Was this request a loading request for this instance?
Corresponds to the JSON property wasLoadingRequest
889 890 891 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 889 def was_loading_request @was_loading_request end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 942 def update!(**args) @app_id = args[:app_id] unless args[:app_id].nil? @module_id = args[:module_id] unless args[:module_id].nil? @version_id = args[:version_id] unless args[:version_id].nil? @request_id = args[:request_id] unless args[:request_id].nil? @ip = args[:ip] unless args[:ip].nil? @start_time = args[:start_time] unless args[:start_time].nil? @end_time = args[:end_time] unless args[:end_time].nil? @latency = args[:latency] unless args[:latency].nil? @mega_cycles = args[:mega_cycles] unless args[:mega_cycles].nil? @method_prop = args[:method_prop] unless args[:method_prop].nil? @resource = args[:resource] unless args[:resource].nil? @http_version = args[:http_version] unless args[:http_version].nil? @status = args[:status] unless args[:status].nil? @response_size = args[:response_size] unless args[:response_size].nil? @referrer = args[:referrer] unless args[:referrer].nil? @user_agent = args[:user_agent] unless args[:user_agent].nil? @nickname = args[:nickname] unless args[:nickname].nil? @url_map_entry = args[:url_map_entry] unless args[:url_map_entry].nil? @host = args[:host] unless args[:host].nil? @cost = args[:cost] unless args[:cost].nil? @task_queue_name = args[:task_queue_name] unless args[:task_queue_name].nil? @task_name = args[:task_name] unless args[:task_name].nil? @was_loading_request = args[:was_loading_request] unless args[:was_loading_request].nil? @pending_time = args[:pending_time] unless args[:pending_time].nil? @instance_index = args[:instance_index] unless args[:instance_index].nil? @finished = args[:finished] unless args[:finished].nil? @instance_id = args[:instance_id] unless args[:instance_id].nil? @line = args[:line] unless args[:line].nil? @app_engine_release = args[:app_engine_release] unless args[:app_engine_release].nil? @trace_id = args[:trace_id] unless args[:trace_id].nil? @source_reference = args[:source_reference] unless args[:source_reference].nil? end |