{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/logbrew/json-schema/logbrew-sdk-event-ingest-response-schema.json",
  "title": "SdkEventIngestResponse",
  "description": "Accepted public SDK compatibility-ingest counts.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logbrew-ingestion-api-openapi.yml#/components/schemas/SdkEventIngestResponse",
  "properties": {
    "actions": {
      "description": "Number of accepted product actions.",
      "format": "uint",
      "minimum": 0,
      "type": "integer"
    },
    "already_accepted": {
      "default": 0,
      "description": "Number of events whose ID was accepted earlier; they are not stored or billed again.",
      "format": "uint",
      "minimum": 0,
      "type": "integer"
    },
    "context_updated": {
      "description": "Whether this batch persisted release or environment marker context.",
      "type": "boolean"
    },
    "issues": {
      "description": "Number of accepted issue events.",
      "format": "uint",
      "minimum": 0,
      "type": "integer"
    },
    "logs": {
      "description": "Number of accepted log events.",
      "format": "uint",
      "minimum": 0,
      "type": "integer"
    },
    "metrics": {
      "description": "Number of accepted metric events.",
      "format": "uint",
      "minimum": 0,
      "type": "integer"
    },
    "next": {
      "description": "Display-safe next step after successful ingestion.",
      "type": "string"
    },
    "next_action": {
      "$ref": "#/$defs/NativeTelemetryIngestNextActionResponse",
      "description": "Stable machine-readable review action shared with native ingestion."
    },
    "trace_spans": {
      "description": "Number of accepted trace spans.",
      "format": "uint",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "issues",
    "logs",
    "trace_spans",
    "actions",
    "metrics",
    "already_accepted",
    "context_updated",
    "next",
    "next_action"
  ],
  "type": "object",
  "$defs": {
    "NativeTelemetryIngestNextActionCode": {
      "description": "Stable native telemetry ingest action codes for clients and agents.",
      "oneOf": [
        {
          "const": "review_ingested_telemetry",
          "description": "Review the telemetry that was just accepted.",
          "type": "string"
        }
      ]
    },
    "NativeTelemetryIngestNextActionResponse": {
      "description": "Stable machine-readable next action for native telemetry ingest responses.",
      "properties": {
        "code": {
          "$ref": "#/$defs/NativeTelemetryIngestNextActionCode",
          "description": "Stable action code."
        },
        "target": {
          "$ref": "#/$defs/NativeTelemetryIngestNextActionTarget",
          "description": "Stable action target."
        }
      },
      "required": [
        "code",
        "target"
      ],
      "type": "object"
    },
    "NativeTelemetryIngestNextActionTarget": {
      "description": "Stable native telemetry ingest action targets for clients and agents.",
      "oneOf": [
        {
          "const": "telemetry_reads",
          "description": "Telemetry read routes, dashboard signal views, or live feed.",
          "type": "string"
        }
      ]
    }
  }
}