Kong · Schema

Timeseries chart

A chart that can render timeseries data -- data from a query that has `time` as a dimension -- as lines or bars. This type of chart can support: - One or more metrics: `{ metrics: ["response_latency_p99", "response_latency_p95"], dimensions: ["time"] }` - One metric plus one non-time dimension: `{ metrics: ["request_count"], dimensions: ["time", "gateway_service"] }` Either way, ensure that `time` is in the list of query dimensions.

API GatewayAI GatewayAI ConnectivityAgent GatewayEvent GatewayMCP RegistryService MeshLLMKafkaKonnectOpen Source

Properties

Name Type Description
chart_title string The title of the chart, which is displayed in the tile's header.
type string
stacked boolean Whether to stack the bars or lines (implicitly adding them together to form a total), or leave them independent from each other.
View JSON Schema on GitHub

JSON Schema

kong-timeserieschart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TimeseriesChart",
  "title": "Timeseries chart",
  "description": "A chart that can render timeseries data -- data from a query that has `time` as a dimension -- as lines or bars.\n\nThis type of chart can support:\n\n- One or more metrics: `{ metrics: [\"response_latency_p99\", \"response_latency_p95\"], dimensions: [\"time\"] }`\n- One metric plus one non-time dimension: `{ metrics: [\"request_count\"], dimensions: [\"time\", \"gateway_service\"] }` \n\nEither way, ensure that `time` is in the list of query dimensions.\n",
  "type": "object",
  "properties": {
    "chart_title": {
      "description": "The title of the chart, which is displayed in the tile's header.",
      "type": "string",
      "nullable": false
    },
    "type": {
      "type": "string",
      "enum": [
        "timeseries_line",
        "timeseries_bar"
      ],
      "x-speakeasy-unknown-values": "allow"
    },
    "stacked": {
      "description": "Whether to stack the bars or lines (implicitly adding them together to form a total), or leave them independent from each other.\n",
      "type": "boolean",
      "nullable": false
    }
  },
  "additionalProperties": false,
  "required": [
    "type"
  ]
}