initial import
This commit is contained in:
commit
14b0824b22
12
package.json
Normal file
12
package.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "fleet-dashboard",
|
||||
"version": "1.3.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/telemetry.js",
|
||||
"start": "node server.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.19.2"
|
||||
}
|
||||
}
|
||||
10
server.js
Normal file
10
server.js
Normal file
@ -0,0 +1,10 @@
|
||||
const express = require("express");
|
||||
const app = express();
|
||||
|
||||
const SUMMARY_PROMPT = "Summarize the following alarm burst for an " +
|
||||
"operations engineer in two sentences, most-critical first:";
|
||||
|
||||
app.get("/health", (_req, res) => res.json({ ok: true }));
|
||||
app.get("/alarms", (_req, res) => res.json({ alarms: [] }));
|
||||
|
||||
app.listen(process.env.PORT || 8080);
|
||||
Loading…
Reference in New Issue
Block a user