PostHog · Schema

LogsAlertSimulateRequest

A/B TestingAnalyticsFeature FlagsOpen-SourceProduct AnalyticsSession Recording

Properties

Name Type Description
filters object Filter criteria — same format as LogsAlertConfiguration.filters.
threshold_count integer Threshold count to evaluate against.
threshold_operator object Whether the alert fires when the count is above or below the threshold. * `above` - Above * `below` - Below
window_minutes integer Window size in minutes — determines bucket interval.
evaluation_periods integer Total check periods in the N-of-M evaluation window (M).
datapoints_to_alarm integer How many periods must breach to fire (N in N-of-M).
cooldown_minutes integer Minutes to wait after firing before sending another notification.
date_from string Relative date string for how far back to simulate (e.g. '-24h', '-7d', '-30d').
View JSON Schema on GitHub

JSON Schema

posthog-logsalertsimulaterequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LogsAlertSimulateRequest",
  "title": "LogsAlertSimulateRequest",
  "type": "object",
  "properties": {
    "filters": {
      "description": "Filter criteria \u2014 same format as LogsAlertConfiguration.filters."
    },
    "threshold_count": {
      "type": "integer",
      "minimum": 1,
      "description": "Threshold count to evaluate against."
    },
    "threshold_operator": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ThresholdOperatorEnum"
        }
      ],
      "description": "Whether the alert fires when the count is above or below the threshold.\n\n* `above` - Above\n* `below` - Below"
    },
    "window_minutes": {
      "type": "integer",
      "description": "Window size in minutes \u2014 determines bucket interval."
    },
    "evaluation_periods": {
      "type": "integer",
      "maximum": 10,
      "minimum": 1,
      "default": 1,
      "description": "Total check periods in the N-of-M evaluation window (M)."
    },
    "datapoints_to_alarm": {
      "type": "integer",
      "maximum": 10,
      "minimum": 1,
      "default": 1,
      "description": "How many periods must breach to fire (N in N-of-M)."
    },
    "cooldown_minutes": {
      "type": "integer",
      "minimum": 0,
      "default": 0,
      "description": "Minutes to wait after firing before sending another notification."
    },
    "date_from": {
      "type": "string",
      "description": "Relative date string for how far back to simulate (e.g. '-24h', '-7d', '-30d')."
    }
  },
  "required": [
    "date_from",
    "filters",
    "threshold_count",
    "threshold_operator",
    "window_minutes"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/posthog-logsalertsimulaterequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.