Class: Datadog::Profiling::Event
- Inherits:
-
Object
- Object
- Datadog::Profiling::Event
- Defined in:
- lib/ddtrace/profiling/event.rb
Overview
Describes a sample of some data obtained from the runtime.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(timestamp = nil) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(timestamp = nil) ⇒ Event
Returns a new instance of Event.
9 10 11 |
# File 'lib/ddtrace/profiling/event.rb', line 9 def initialize( = nil) @timestamp = || Time.now.utc.to_f end |
Instance Attribute Details
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/ddtrace/profiling/event.rb', line 6 def @timestamp end |