네트워크 오류 드롭 이력 추가

This commit is contained in:
seo
2026-07-25 23:15:18 +09:00
parent e500eb2876
commit 7f9a5d1a81
5 changed files with 201 additions and 3 deletions
+16
View File
@@ -599,11 +599,19 @@ function bootstrap_db(): void
tx_bytes BIGINT UNSIGNED NOT NULL,
rx_packets BIGINT UNSIGNED NOT NULL,
tx_packets BIGINT UNSIGNED NOT NULL,
rx_errors BIGINT UNSIGNED NOT NULL DEFAULT 0,
tx_errors BIGINT UNSIGNED NOT NULL DEFAULT 0,
rx_dropped BIGINT UNSIGNED NOT NULL DEFAULT 0,
tx_dropped BIGINT UNSIGNED NOT NULL DEFAULT 0,
rx_mbps DECIMAL(12,4) NULL,
tx_mbps DECIMAL(12,4) NULL,
rx_pps DECIMAL(12,2) NULL,
tx_pps DECIMAL(12,2) NULL,
rx_errors_per_sec DECIMAL(12,2) NULL,
tx_errors_per_sec DECIMAL(12,2) NULL,
rx_dropped_per_sec DECIMAL(12,2) NULL,
tx_dropped_per_sec DECIMAL(12,2) NULL,
create_ip VARCHAR(64) NULL,
@@ -688,6 +696,14 @@ function bootstrap_db(): void
"ALTER TABLE system_notice_state ADD COLUMN active_temp_delta DECIMAL(8,2) NULL AFTER active_reason",
"ALTER TABLE system_notice_state ADD COLUMN active_rpm_delta DECIMAL(12,2) NULL AFTER active_temp_delta",
"ALTER TABLE system_notice_state ADD COLUMN process_signature VARCHAR(255) NULL AFTER active_rpm_delta",
"ALTER TABLE network_usage_logs ADD COLUMN rx_errors BIGINT UNSIGNED NOT NULL DEFAULT 0 AFTER tx_packets",
"ALTER TABLE network_usage_logs ADD COLUMN tx_errors BIGINT UNSIGNED NOT NULL DEFAULT 0 AFTER rx_errors",
"ALTER TABLE network_usage_logs ADD COLUMN rx_dropped BIGINT UNSIGNED NOT NULL DEFAULT 0 AFTER tx_errors",
"ALTER TABLE network_usage_logs ADD COLUMN tx_dropped BIGINT UNSIGNED NOT NULL DEFAULT 0 AFTER rx_dropped",
"ALTER TABLE network_usage_logs ADD COLUMN rx_errors_per_sec DECIMAL(12,2) NULL AFTER tx_pps",
"ALTER TABLE network_usage_logs ADD COLUMN tx_errors_per_sec DECIMAL(12,2) NULL AFTER rx_errors_per_sec",
"ALTER TABLE network_usage_logs ADD COLUMN rx_dropped_per_sec DECIMAL(12,2) NULL AFTER tx_errors_per_sec",
"ALTER TABLE network_usage_logs ADD COLUMN tx_dropped_per_sec DECIMAL(12,2) NULL AFTER rx_dropped_per_sec",
"ALTER TABLE sensor_logs DROP COLUMN disk_total_gb",
"ALTER TABLE sensor_logs DROP COLUMN disk_used_gb",
"ALTER TABLE sensor_logs DROP COLUMN disk_free_gb",