New integration kinds adguard (status, statistics, filter lists and a real DNS question over UDP; alerts for DNS down/not running, protection left off, stale lists) and grafana (alert rules firing or failing, data-source health). Optional warning for running Docker images built more than N days ago (off by default). A server's overview cards can be folded and arranged, kept per user. Migrations 0075-0077; docs, metrics and tests included. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
24 lines
760 B
SQL
24 lines
760 B
SQL
CREATE TABLE `adguard_state` (
|
|
`integration_id` integer PRIMARY KEY NOT NULL,
|
|
`version` text,
|
|
`running` integer DEFAULT true NOT NULL,
|
|
`protection_enabled` integer DEFAULT true NOT NULL,
|
|
`protection_off_since` text,
|
|
`dns_port` integer DEFAULT 53 NOT NULL,
|
|
`stats` text,
|
|
`filters` text,
|
|
`probe` text,
|
|
`probe_fail_since` text,
|
|
`updated_at` text NOT NULL,
|
|
FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `grafana_state` (
|
|
`integration_id` integer PRIMARY KEY NOT NULL,
|
|
`version` text,
|
|
`rules` text,
|
|
`datasources` text,
|
|
`updated_at` text NOT NULL,
|
|
FOREIGN KEY (`integration_id`) REFERENCES `integrations`(`id`) ON UPDATE no action ON DELETE cascade
|
|
);
|