PostHog · Schema

LogsAlertSimulateResponse

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
buckets array Time-bucketed counts with full state machine evaluation.
fire_count integer Number of times the alert would have sent a fire notification.
resolve_count integer Number of times the alert would have sent a resolve notification.
total_buckets integer Total number of buckets in the simulation window.
threshold_count integer Threshold count used for evaluation.
threshold_operator string Threshold operator used for evaluation.
View JSON Schema on GitHub

JSON Schema

posthog-logsalertsimulateresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LogsAlertSimulateResponse",
  "title": "LogsAlertSimulateResponse",
  "type": "object",
  "properties": {
    "buckets": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LogsAlertSimulateBucket"
      },
      "description": "Time-bucketed counts with full state machine evaluation."
    },
    "fire_count": {
      "type": "integer",
      "description": "Number of times the alert would have sent a fire notification."
    },
    "resolve_count": {
      "type": "integer",
      "description": "Number of times the alert would have sent a resolve notification."
    },
    "total_buckets": {
      "type": "integer",
      "description": "Total number of buckets in the simulation window."
    },
    "threshold_count": {
      "type": "integer",
      "description": "Threshold count used for evaluation."
    },
    "threshold_operator": {
      "type": "string",
      "description": "Threshold operator used for evaluation."
    }
  },
  "required": [
    "buckets",
    "fire_count",
    "resolve_count",
    "threshold_count",
    "threshold_operator",
    "total_buckets"
  ]
}