PostHog · Schema

_LogsCountRangesBody

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
dateRange object Window to bucket. Defaults to last hour. Use a bucket's date_from/date_to from a prior response to recursively narrow into a sub-range.
targetBuckets integer Approximate number of buckets to return. The bucket interval is picked adaptively from a fixed list (1/5/10s, 1/2/5/10/15/30/60/120/240/360/720/1440m) to land near this target. Defaults to 10, capped
severityLevels array Filter by log severity levels. Applied before bucketing.
serviceNames array Filter by service names. Applied before bucketing.
searchTerm string Full-text search across log bodies. Applied before bucketing.
filterGroup array Property filters applied before bucketing. Same shape as `query-logs`.
View JSON Schema on GitHub

JSON Schema

posthog-logscountrangesbody-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/_LogsCountRangesBody",
  "title": "_LogsCountRangesBody",
  "type": "object",
  "properties": {
    "dateRange": {
      "allOf": [
        {
          "$ref": "#/components/schemas/_DateRange"
        }
      ],
      "description": "Window to bucket. Defaults to last hour. Use a bucket's date_from/date_to from a prior response to recursively narrow into a sub-range."
    },
    "targetBuckets": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1,
      "default": 10,
      "description": "Approximate number of buckets to return. The bucket interval is picked adaptively from a fixed list (1/5/10s, 1/2/5/10/15/30/60/120/240/360/720/1440m) to land near this target. Defaults to 10, capped at 100."
    },
    "severityLevels": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SeverityLevelsEnum"
      },
      "description": "Filter by log severity levels. Applied before bucketing."
    },
    "serviceNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Filter by service names. Applied before bucketing."
    },
    "searchTerm": {
      "type": "string",
      "description": "Full-text search across log bodies. Applied before bucketing."
    },
    "filterGroup": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/_LogPropertyFilter"
      },
      "description": "Property filters applied before bucketing. Same shape as `query-logs`."
    }
  }
}