feat(db): add instance health monitoring fields
This commit is contained in:
30
lib/types.ts
30
lib/types.ts
@@ -89,6 +89,16 @@ export type Database = {
|
||||
next_auto_sync_at: string | null;
|
||||
auto_sync_lock_until: string | null;
|
||||
auto_sync_lock_token: string | null;
|
||||
health_enabled: boolean;
|
||||
health_status: "ok" | "degraded" | "down" | "unknown";
|
||||
health_last_checked_at: string | null;
|
||||
health_last_ok_at: string | null;
|
||||
health_last_error: string | null;
|
||||
health_last_latency_ms: number | null;
|
||||
health_check_frequency_minutes: number;
|
||||
health_next_check_at: string | null;
|
||||
health_lock_until: string | null;
|
||||
health_lock_token: string | null;
|
||||
created_at: string;
|
||||
};
|
||||
Insert: {
|
||||
@@ -113,6 +123,16 @@ export type Database = {
|
||||
next_auto_sync_at?: string | null;
|
||||
auto_sync_lock_until?: string | null;
|
||||
auto_sync_lock_token?: string | null;
|
||||
health_enabled?: boolean;
|
||||
health_status?: "ok" | "degraded" | "down" | "unknown";
|
||||
health_last_checked_at?: string | null;
|
||||
health_last_ok_at?: string | null;
|
||||
health_last_error?: string | null;
|
||||
health_last_latency_ms?: number | null;
|
||||
health_check_frequency_minutes?: number;
|
||||
health_next_check_at?: string | null;
|
||||
health_lock_until?: string | null;
|
||||
health_lock_token?: string | null;
|
||||
created_at?: string;
|
||||
};
|
||||
Update: {
|
||||
@@ -137,6 +157,16 @@ export type Database = {
|
||||
next_auto_sync_at?: string | null;
|
||||
auto_sync_lock_until?: string | null;
|
||||
auto_sync_lock_token?: string | null;
|
||||
health_enabled?: boolean;
|
||||
health_status?: "ok" | "degraded" | "down" | "unknown";
|
||||
health_last_checked_at?: string | null;
|
||||
health_last_ok_at?: string | null;
|
||||
health_last_error?: string | null;
|
||||
health_last_latency_ms?: number | null;
|
||||
health_check_frequency_minutes?: number;
|
||||
health_next_check_at?: string | null;
|
||||
health_lock_until?: string | null;
|
||||
health_lock_token?: string | null;
|
||||
created_at?: string;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user