Class: LaunchDarkly::Impl::MigrationOpEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/ldclient-rb/impl/event_types.rb

Overview

Since:

  • 5.5.0

Instance Attribute Summary collapse

Attributes inherited from Event

#context, #exclude_from_summaries, #timestamp

Instance Method Summary collapse

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.

Parameters:

Since:

  • 5.5.0



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(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_checkObject (readonly)

Since:

  • 5.5.0



95
96
97
# File 'lib/ldclient-rb/impl/event_types.rb', line 95

def consistency_check
  @consistency_check
end

#consistency_check_ratioObject (readonly)

Since:

  • 5.5.0



96
97
98
# File 'lib/ldclient-rb/impl/event_types.rb', line 96

def consistency_check_ratio
  @consistency_check_ratio
end

#defaultObject (readonly)

Since:

  • 5.5.0



93
94
95
# File 'lib/ldclient-rb/impl/event_types.rb', line 93

def default
  @default
end

#errorsObject (readonly)

Since:

  • 5.5.0



98
99
100
# File 'lib/ldclient-rb/impl/event_types.rb', line 98

def errors
  @errors
end

#evaluationObject (readonly)

Since:

  • 5.5.0



94
95
96
# File 'lib/ldclient-rb/impl/event_types.rb', line 94

def evaluation
  @evaluation
end

#invokedObject (readonly)

Since:

  • 5.5.0



97
98
99
# File 'lib/ldclient-rb/impl/event_types.rb', line 97

def invoked
  @invoked
end

#keyObject (readonly)

Since:

  • 5.5.0



90
91
92
# File 'lib/ldclient-rb/impl/event_types.rb', line 90

def key
  @key
end

#latenciesObject (readonly)

Since:

  • 5.5.0



99
100
101
# File 'lib/ldclient-rb/impl/event_types.rb', line 99

def latencies
  @latencies
end

#operationObject (readonly)

Since:

  • 5.5.0



89
90
91
# File 'lib/ldclient-rb/impl/event_types.rb', line 89

def operation
  @operation
end

#sampling_ratioObject (readonly)

Since:

  • 5.5.0



92
93
94
# File 'lib/ldclient-rb/impl/event_types.rb', line 92

def sampling_ratio
  @sampling_ratio
end

#versionObject (readonly)

Since:

  • 5.5.0



91
92
93
# File 'lib/ldclient-rb/impl/event_types.rb', line 91

def version
  @version
end