milestone 27: diagnostics — operational failures land in one curated log, resolved history purgeable
Gates / frontend (push) Successful in 1m33s
Gates / test (push) Successful in 1m48s
Gates / test-aarch64 (push) Successful in 7m10s
Gates / package (push) Successful in 5m31s
Gates / container (push) Successful in 15s
CI / gates (push) Successful in 14m51s
Gates / frontend (push) Successful in 1m33s
Gates / test (push) Successful in 1m48s
Gates / test-aarch64 (push) Successful in 7m10s
Gates / package (push) Successful in 5m31s
Gates / container (push) Successful in 15s
CI / gates (push) Successful in 14m51s
This commit is contained in:
@@ -16,6 +16,9 @@ import type {
|
||||
BlocklistEcho,
|
||||
Client,
|
||||
ClientPrefix,
|
||||
DiagnosticEvent,
|
||||
DiagnosticsPage,
|
||||
DiagnosticsPurge,
|
||||
ErrorEnvelope,
|
||||
ForwardZone,
|
||||
Group,
|
||||
@@ -39,6 +42,11 @@ import type {
|
||||
} from "@/lib/types";
|
||||
|
||||
export const sample_get_health: Health = {
|
||||
diagnostics: {
|
||||
active_errors: 0,
|
||||
active_warnings: 0,
|
||||
state: "recording",
|
||||
},
|
||||
disk: {
|
||||
db_bytes: 0,
|
||||
free_bytes: 0,
|
||||
@@ -73,6 +81,57 @@ export const sample_logout: LogoutResponse = {
|
||||
authenticated: false,
|
||||
};
|
||||
|
||||
export const sample_get_diagnostics: DiagnosticsPage = {
|
||||
active: {
|
||||
errors: 0,
|
||||
warnings: 0,
|
||||
},
|
||||
events: [
|
||||
{
|
||||
code: "upstream_history.write",
|
||||
component: "upstream_history",
|
||||
detail: "Busy",
|
||||
first_seen: 0,
|
||||
id: 0,
|
||||
last_seen: 0,
|
||||
occurrences: 0,
|
||||
resolved_at: 0,
|
||||
severity: "warning",
|
||||
subject: "history",
|
||||
},
|
||||
{
|
||||
code: "blocklist.refresh",
|
||||
component: "blocklist",
|
||||
detail: "download failed: ConnectionTimedOut",
|
||||
first_seen: 0,
|
||||
id: 0,
|
||||
last_seen: 0,
|
||||
occurrences: 0,
|
||||
resolved_at: null,
|
||||
severity: "warning",
|
||||
subject: "StevenBlack",
|
||||
},
|
||||
],
|
||||
next_before: null,
|
||||
};
|
||||
|
||||
export const sample_get_diagnostic: DiagnosticEvent = {
|
||||
code: "blocklist.refresh",
|
||||
component: "blocklist",
|
||||
detail: "download failed: ConnectionTimedOut",
|
||||
first_seen: 0,
|
||||
id: 0,
|
||||
last_seen: 0,
|
||||
occurrences: 0,
|
||||
resolved_at: null,
|
||||
severity: "warning",
|
||||
subject: "StevenBlack",
|
||||
};
|
||||
|
||||
export const sample_purge_diagnostics: DiagnosticsPurge = {
|
||||
purged: 0,
|
||||
};
|
||||
|
||||
export const sample_create_blocklist: BlocklistEcho = {
|
||||
enabled: false,
|
||||
id: 0,
|
||||
|
||||
Reference in New Issue
Block a user