import { Code, Rows, Waiting, ago, bytes, useMirror } from "../components/Mirror.jsx"; function Cloud({ data }) { return ( <> [name, `${one.invocations} runs, ${one.errors} errors, ${one.throttles} throttles, ${Math.round(one.duration_ms)} ms avg`])} /> ); } export function Stats() { const seen = useMirror("/stats/stats.json"); const data = seen?.data ?? null; const found = Object.entries(data?.errors ?? {}).flatMap(([name, list]) => list.map((one) => `${one.at ?? "sometime"} ${one.level} ${name} ${one.message}`)); return (

Stats

The CDN, the Lambdas and the bucket, read from the bucket every minute. Raw: stats.json, feed. The shop's own tick lives on automator.

Cloud

{data ? : }

Errors

{found.length ? : data ?

None in the window.

: }
); }