Featurevisor.Evaluation (featurevisor v0.1.0)

Copy Markdown View Source

Detailed result returned by Featurevisor evaluation functions.

Summary

Functions

Converts an evaluation to its camelCase wire representation.

Types

reason()

@type reason() ::
  :feature_not_found
  | :disabled
  | :required
  | :out_of_range
  | :no_variations
  | :variation_disabled
  | :variable_not_found
  | :variable_default
  | :variable_disabled
  | :variable_override_variation
  | :variable_override_rule
  | :no_match
  | :forced
  | :sticky
  | :rule
  | :allocated
  | :error

t()

@type t() :: %Featurevisor.Evaluation{
  bucket_key: term(),
  bucket_value: term(),
  enabled: term(),
  error: term(),
  feature_key: term(),
  force: term(),
  force_index: term(),
  reason: term(),
  required: term(),
  rule_key: term(),
  sticky: term(),
  traffic: term(),
  type: term(),
  variable_key: term(),
  variable_override_index: term(),
  variable_schema: term(),
  variable_value: term(),
  variation: term(),
  variation_value: term()
}

Functions

to_map(evaluation)

@spec to_map(t()) :: map()

Converts an evaluation to its camelCase wire representation.