Class: Google::Apis::LoggingV1beta3::LogLine

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

Application log line emitted while processing a request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LogLine

Returns a new instance of LogLine



1001
1002
1003
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 1001

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

Instance Attribute Details

#log_messageString

App provided log message. Corresponds to the JSON property logMessage

Returns:

  • (String)


994
995
996
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 994

def log_message
  @log_message
end

#severityString

Severity of log. Corresponds to the JSON property severity

Returns:

  • (String)


989
990
991
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 989

def severity
  @severity
end

#source_locationGoogle::Apis::LoggingV1beta3::SourceLocation

Specifies a location in a source file. Corresponds to the JSON property sourceLocation



999
1000
1001
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 999

def source_location
  @source_location
end

#timeString

Time when log entry was made. May be inaccurate. Corresponds to the JSON property time

Returns:

  • (String)


984
985
986
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 984

def time
  @time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1006
1007
1008
1009
1010
1011
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 1006

def update!(**args)
  @time = args[:time] unless args[:time].nil?
  @severity = args[:severity] unless args[:severity].nil?
  @log_message = args[:log_message] unless args[:log_message].nil?
  @source_location = args[:source_location] unless args[:source_location].nil?
end