UsageMax · Schema

NativeTelemetryBatch

CompanySoftware-as-a-ServiceAnalyticsSoftware UsageDevOps

Properties

Name Type Description
events array
View JSON Schema on GitHub

JSON Schema

usagemax-com-native-telemetry-batch-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usagemax-com/json-schema/usagemax-com-native-telemetry-batch-schema.json",
  "title": "NativeTelemetryBatch",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usagemax-com-openapi.json#/components/schemas/NativeTelemetryBatch",
  "type": "object",
  "required": [
    "events"
  ],
  "additionalProperties": false,
  "properties": {
    "events": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "type": "object",
        "required": [
          "eventKey",
          "model",
          "occurredAt"
        ],
        "additionalProperties": false,
        "properties": {
          "eventKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 180
          },
          "logicalRequestId": {
            "type": "string",
            "maxLength": 160
          },
          "sessionId": {
            "type": "string",
            "maxLength": 160
          },
          "agentId": {
            "type": "string",
            "maxLength": 160
          },
          "agentExternalId": {
            "type": "string",
            "maxLength": 160
          },
          "parentAgentId": {
            "type": "string",
            "maxLength": 160
          },
          "parentAgentExternalId": {
            "type": "string",
            "maxLength": 160
          },
          "agentName": {
            "type": "string",
            "maxLength": 80
          },
          "eventType": {
            "type": "string",
            "enum": [
              "model_request",
              "tool_call",
              "agent_state",
              "outcome"
            ]
          },
          "source": {
            "type": "string",
            "maxLength": 60
          },
          "provider": {
            "type": "string",
            "maxLength": 60
          },
          "requestedModel": {
            "type": "string",
            "maxLength": 120
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "inputTokens": {
            "type": "integer",
            "minimum": 0
          },
          "outputTokens": {
            "type": "integer",
            "minimum": 0
          },
          "cacheReadTokens": {
            "type": "integer",
            "minimum": 0
          },
          "cacheWriteTokens": {
            "type": "integer",
            "minimum": 0
          },
          "reasoningTokens": {
            "type": "integer",
            "minimum": 0
          },
          "totalTokens": {
            "type": "integer",
            "minimum": 0
          },
          "costMicros": {
            "type": "integer",
            "minimum": 0
          },
          "costBasis": {
            "type": "string",
            "enum": [
              "reported",
              "estimated",
              "unknown"
            ]
          },
          "pricingSource": {
            "type": "string",
            "maxLength": 120
          },
          "pricingVersion": {
            "type": "string",
            "maxLength": 120
          },
          "serviceTier": {
            "type": "string",
            "maxLength": 40
          },
          "region": {
            "type": "string",
            "maxLength": 60
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "projectId": {
            "type": "string",
            "maxLength": 80
          },
          "costCenter": {
            "type": "string",
            "maxLength": 80
          },
          "latencyMs": {
            "type": "integer",
            "minimum": 0
          },
          "timeToFirstTokenMs": {
            "type": "integer",
            "minimum": 0
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "error",
              "cancelled"
            ]
          },
          "state": {
            "type": "string",
            "maxLength": 40
          },
          "task": {
            "type": "string",
            "maxLength": 180
          },
          "traceId": {
            "type": "string",
            "maxLength": 64
          },
          "spanId": {
            "type": "string",
            "maxLength": 32
          },
          "occurredAt": {
            "oneOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "integer"
              }
            ]
          },
          "schemaVersion": {
            "type": "integer",
            "enum": [
              1,
              2
            ]
          },
          "completeness": {
            "type": "string",
            "enum": [
              "reported",
              "estimated",
              "unknown"
            ]
          },
          "accountingMode": {
            "type": "string",
            "enum": [
              "accounting",
              "observability"
            ]
          }
        }
      }
    }
  }
}

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/usagemax-com-native-telemetry-batch"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.