Class: LaunchDarkly::Impl::MigrationOpEvent Private

Inherits:
Event
  • Object
show all
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.

Since:

  • 5.5.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

Since:

  • 5.5.0



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(timestamp, context, key, flag, operation, default_stage, evaluation, invoked, consistency_check, consistency_check_ratio, errors, latencies)
  super(timestamp, 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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



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.

Since:

  • 5.5.0



101
102
103
# File 'lib/ldclient-rb/impl/event_types.rb', line 101

def version
  @version
end