Class: Google::Apis::LoggingV1beta3::LogLine
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV1beta3::LogLine
- 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
-
#log_message ⇒ String
App provided log message.
-
#severity ⇒ String
Severity of log.
-
#source_location ⇒ Google::Apis::LoggingV1beta3::SourceLocation
Specifies a location in a source file.
-
#time ⇒ String
Time when log entry was made.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogLine
constructor
A new instance of LogLine.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
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_message ⇒ String
App provided log message.
Corresponds to the JSON property logMessage
994 995 996 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 994 def @log_message end |
#severity ⇒ String
Severity of log.
Corresponds to the JSON property severity
989 990 991 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 989 def severity @severity end |
#source_location ⇒ Google::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 |
#time ⇒ String
Time when log entry was made. May be inaccurate.
Corresponds to the JSON property time
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 |