PostHog · Schema

DurationMetric

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
current string Human-readable duration, e.g. '2m 34s'.
previous string Prior-period duration, e.g. '2m 10s'.
change object Period-over-period change, null when not meaningful.
View JSON Schema on GitHub

JSON Schema

posthog-durationmetric-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DurationMetric",
  "title": "DurationMetric",
  "type": "object",
  "properties": {
    "current": {
      "type": "string",
      "description": "Human-readable duration, e.g. '2m 34s'."
    },
    "previous": {
      "type": "string",
      "nullable": true,
      "description": "Prior-period duration, e.g. '2m 10s'."
    },
    "change": {
      "allOf": [
        {
          "$ref": "#/components/schemas/WoWChange"
        }
      ],
      "nullable": true,
      "description": "Period-over-period change, null when not meaningful."
    }
  },
  "required": [
    "change",
    "current",
    "previous"
  ]
}