Class: LaunchDarkly::Impl::MigrationOpEvent
- Defined in:
- lib/ldclient-rb/impl/event_types.rb
Overview
Instance Attribute Summary collapse
- #consistency_check ⇒ Object readonly
- #consistency_check_ratio ⇒ Object readonly
- #default ⇒ Object readonly
- #errors ⇒ Object readonly
- #evaluation ⇒ Object readonly
- #invoked ⇒ Object readonly
- #key ⇒ Object readonly
- #latencies ⇒ Object readonly
- #operation ⇒ Object readonly
- #sampling_ratio ⇒ Object readonly
- #version ⇒ Object readonly
Attributes inherited from Event
#context, #exclude_from_summaries, #timestamp
Instance Method Summary collapse
-
#initialize(timestamp, context, key, flag, operation, default_stage, evaluation, invoked, consistency_check, consistency_check_ratio, errors, latencies) ⇒ MigrationOpEvent
constructor
A migration op event represents the results of a migration-assisted read or write operation.
Constructor Details
#initialize(timestamp, context, key, flag, operation, default_stage, evaluation, invoked, consistency_check, consistency_check_ratio, errors, latencies) ⇒ MigrationOpEvent
A migration op event represents the results of a migration-assisted read or write operation.
The event includes optional measurements reporting on consistency checks, error reporting, and operation latency values.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 74 def initialize(, context, key, flag, operation, default_stage, evaluation, invoked, consistency_check, consistency_check_ratio, errors, latencies) super(, context) @operation = operation @key = key @version = flag&.version @sampling_ratio = flag&.sampling_ratio @default = default_stage @evaluation = evaluation @consistency_check = consistency_check @consistency_check_ratio = consistency_check.nil? ? nil : consistency_check_ratio @invoked = invoked @errors = errors @latencies = latencies end |
Instance Attribute Details
#consistency_check ⇒ Object (readonly)
95 96 97 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 95 def consistency_check @consistency_check end |
#consistency_check_ratio ⇒ Object (readonly)
96 97 98 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 96 def consistency_check_ratio @consistency_check_ratio end |
#default ⇒ Object (readonly)
93 94 95 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 93 def default @default end |
#errors ⇒ Object (readonly)
98 99 100 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 98 def errors @errors end |
#evaluation ⇒ Object (readonly)
94 95 96 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 94 def evaluation @evaluation end |
#invoked ⇒ Object (readonly)
97 98 99 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 97 def invoked @invoked end |
#key ⇒ Object (readonly)
90 91 92 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 90 def key @key end |
#latencies ⇒ Object (readonly)
99 100 101 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 99 def latencies @latencies end |
#operation ⇒ Object (readonly)
89 90 91 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 89 def operation @operation end |
#sampling_ratio ⇒ Object (readonly)
92 93 94 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 92 def sampling_ratio @sampling_ratio end |
#version ⇒ Object (readonly)
91 92 93 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 91 def version @version end |