Module: TestBench::Telemetry::Controls::Event::Other

Defined in:
lib/test_bench/telemetry/controls/event.rb

Class Method Summary collapse

Class Method Details

.event_classObject



71
72
73
# File 'lib/test_bench/telemetry/controls/event.rb', line 71

def self.event_class
  SomeOtherEvent
end

.event_dataObject



83
84
85
86
# File 'lib/test_bench/telemetry/controls/event.rb', line 83

def self.event_data
  event = self.example
  Telemetry::Event::Export.(event)
end

.example(some_attribute: nil, some_other_attribute: nil, metadata: nil, process_id: nil, time: nil) ⇒ Object



63
64
65
66
67
68
69
# File 'lib/test_bench/telemetry/controls/event.rb', line 63

def self.example(some_attribute: nil, some_other_attribute: nil, metadata: nil, process_id: nil, time: nil)
  some_attribute ||= self.some_attribute
  some_other_attribute ||= self.some_other_attribute
   ||= Metadata::Other.example(process_id:, time:)

  Event.example(some_attribute:, some_other_attribute:, event_class:, metadata:)
end

.some_attributeObject



75
76
77
# File 'lib/test_bench/telemetry/controls/event.rb', line 75

def self.some_attribute
  'some-other-value'
end

.some_other_attributeObject



79
80
81
# File 'lib/test_bench/telemetry/controls/event.rb', line 79

def self.some_other_attribute
  'some-other-alternate-value'
end