Class: Datadog::Core::Telemetry::Event::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/telemetry/event.rb

Overview

Base class for all Telemetry V2 events.

Instance Method Summary collapse

Instance Method Details

#payloadObject

The JSON payload for the event.



29
30
31
# File 'lib/datadog/core/telemetry/event.rb', line 29

def payload
  {}
end

#typeObject

The type of the event. It must be one of the stings defined in the Telemetry V2 specification for event names.

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/datadog/core/telemetry/event.rb', line 24

def type
  raise NotImplementedError, 'Must be implemented by subclass'
end