launchdarkly · Schema

FlagEvaluation

The evaluated result of a single feature flag.

Properties

Name Type Description
value object The evaluated value of the flag for the given context.
variation integer The index of the variation that was served.
version integer The version number of the flag.
trackEvents boolean Whether analytics events should be tracked for this flag.
trackReason boolean Whether the evaluation reason should be included in events.
reason object The reason for the evaluation result.
View JSON Schema on GitHub

JSON Schema

launchdarkly-flagevaluation-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FlagEvaluation",
  "title": "FlagEvaluation",
  "type": "object",
  "description": "The evaluated result of a single feature flag.",
  "properties": {
    "value": {
      "description": "The evaluated value of the flag for the given context."
    },
    "variation": {
      "type": "integer",
      "description": "The index of the variation that was served."
    },
    "version": {
      "type": "integer",
      "description": "The version number of the flag."
    },
    "trackEvents": {
      "type": "boolean",
      "description": "Whether analytics events should be tracked for this flag."
    },
    "trackReason": {
      "type": "boolean",
      "description": "Whether the evaluation reason should be included in events."
    },
    "reason": {
      "type": "object",
      "description": "The reason for the evaluation result.",
      "properties": {
        "kind": {
          "type": "string",
          "description": "The kind of evaluation reason.",
          "enum": [
            false,
            "FALLTHROUGH",
            "TARGET_MATCH",
            "RULE_MATCH",
            "PREREQUISITE_FAILED",
            "ERROR"
          ]
        }
      }
    }
  }
}