Class: Datadog::Profiling::Event
- Inherits:
-
Object
- Object
- Datadog::Profiling::Event
- Defined in:
- lib/datadog/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.
8 9 10 |
# File 'lib/datadog/profiling/event.rb', line 8 def initialize( = nil) @timestamp = || Time.now.utc.to_f end |
Instance Attribute Details
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/datadog/profiling/event.rb', line 5 def @timestamp end |