{
  "name": "real-time-metrics-dashboard",
  "kind": "block",
  "primary": "section",
  "page": "/catalog/ui-patterns/v050-data-blocks/v050-data-blocks.contents.html",
  "slots": [],
  "nested": [],
  "attrs": {},
  "html": "<section>\n    <col-ui gap=\"4\">\n      <row-ui gap=\"3\" align=\"center\">\n        <h3>Live metrics</h3>\n        <tag-ui text=\"● Live\" color=\"success\" size=\"sm\"></tag-ui>\n        <text-ui size=\"sm\" color=\"subtle\">Updated 2s ago</text-ui>\n      </row-ui>\n      <grid-ui columns=\"2 4@md\" gap=\"3\">\n        <card-ui>\n          <header><text-ui size=\"sm\" color=\"subtle\">Requests / sec</text-ui></header>\n          <section><text-ui size=\"lg\" strong>1,284</text-ui></section>\n        </card-ui>\n        <card-ui>\n          <header><text-ui size=\"sm\" color=\"subtle\">Latency p50</text-ui></header>\n          <section><text-ui size=\"lg\" strong>42ms</text-ui></section>\n        </card-ui>\n        <card-ui>\n          <header><text-ui size=\"sm\" color=\"subtle\">Error budget</text-ui></header>\n          <section>\n            <col-ui gap=\"1\">\n              <text-ui size=\"lg\" strong color=\"success\">96%</text-ui>\n              <progress-ui value=\"96\" total=\"100\" color=\"success\"></progress-ui>\n            </col-ui>\n          </section>\n        </card-ui>\n        <card-ui>\n          <header><text-ui size=\"sm\" color=\"subtle\">Active sessions</text-ui></header>\n          <section><text-ui size=\"lg\" strong>8,419</text-ui></section>\n        </card-ui>\n      </grid-ui>\n      <card-ui>\n        <header><text-ui strong>Throughput (last 60s)</text-ui></header>\n        <section>\n          <chart-ui type=\"line\" data='[{\"t\":0,\"v\":1100},{\"t\":10,\"v\":1180},{\"t\":20,\"v\":1240},{\"t\":30,\"v\":1284},{\"t\":40,\"v\":1310},{\"t\":50,\"v\":1295},{\"t\":60,\"v\":1284}]' height=\"120\"></chart-ui>\n        </section>\n      </card-ui>\n    </col-ui>\n  </section>",
  "source": "catalog/ui-patterns/v050-data-blocks/v050-data-blocks.contents.html",
  "metadata": {
    "domain": "data",
    "description": "Real-time metrics dashboard with live counter cards, streaming line chart, error-rate progress, and last-updated timestamp.",
    "keywords": [
      "real-time",
      "metrics",
      "live",
      "dashboard",
      "streaming",
      "counters",
      "charts",
      "websocket",
      "telemetry",
      "monitoring",
      "progress"
    ]
  },
  "captured_at": "2026-06-07T19:28:13.657Z",
  "template": [
    {
      "id": "text",
      "component": "Text",
      "variant": "heading",
      "textContent": "Live metrics"
    },
    {
      "id": "tag",
      "component": "Tag",
      "size": "sm",
      "text": "● Live"
    },
    {
      "id": "text-2",
      "component": "Text",
      "color": "subtle",
      "size": "sm",
      "textContent": "Updated 2s ago"
    },
    {
      "id": "row",
      "component": "Row",
      "align": "center",
      "gap": "3",
      "children": [
        "text",
        "tag",
        "text-2"
      ]
    },
    {
      "id": "text-3",
      "component": "Text",
      "color": "subtle",
      "size": "sm",
      "textContent": "Requests / sec"
    },
    {
      "id": "header",
      "component": "Header",
      "children": [
        "text-3"
      ]
    },
    {
      "id": "text-4",
      "component": "Text",
      "size": "lg",
      "strong": true,
      "textContent": "1,284"
    },
    {
      "id": "section",
      "component": "Section",
      "children": [
        "column-2"
      ]
    },
    {
      "id": "column-2",
      "component": "Column",
      "children": [
        "text-4"
      ]
    },
    {
      "id": "card",
      "component": "Card",
      "children": [
        "header",
        "section"
      ]
    },
    {
      "id": "text-5",
      "component": "Text",
      "color": "subtle",
      "size": "sm",
      "textContent": "Latency p50"
    },
    {
      "id": "header-2",
      "component": "Header",
      "children": [
        "text-5"
      ]
    },
    {
      "id": "text-6",
      "component": "Text",
      "size": "lg",
      "strong": true,
      "textContent": "42ms"
    },
    {
      "id": "section-2",
      "component": "Section",
      "children": [
        "column-3"
      ]
    },
    {
      "id": "column-3",
      "component": "Column",
      "children": [
        "text-6"
      ]
    },
    {
      "id": "card-2",
      "component": "Card",
      "children": [
        "header-2",
        "section-2"
      ]
    },
    {
      "id": "text-7",
      "component": "Text",
      "color": "subtle",
      "size": "sm",
      "textContent": "Error budget"
    },
    {
      "id": "header-3",
      "component": "Header",
      "children": [
        "text-7"
      ]
    },
    {
      "id": "text-8",
      "component": "Text",
      "color": "success",
      "size": "lg",
      "strong": true,
      "textContent": "96%"
    },
    {
      "id": "progress",
      "component": "Progress",
      "value": 96
    },
    {
      "id": "column-4",
      "component": "Column",
      "gap": "1",
      "children": [
        "text-8",
        "progress"
      ]
    },
    {
      "id": "section-3",
      "component": "Section",
      "children": [
        "column-4"
      ]
    },
    {
      "id": "card-3",
      "component": "Card",
      "children": [
        "header-3",
        "section-3"
      ]
    },
    {
      "id": "text-9",
      "component": "Text",
      "color": "subtle",
      "size": "sm",
      "textContent": "Active sessions"
    },
    {
      "id": "header-4",
      "component": "Header",
      "children": [
        "text-9"
      ]
    },
    {
      "id": "text-10",
      "component": "Text",
      "size": "lg",
      "strong": true,
      "textContent": "8,419"
    },
    {
      "id": "section-4",
      "component": "Section",
      "children": [
        "column-5"
      ]
    },
    {
      "id": "column-5",
      "component": "Column",
      "children": [
        "text-10"
      ]
    },
    {
      "id": "card-4",
      "component": "Card",
      "children": [
        "header-4",
        "section-4"
      ]
    },
    {
      "id": "grid",
      "component": "Grid",
      "columns": "2 4@md",
      "gap": "3",
      "children": [
        "card",
        "card-2",
        "card-3",
        "card-4"
      ]
    },
    {
      "id": "text-11",
      "component": "Text",
      "strong": true,
      "textContent": "Throughput (last 60s)"
    },
    {
      "id": "header-5",
      "component": "Header",
      "children": [
        "text-11"
      ]
    },
    {
      "id": "chart",
      "component": "Chart",
      "type": "line",
      "data": "[{\"t\":0,\"v\":1100},{\"t\":10,\"v\":1180},{\"t\":20,\"v\":1240},{\"t\":30,\"v\":1284},{\"t\":40,\"v\":1310},{\"t\":50,\"v\":1295},{\"t\":60,\"v\":1284}]"
    },
    {
      "id": "section-5",
      "component": "Section",
      "children": [
        "column-6"
      ]
    },
    {
      "id": "column-6",
      "component": "Column",
      "children": [
        "chart"
      ]
    },
    {
      "id": "card-5",
      "component": "Card",
      "children": [
        "header-5",
        "section-5"
      ]
    },
    {
      "id": "column",
      "component": "Column",
      "gap": "4",
      "children": [
        "row",
        "grid",
        "card-5"
      ]
    },
    {
      "id": "root",
      "component": "Section",
      "children": [
        "column"
      ]
    }
  ]
}
