Class: UU::AppLog::ApplicationLog::ApplicationLogCreate

Inherits:
OS::REST::DTO
  • Object
show all
Defined in:
uu_applog-0.8.6/lib/uu/applog/application_log/application_log_create.rb

Overview

DTO containing attributes of a new application log.

Instance Attribute Summary (collapse)

Method Summary

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) code

Code of the new application log. When nil is set, the default code is generated automatically using the application code slash default code of application log. The code must be unique in the given territory, otherwise the create command fails.

Parameters:

  • (String)

Returns:

  • (String)


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

def code
  @code
end

- (String) description

Description of the new application log. When nil is set, the description is taken from the meta artifact tDescription. When the meta artifact does not define a tDescription, it is left empty.

Parameters:

  • (String)

Returns:

  • (String)


29
30
31
# File 'uu_applog-0.8.6/lib/uu/applog/application_log/application_log_create.rb', line 29

def description
  @description
end

- (String) logging_severity

Severity of records (value from Severity) to store in the application log. If severity of a particular application log record is equal or higher than this severity, the record is stored, otherwise it is thrown away.

Parameters:

  • (String)

Returns:

  • (String)


37
38
39
# File 'uu_applog-0.8.6/lib/uu/applog/application_log/application_log_create.rb', line 37

def logging_severity
  @logging_severity
end

- (String) name

Name of the new application log. When nil is set, the name is taken from the meta artifact tName. When the meta artifact does not define a tName, the create command fails.

Parameters:

  • (String)

Returns:

  • (String)


22
23
24
# File 'uu_applog-0.8.6/lib/uu/applog/application_log/application_log_create.rb', line 22

def name
  @name
end