Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.08 KB

EvaluationReason.md

File metadata and controls

28 lines (22 loc) · 1.08 KB

LaunchDarklyApi::EvaluationReason

Properties

Name Type Description Notes
kind String Describes the general reason that LaunchDarkly selected this variation.
rule_index Integer The positional index of the matching rule if the kind is 'RULE_MATCH'. The index is 0-based. [optional]
rule_id String The unique identifier of the matching rule if the kind is 'RULE_MATCH'. [optional]
prerequisite_key String The key of the flag that failed if the kind is 'PREREQUISITE_FAILED'. [optional]
in_experiment Boolean Indicates whether the user was evaluated as part of an experiment. [optional]
error_kind String The specific error type if the kind is 'ERROR'. [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::EvaluationReason.new(
  kind: OFF,
  rule_index: 3,
  rule_id: 1234567890,
  prerequisite_key: someotherflagkey,
  in_experiment: true,
  error_kind: USER_NOT_SPECIFIED
)