PostHog · Schema

AlertSimulate

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
insight integer Insight ID to simulate the detector on.
detector_config object Detector configuration to simulate.
series_index integer Zero-based index of the series to analyze.
date_from string Relative date string for how far back to simulate (e.g. '-24h', '-30d', '-4w'). If not provided, uses the detector's minimum required samples.
View JSON Schema on GitHub

JSON Schema

posthog-alertsimulate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AlertSimulate",
  "title": "AlertSimulate",
  "type": "object",
  "properties": {
    "insight": {
      "type": "integer",
      "description": "Insight ID to simulate the detector on."
    },
    "detector_config": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DetectorConfig"
        }
      ],
      "description": "Detector configuration to simulate."
    },
    "series_index": {
      "type": "integer",
      "default": 0,
      "description": "Zero-based index of the series to analyze."
    },
    "date_from": {
      "type": "string",
      "nullable": true,
      "description": "Relative date string for how far back to simulate (e.g. '-24h', '-30d', '-4w'). If not provided, uses the detector's minimum required samples."
    }
  },
  "required": [
    "detector_config",
    "insight"
  ]
}