Eurobase · Schema

MeteringIngestRequest

The union of every counter sourceReservationIds array and every function request sourceReservationId must exactly equal the top-level sourceReservationIds set. Every row member must belong to that set. A batch contains at most 500 counters plus function requests and at most 2,000 contribution references.

CloudPlatformEuropeanAgentsDeveloper Tools

Properties

Name Type Description
producerId string
batchId string
batchSequence integer
schemaVersion string
sourceReservationIds array
observedAfter stringnull
counters array
functionRequests array
View JSON Schema on GitHub

JSON Schema

eurobase-dev-metering-ingest-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eurobase-dev/json-schema/eurobase-dev-metering-ingest-request-schema.json",
  "title": "MeteringIngestRequest",
  "description": "The union of every counter sourceReservationIds array and every function request sourceReservationId must exactly equal the top-level sourceReservationIds set. Every row member must belong to that set. A batch contains at most 500 counters plus function requests and at most 2,000 contribution references.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eurobase-dev-openapi.json#/components/schemas/MeteringIngestRequest",
  "type": "object",
  "required": [
    "producerId",
    "batchId",
    "batchSequence",
    "schemaVersion",
    "sourceReservationIds"
  ],
  "properties": {
    "producerId": {
      "type": "string"
    },
    "batchId": {
      "type": "string"
    },
    "batchSequence": {
      "type": "integer"
    },
    "schemaVersion": {
      "type": "string",
      "const": "usage-metering.v2"
    },
    "sourceReservationIds": {
      "type": "array",
      "minItems": 1,
      "maxItems": 500,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 160
      }
    },
    "observedAfter": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "counters": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "object",
        "required": [
          "projectId",
          "resourceType",
          "resourceId",
          "metricCode",
          "unit",
          "windowStart",
          "windowEnd",
          "valueDecimal",
          "sourceFamily",
          "sourceReservationIds",
          "observedAt"
        ],
        "properties": {
          "organizationId": {
            "type": [
              "string",
              "null"
            ]
          },
          "projectId": {
            "type": "string"
          },
          "resourceType": {
            "type": "string"
          },
          "resourceId": {
            "type": "string"
          },
          "metricCode": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "windowStart": {
            "type": "string",
            "format": "date-time"
          },
          "windowEnd": {
            "type": "string",
            "format": "date-time"
          },
          "valueDecimal": {
            "type": "string",
            "pattern": "^[0-9]+(?:\\.[0-9]+)?$"
          },
          "sourceFamily": {
            "type": "string"
          },
          "sourceReservationIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 500,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            }
          },
          "pricingVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "observedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "functionRequests": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "object",
        "required": [
          "sourceReservationId",
          "projectId",
          "resourceType",
          "resourceId",
          "routeId",
          "functionId",
          "startedAt",
          "finishedAt",
          "httpStatus",
          "latencyMs",
          "outcome",
          "sourceFamily"
        ],
        "properties": {
          "sourceReservationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "projectId": {
            "type": "string"
          },
          "resourceType": {
            "type": "string",
            "enum": [
              "function"
            ]
          },
          "resourceId": {
            "type": "string"
          },
          "routeId": {
            "type": "string"
          },
          "functionId": {
            "type": "string"
          },
          "deploymentId": {
            "type": [
              "string",
              "null"
            ]
          },
          "method": {
            "type": [
              "string",
              "null"
            ]
          },
          "normalizedPath": {
            "type": [
              "string",
              "null"
            ]
          },
          "observedHost": {
            "type": [
              "string",
              "null"
            ]
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "finishedAt": {
            "type": "string",
            "format": "date-time"
          },
          "httpStatus": {
            "type": "integer"
          },
          "statusClass": {
            "type": [
              "string",
              "null"
            ]
          },
          "latencyMs": {
            "type": "integer"
          },
          "responseBytes": {
            "type": "integer"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "success",
              "error",
              "timeout"
            ]
          },
          "sourceFamily": {
            "type": "string",
            "enum": [
              "gateway"
            ]
          }
        }
      }
    }
  }
}

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/eurobase-dev-metering-ingest-request"
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. See our Privacy Policy and Terms.

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