{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/workers-kv_result", "title": "workers-kv_result", "description": "Metrics on Workers KV requests.", "properties": { "data": { "items": { "properties": { "dimensions": { "items": { "type": "string" }, "type": "array" }, "metrics": { "description": "List of metrics returned by the query.", "items": { "items": { "format": "float", "type": "number" }, "type": "array" }, "type": "array" } }, "required": [ "metrics" ], "type": "object" }, "nullable": true, "type": "array" }, "data_lag": { "description": "Number of seconds between current time and last processed event, i.e. how many seconds of data could be missing.", "example": 0, "minimum": 0, "type": "number" }, "max": { "additionalProperties": { "type": "number" }, "description": "Maximum results for each metric.", "type": "object" }, "min": { "additionalProperties": { "type": "number" }, "description": "Minimum results for each metric.", "type": "object" }, "query": { "$ref": "#/components/schemas/workers-kv_query" }, "rows": { "description": "Total number of rows in the result.", "example": 2, "minimum": 0, "type": "number" }, "time_intervals": { "description": "Time interval buckets by beginning and ending", "items": { "items": { "example": "2019-01-02T02:20:00Z", "format": "date-time", "maxItems": 2, "minItems": 2, "type": "string" }, "type": "array" }, "type": "array" }, "totals": { "additionalProperties": { "type": "number" }, "description": "Total results for metrics across all data.", "type": "object" } }, "required": [ "rows", "data", "data_lag", "min", "max", "totals", "query" ], "type": "object" }