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`."
    }
  }
}

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-logscountrangesbody"
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.