Class: Google::Apis::LoggingV2beta1::LogLine

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

Overview

Application log line emitted while processing a request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LogLine

Returns a new instance of LogLine.


384
385
386
# File 'generated/google/apis/logging_v2beta1/classes.rb', line 384

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

Instance Attribute Details

#log_messageString

App-provided log message. Corresponds to the JSON property logMessage

Returns:

  • (String)

382
383
384
# File 'generated/google/apis/logging_v2beta1/classes.rb', line 382

def log_message
  @log_message
end

#severityString

Severity of this log entry. Corresponds to the JSON property severity

Returns:

  • (String)

372
373
374
# File 'generated/google/apis/logging_v2beta1/classes.rb', line 372

def severity
  @severity
end

#source_locationGoogle::Apis::LoggingV2beta1::SourceLocation

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


377
378
379
# File 'generated/google/apis/logging_v2beta1/classes.rb', line 377

def source_location
  @source_location
end

#timeString

Approximate time when this log entry was made. Corresponds to the JSON property time

Returns:

  • (String)

367
368
369
# File 'generated/google/apis/logging_v2beta1/classes.rb', line 367

def time
  @time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


389
390
391
392
393
394
# File 'generated/google/apis/logging_v2beta1/classes.rb', line 389

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