changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": true,
+ "properties": {
+ "allowance": {
+ "additionalProperties": true,
+ "description": "The monthly allowance the API enforces. Omitted when it cannot be read (warnings says so).",
+ "properties": {
+ "limit_credits": {
+ "type": "number"
+ },
+ "limit_micro": {
+ "type": "number"
+ },
+ "limit_source": {
+ "description": "'default' or 'override'.",
+ "type": "string"
+ },
+ "remaining_micro": {
+ "description": "Credits left under the monthly limit: the number to show.",
+ "type": "number"
+ },
+ "resets_at": {
+ "description": "When the allowance is restored in full.",
+ "type": "string"
+ },
+ "unlimited": {
+ "type": "boolean"
+ },
+ "used_micro": {
+ "description": "Spent plus credits held for in-flight work.",
+ "type": "number"
+ },
+ "window_start": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "credits": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "properties": {
+ "included_micro": {
+ "type": "number"
+ },
+ "overage_micro": {
+ "type": "number"
+ },
+ "overage_micro_cents_per_credit": {
+ "type": "number"
+ },
+ "remaining_micro": {
+ "type": "number"
+ },
+ "used_basis_points": {
+ "description": "Used / included in basis points (10000 = 100%); null when nothing is included.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "used_micro": {
+ "description": "Credits spent so far, from the usage rollup; excludes credits held for in-flight work.",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Metered usage against the plan's included credits. Micro-credits: 1 credit = 1000000."
+ },
+ "metrics": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Every billed metric for the period."
+ },
+ "period": {
+ "additionalProperties": true,
+ "description": "The window, as a half-open range of UTC days.",
+ "properties": {
+ "bounds": {
+ "description": "Always '[start, end)'.",
+ "type": "string"
+ },
+ "days": {
+ "type": "number"
+ },
+ "end": {
+ "description": "End UTC day, EXCLUSIVE (YYYY-MM-DD).",
+ "type": "string"
+ },
+ "start": {
+ "description": "First UTC day, inclusive (YYYY-MM-DD).",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "period_elapsed_days": {
+ "description": "Whole days of the period elapsed; use it to pace consumption.",
+ "type": "number"
+ },
+ "plan": {
+ "additionalProperties": true,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "period_source": {
+ "description": "'subscription' (billing period) or 'allowance_month'.",
+ "type": "string"
+ },
+ "subscription_status": {
+ "description": "'none' when no subscription covers now (the free plan).",
+ "type": "string"
+ },
+ "version": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "stale_seconds": {
+ "description": "Age of usage_as_of in seconds; null when the window is empty. A large value means the rollup is behind.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "unattributed": {
+ "$ref": "#/properties/metrics",
+ "description": "Metric name -> quantity. credits are micro-credits (1 credit = 1000000), engine_ms milliseconds, bytes_* bytes, the rest counts."
+ },
+ "usage_as_of": {
+ "description": "When the newest rollup row in the window was written; null when the window is empty.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "warnings": {
+ "description": "Caveats the numbers would otherwise hide.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+}