Class: LaunchDarkly::Impl::MigrationOpEvent Private
- Defined in:
- lib/ldclient-rb/impl/event_types.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.
Instance Attribute Summary collapse
- #consistency_check ⇒ Object readonly private
- #consistency_check_ratio ⇒ Object readonly private
- #default ⇒ Object readonly private
- #errors ⇒ Object readonly private
- #evaluation ⇒ Object readonly private
- #invoked ⇒ Object readonly private
- #key ⇒ Object readonly private
- #latencies ⇒ Object readonly private
- #operation ⇒ Object readonly private
- #sampling_ratio ⇒ Object readonly private
- #version ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(timestamp, context, key, flag, operation, default_stage, evaluation, invoked, consistency_check, consistency_check_ratio, errors, latencies) ⇒ MigrationOpEvent
constructor
private
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
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.
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.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 84 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)
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.
105 106 107 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 105 def consistency_check @consistency_check end |
#consistency_check_ratio ⇒ Object (readonly)
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.
106 107 108 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 106 def consistency_check_ratio @consistency_check_ratio end |
#default ⇒ Object (readonly)
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.
103 104 105 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 103 def default @default end |
#errors ⇒ Object (readonly)
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.
108 109 110 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 108 def errors @errors end |
#evaluation ⇒ Object (readonly)
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.
104 105 106 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 104 def evaluation @evaluation end |
#invoked ⇒ Object (readonly)
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.
107 108 109 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 107 def invoked @invoked end |
#key ⇒ Object (readonly)
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.
100 101 102 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 100 def key @key end |
#latencies ⇒ Object (readonly)
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.
109 110 111 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 109 def latencies @latencies end |
#operation ⇒ Object (readonly)
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.
99 100 101 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 99 def operation @operation end |
#sampling_ratio ⇒ Object (readonly)
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.
102 103 104 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 102 def sampling_ratio @sampling_ratio end |
#version ⇒ Object (readonly)
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.
101 102 103 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 101 def version @version end |