{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/logbrew/json-schema/logbrew-inbound-filters-response-schema.json",
  "title": "InboundFiltersResponse",
  "description": "One project's inbound filters and the events they dropped this billing period.\n\nDropped events are never stored or billed and do not count toward `usage` or spike\nprotection limits.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logbrew-projects-api-openapi.yml#/components/schemas/InboundFiltersResponse",
  "properties": {
    "bots": {
      "description": "Whether events from crawlers, link previews, uptime checks, and headless browsers are\ndropped.",
      "type": "boolean"
    },
    "browser_extensions": {
      "description": "Whether errors raised in browser extensions are dropped.",
      "type": "boolean"
    },
    "dropped_events": {
      "description": "Events the filters dropped this period, by reason (`message`, `release`, `environment`,\n`localhost`, `browser_extension`, `bot`) and meter.",
      "items": {
        "$ref": "#/$defs/SpikeDroppedEventsResponse"
      },
      "type": "array"
    },
    "environments": {
      "description": "Environment patterns to drop.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "localhost": {
      "description": "Whether events sent from a local machine (`localhost`, `127.0.0.1`, `::1`) are dropped.",
      "type": "boolean"
    },
    "messages": {
      "description": "Error and log message patterns to drop; `*` matches any text, `?` one character.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "project_id": {
      "description": "Project identifier.",
      "format": "uuid",
      "type": "string"
    },
    "releases": {
      "description": "Release patterns to drop.",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "project_id",
    "messages",
    "releases",
    "environments",
    "localhost",
    "browser_extensions",
    "bots",
    "dropped_events"
  ],
  "type": "object",
  "$defs": {
    "SpikeDroppedEventsResponse": {
      "description": "Events spike protection refused for one reason and meter.",
      "properties": {
        "events": {
          "description": "Refused events. A client that sends a refused batch again counts again.",
          "format": "uint64",
          "minimum": 0,
          "type": "integer"
        },
        "last_dropped_at": {
          "description": "Last refusal.",
          "format": "date-time",
          "type": "string"
        },
        "meter": {
          "description": "Meter whose hourly limit was reached, such as `log_bytes`.",
          "type": "string"
        },
        "reason": {
          "description": "Limit that refused them: `key_limit` or `project_limit`.",
          "type": "string"
        }
      },
      "required": [
        "reason",
        "meter",
        "events",
        "last_dropped_at"
      ],
      "type": "object"
    }
  }
}