- Add esbuild build script to package.json - Add .gitignore for dist/ - Remove stale tsc-generated .js files (now bundled) - Include sense files generated by workflow run (hermes-gateway-health update, worker-process-metrics) - Clean up nerve.yaml (remove deleted workflows, migrate reflexes to interval)
18 lines
771 B
TypeScript
18 lines
771 B
TypeScript
import { integer, real, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
|
|
export const hermesGatewayHealth = sqliteTable("hermes_gateway_health", {
|
|
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
ts: integer("ts").notNull(),
|
|
alive: integer("alive").notNull(),
|
|
mainPid: integer("main_pid").notNull(),
|
|
rssBytes: integer("rss_bytes").notNull(),
|
|
cpuPercent: real("cpu_percent").notNull(),
|
|
uptimeSec: integer("uptime_sec").notNull(),
|
|
activeSessions: integer("active_sessions").notNull(),
|
|
childProcessCount: integer("child_process_count").notNull(),
|
|
httpOk: integer("http_ok").notNull(),
|
|
httpStatusCode: integer("http_status_code").notNull(),
|
|
httpLatencyMs: integer("http_latency_ms").notNull(),
|
|
httpError: text("http_error").notNull(),
|
|
});
|