Kick off (#1)

* Kick off
* Update LICENSE copyright
This commit is contained in:
2026-04-11 13:22:36 +02:00
committed by GitHub
parent 1f1e74c9f8
commit 3882a1941a
76 changed files with 17154 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
CREATE TABLE check_results (
id INTEGER PRIMARY KEY AUTOINCREMENT,
monitor_name TEXT NOT NULL,
checked_at INTEGER NOT NULL,
status TEXT NOT NULL,
response_time_ms INTEGER,
error_message TEXT,
attempts INTEGER NOT NULL
);
CREATE INDEX idx_results_monitor_time ON check_results(monitor_name, checked_at DESC);
CREATE TABLE monitor_state (
monitor_name TEXT PRIMARY KEY,
current_status TEXT NOT NULL,
consecutive_failures INTEGER DEFAULT 0,
last_status_change INTEGER,
last_checked INTEGER
);
CREATE TABLE alerts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
monitor_name TEXT NOT NULL,
alert_type TEXT NOT NULL,
sent_at INTEGER NOT NULL,
alert_name TEXT NOT NULL,
success INTEGER NOT NULL
);
CREATE INDEX idx_alerts_monitor ON alerts(monitor_name, sent_at DESC);