Class: Datadog::Core::Telemetry::Event::Base Private
- Inherits:
-
Object
- Object
- Datadog::Core::Telemetry::Event::Base
- Defined in:
- lib/datadog/core/telemetry/event/base.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Base class for all Telemetry V2 events.
Direct Known Subclasses
AppClientConfigurationChange, AppClosing, AppDependenciesLoaded, AppHeartbeat, AppIntegrationsChange, AppStarted, GenerateMetrics, Log, MessageBatch
Instance Method Summary collapse
-
#==(other) ⇒ Object
(also: #eql?)
private
Override equality to allow for deduplication The basic implementation is to check if the other object is an instance of the same class.
- #hash ⇒ Object private
-
#payload ⇒ Object
private
The JSON payload for the event.
-
#type ⇒ Object
private
The type of the event.
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override equality to allow for deduplication The basic implementation is to check if the other object is an instance of the same class. This works for events that have no attributes. For events with attributes, you should override this method to compare the attributes.
25 26 27 |
# File 'lib/datadog/core/telemetry/event/base.rb', line 25 def ==(other) other.is_a?(self.class) end |
#hash ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
33 34 35 |
# File 'lib/datadog/core/telemetry/event/base.rb', line 33 def hash self.class.hash end |
#payload ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The JSON payload for the event.
17 18 19 |
# File 'lib/datadog/core/telemetry/event/base.rb', line 17 def payload {} end |
#type ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The type of the event. It must be one of the stings defined in the Telemetry V2 specification for event names.
12 13 14 |
# File 'lib/datadog/core/telemetry/event/base.rb', line 12 def type raise NotImplementedError, 'Must be implemented by subclass' end |