Class: UU::AppLog::ApplicationLog::ApplicationLogRecordAttributes

Inherits:
OS::REST::DTO
  • Object
show all
Includes:
TimeConversions
Defined in:
uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb

Overview

DTO containing attributes of a application log record.

Constant Summary

Instance Attribute Summary (collapse)

Method Summary

Methods included from TimeConversions

#parse_time, #to_iso8601

Methods inherited from OS::REST::DTO

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from UU::OS::REST::DTO

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UU::OS::REST::DTO

Instance Attribute Details

- (Time) creation_time

Time of the application log record creation (on the API consumer side).

Parameters:

  • (String, Numeric)

Returns:

  • (Time)

    Application log record creation time.



20
21
22
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 20

def creation_time
  @creation_time
end

- (String) exception

Exception that occured.

Parameters:

  • (String)

Returns:

  • (String)


51
52
53
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 51

def exception
  @exception
end

- (String) logger_code

Code of logger identifies logger object of a specific application or application component. Logger is initiator and main participant of creation application log records.

Parameters:

  • (String)

Returns:

  • (String)


26
27
28
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 26

def logger_code
  @logger_code
end

- (Hash) mdc

Mapped diagnostic context. A structure containing key-value pairs with optional information useful to troubleshoot the application.

Parameters:

  • (Hash)

Returns:

  • (Hash)


67
68
69
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 67

def mdc
  @mdc
end

- (String) message

Message describing what happened.

Parameters:

  • (String)

Returns:

  • (String)


46
47
48
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 46

def message
  @message
end

- (String) node_id

Identifier of node (i.e. computer) on which the record was created.

Parameters:

  • (String)

Returns:

  • (String)


56
57
58
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 56

def node_id
  @node_id
end

- (String) node_ip

IP address of node (i.e. computer) on which the record was created.

Parameters:

  • (String)

Returns:

  • (String)


61
62
63
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 61

def node_ip
  @node_ip
end

- (String) severity

Severity (value from Severity) of the application log record.

Parameters:

  • (String)

Returns:

  • (String)


31
32
33
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 31

def severity
  @severity
end

- (String) thread_id

Identifier of the thread in which the application log record was created.

Parameters:

  • (String)

Returns:

  • (String)


36
37
38
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 36

def thread_id
  @thread_id
end

- (String) thread_name

Name of the thread in which the application log record was created.

Parameters:

  • (String)

Returns:

  • (String)


41
42
43
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 41

def thread_name
  @thread_name
end

- (UU::OS::UESURI) uri

URI of the application log record.

Parameters:

Returns:



15
16
17
# File 'uu_applog-0.27.16/lib/uu/applog/application_log/application_log_record_attributes.rb', line 15

def uri
  @uri
end