Class: Google::Apis::LoggingV1beta3::RequestLog

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

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_releaseString

App Engine release version string. Corresponds to the JSON property appEngineRelease

Returns:

  • (String)


923
924
925
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 923

def app_engine_release
  @app_engine_release
end

#app_idString

Identifies the application that handled this request. Corresponds to the JSON property appId

Returns:

  • (String)


767
768
769
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 767

def app_id
  @app_id
end

#costFloat

An indication of the relative cost of serving this request. Corresponds to the JSON property cost

Returns:

  • (Float)


874
875
876
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 874

def cost
  @cost
end

#end_timeString

Time at which request was known to end processing. Corresponds to the JSON property endTime

Returns:

  • (String)


799
800
801
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 799

def end_time
  @end_time
end

#finishedBoolean Also known as: finished?

If true, represents a finished request. Otherwise, the request is active. Corresponds to the JSON property finished

Returns:

  • (Boolean)


906
907
908
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 906

def finished
  @finished
end

#hostString

The Internet host and port number of the resource being requested. Corresponds to the JSON property host

Returns:

  • (String)


869
870
871
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 869

def host
  @host
end

#http_versionString

HTTP version of request. Corresponds to the JSON property httpVersion

Returns:

  • (String)


827
828
829
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 827

def http_version
  @http_version
end

#instance_idString

An opaque identifier for the instance that handled the request. Corresponds to the JSON property instanceId

Returns:

  • (String)


912
913
914
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 912

def instance_id
  @instance_id
end

#instance_indexFixnum

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

Returns:

  • (Fixnum)


901
902
903
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 901

def instance_index
  @instance_index
end

#ipString

Origin IP address. Corresponds to the JSON property ip

Returns:

  • (String)


789
790
791
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 789

def ip
  @ip
end

#latencyString

Latency of the request. Corresponds to the JSON property latency

Returns:

  • (String)


804
805
806
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 804

def latency
  @latency
end

#lineArray<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_cyclesString

Number of CPU megacycles used to process request. Corresponds to the JSON property megaCycles

Returns:

  • (String)


809
810
811
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 809

def mega_cycles
  @mega_cycles
end

#method_propString

Request method, such as GET, HEAD, PUT, POST, or DELETE. Corresponds to the JSON property method

Returns:

  • (String)


814
815
816
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 814

def method_prop
  @method_prop
end

#module_idString

Identifies the module of the application that handled this request. Corresponds to the JSON property moduleId

Returns:

  • (String)


772
773
774
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 772

def module_id
  @module_id
end

#nicknameString

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

Returns:

  • (String)


857
858
859
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 857

def nickname
  @nickname
end

#pending_timeString

Time this request spent in the pending request queue, if it was pending at all. Corresponds to the JSON property pendingTime

Returns:

  • (String)


895
896
897
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 895

def pending_time
  @pending_time
end

#referrerString

Referrer URL of request. Corresponds to the JSON property referrer

Returns:

  • (String)


842
843
844
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 842

def referrer
  @referrer
end

#request_idString

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

Returns:

  • (String)


784
785
786
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 784

def request_id
  @request_id
end

#resourceString

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

Returns:

  • (String)


822
823
824
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 822

def resource
  @resource
end

#response_sizeString

Size in bytes sent back to client by request. Corresponds to the JSON property responseSize

Returns:

  • (String)


837
838
839
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 837

def response_size
  @response_size
end

#source_referenceArray<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_timeString

Time at which request was known to have begun processing. Corresponds to the JSON property startTime

Returns:

  • (String)


794
795
796
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 794

def start_time
  @start_time
end

#statusFixnum

Response status of request. Corresponds to the JSON property status

Returns:

  • (Fixnum)


832
833
834
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 832

def status
  @status
end

#task_nameString

Task name of the request (for an offline request). Corresponds to the JSON property taskName

Returns:

  • (String)


884
885
886
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 884

def task_name
  @task_name
end

#task_queue_nameString

Queue name of the request (for an offline request). Corresponds to the JSON property taskQueueName

Returns:

  • (String)


879
880
881
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 879

def task_queue_name
  @task_queue_name
end

#trace_idString

Cloud Trace identifier of the trace for this request. Corresponds to the JSON property traceId

Returns:

  • (String)


928
929
930
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 928

def trace_id
  @trace_id
end

#url_map_entryString

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

Returns:

  • (String)


864
865
866
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 864

def url_map_entry
  @url_map_entry
end

#user_agentString

User agent used for making request. Corresponds to the JSON property userAgent

Returns:

  • (String)


847
848
849
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 847

def user_agent
  @user_agent
end

#version_idString

Version of the application that handled this request. Corresponds to the JSON property versionId

Returns:

  • (String)


777
778
779
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 777

def version_id
  @version_id
end

#was_loading_requestBoolean Also known as: was_loading_request?

Was this request a loading request for this instance? Corresponds to the JSON property wasLoadingRequest

Returns:

  • (Boolean)


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