Class: Datadog::Core::Telemetry::Event::AppClientConfigurationChange

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

Overview

Telemetry class for the ‘app-client-configuration-change’ event

Instance Method Summary collapse

Constructor Details

#initialize(changes, origin) ⇒ AppClientConfigurationChange

Returns a new instance of AppClientConfigurationChange.



239
240
241
242
243
# File 'lib/datadog/core/telemetry/event.rb', line 239

def initialize(changes, origin)
  super()
  @changes = changes
  @origin = origin
end

Instance Method Details

#payload(seq_id) ⇒ Object



245
246
247
248
249
250
251
252
253
254
255
# File 'lib/datadog/core/telemetry/event.rb', line 245

def payload(seq_id)
  {
    configuration: @changes.map do |name, value|
      {
        name: name,
        value: value,
        origin: @origin,
      }
    end
  }
end

#typeObject



235
236
237
# File 'lib/datadog/core/telemetry/event.rb', line 235

def type
  'app-client-configuration-change'
end