Class: ScriptLog
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
-
#exec_exit_code ⇒ Object
Returns the value of attribute exec_exit_code.
-
#exec_time ⇒ Object
Returns the value of attribute exec_time.
-
#script_name ⇒ Object
Returns the value of attribute script_name.
Attributes inherited from Log
#message, #server_id, #timestamp
Instance Method Summary collapse
Instance Attribute Details
#event ⇒ Object
Returns the value of attribute event.
2 3 4 |
# File 'lib/rscalr/model/script_log.rb', line 2 def event @event end |
#exec_exit_code ⇒ Object
Returns the value of attribute exec_exit_code.
2 3 4 |
# File 'lib/rscalr/model/script_log.rb', line 2 def exec_exit_code @exec_exit_code end |
#exec_time ⇒ Object
Returns the value of attribute exec_time.
2 3 4 |
# File 'lib/rscalr/model/script_log.rb', line 2 def exec_time @exec_time end |
#script_name ⇒ Object
Returns the value of attribute script_name.
2 3 4 |
# File 'lib/rscalr/model/script_log.rb', line 2 def script_name @script_name end |
Instance Method Details
#to_s ⇒ Object
4 5 6 |
# File 'lib/rscalr/model/script_log.rb', line 4 def to_s "{ type: \"script_log\", server_id: \"#{@server_id}\", script_name: \"#{@script_name}\", message: \"#{@message}\", timestamp: #{@timestamp}, exec_exit_code: #{@exec_exit_code} }" end |