PostHog · Schema

CapabilityState

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
state object Current state of the capability * `needs_setup` - needs_setup * `detected` - detected * `waiting_for_data` - waiting_for_data * `ready` - ready * `not_applicable` - not_applicable * `unknown` - unknow
estimated boolean Whether the state is estimated from static analysis
reason string Human-readable explanation
evidence object Supporting evidence
View JSON Schema on GitHub

JSON Schema

posthog-capabilitystate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CapabilityState",
  "title": "CapabilityState",
  "type": "object",
  "properties": {
    "state": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CapabilityStateStateEnum"
        }
      ],
      "description": "Current state of the capability\n\n* `needs_setup` - needs_setup\n* `detected` - detected\n* `waiting_for_data` - waiting_for_data\n* `ready` - ready\n* `not_applicable` - not_applicable\n* `unknown` - unknown"
    },
    "estimated": {
      "type": "boolean",
      "description": "Whether the state is estimated from static analysis"
    },
    "reason": {
      "type": "string",
      "description": "Human-readable explanation"
    },
    "evidence": {
      "type": "object",
      "additionalProperties": true,
      "description": "Supporting evidence"
    }
  },
  "required": [
    "estimated",
    "reason",
    "state"
  ]
}