Class: APMInsight::Errors::ExceptionRecord
- Inherits:
-
Object
- Object
- APMInsight::Errors::ExceptionRecord
- Defined in:
- lib/agent/metrics/exception_record.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
- #==(obj) ⇒ Object
- #hash ⇒ Object
-
#initialize(exception, time = Time.now) ⇒ ExceptionRecord
constructor
A new instance of ExceptionRecord.
Constructor Details
#initialize(exception, time = Time.now) ⇒ ExceptionRecord
Returns a new instance of ExceptionRecord.
7 8 9 10 11 |
# File 'lib/agent/metrics/exception_record.rb', line 7 def initialize(exception, time = Time.now) @time = time.to_f * 1000; @message = exception. @exception = exception end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
5 6 7 |
# File 'lib/agent/metrics/exception_record.rb', line 5 def exception @exception end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/agent/metrics/exception_record.rb', line 5 def @message end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
5 6 7 |
# File 'lib/agent/metrics/exception_record.rb', line 5 def time @time end |
Instance Method Details
#==(obj) ⇒ Object
13 14 15 |
# File 'lib/agent/metrics/exception_record.rb', line 13 def ==(obj) return obj != nil && @exception == obj.exception end |
#hash ⇒ Object
17 18 19 |
# File 'lib/agent/metrics/exception_record.rb', line 17 def hash return @exception.hash end |