Class: UU::AppLog::ApplicationLog::ApplicationLogAddRecord

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

Overview

DTO containing attributes of a new 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

- (String) creation_time

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

Parameters:

  • (String, DateTime, Time)

Returns:

  • (String)


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

def creation_time
  @creation_time
end

- (String) exception

Exception that occurred.

Parameters:

  • (String)

Returns:

  • (String)


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

def exception
  @exception
end

- (String) logger_code

Code of logger.

Parameters:

  • (String)

Returns:

  • (String)


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

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)


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

def mdc
  @mdc
end

- (String) message

Message describing what happened.

Parameters:

  • (String)

Returns:

  • (String)


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

def message
  @message
end

- (String) node_id

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

Parameters:

  • (String)

Returns:

  • (String)


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

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)


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

def node_ip
  @node_ip
end

- (String) severity

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

Parameters:

  • (String)

Returns:

  • (String)


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

def severity
  @severity
end

- (String) thread_id

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

Parameters:

  • (String)

Returns:

  • (String)


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

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)


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

def thread_name
  @thread_name
end