changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": true,
+ "properties": {
+ "group_by": {
+ "description": "The dimension used: day, project, engine, feature or key.",
+ "type": "string"
+ },
+ "groups": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "key": {
+ "description": "The bucket: a YYYY-MM-DD day, a project id, an engine tier (fetch, js or browser) or a feature (extract, ai_extract, proxy_datacenter, proxy_residential, batch).",
+ "type": "string"
+ },
+ "label": {
+ "description": "Human label for an engine tier.",
+ "type": "string"
+ },
+ "metrics": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Metric name -> quantity. credits are micro-credits (1 credit = 1000000), engine_ms milliseconds, bytes_* bytes, the rest counts."
+ }
+ },
+ "required": [
+ "key"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The buckets, sorted by key. Empty (or missing for group_by=key) does not mean no usage: read totals."
+ },
+ "keys": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "days": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "day": {
+ "type": "string"
+ },
+ "metrics": {
+ "$ref": "#/properties/groups/anyOf/0/items/properties/metrics"
+ }
+ },
+ "required": [
+ "day"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "key_id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "prefix": {
+ "description": "Display prefix of the API key, never the secret.",
+ "type": "string"
+ },
+ "project_id": {
+ "type": "string"
+ },
+ "revoked": {
+ "type": "boolean"
+ },
+ "totals": {
+ "$ref": "#/properties/groups/anyOf/0/items/properties/metrics",
+ "description": "Metric name -> quantity. credits are micro-credits (1 credit = 1000000), engine_ms milliseconds, bytes_* bytes, the rest counts."
+ }
+ },
+ "required": [
+ "key_id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "group_by=key only: one entry per API key, with its counters per UTC day."
+ },
+ "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"
+ },
+ "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"
+ ]
+ },
+ "totals": {
+ "$ref": "#/properties/groups/anyOf/0/items/properties/metrics",
+ "description": "Billed quantities for the whole window. Authoritative; use these, not the sum of groups."
+ },
+ "unattributed": {
+ "$ref": "#/properties/groups/anyOf/0/items/properties/metrics",
+ "description": "The part of each total the groups do not explain."
+ },
+ "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"
+}