PostHog · Schema

NumericMetric

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
current number Value for the most recent period.
previous number Value for the prior period, if available.
change object Period-over-period change, null when not meaningful.
View JSON Schema on GitHub

JSON Schema

posthog-numericmetric-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/NumericMetric",
  "title": "NumericMetric",
  "type": "object",
  "properties": {
    "current": {
      "type": "number",
      "format": "double",
      "description": "Value for the most recent period."
    },
    "previous": {
      "type": "number",
      "format": "double",
      "nullable": true,
      "description": "Value for the prior period, if available."
    },
    "change": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WoWChange"
        }
      ],
      "nullable": true,
      "description": "Period-over-period change, null when not meaningful."
    }
  },
  "required": [
    "change",
    "current",
    "previous"
  ]
}