feat: 网元状态记录内存/CPU/磁盘列表
This commit is contained in:
@@ -7,13 +7,15 @@ CREATE TABLE "ne_state" (
|
||||
"ne_type" text(16),
|
||||
"ne_id" text(32),
|
||||
"version" text(16),
|
||||
"capability" text(64),
|
||||
"capability" integer,
|
||||
"serial_num" text(16),
|
||||
"expiry_date" text(10),
|
||||
"cpu_usage" text,
|
||||
"mem_usage" text,
|
||||
"disk_space" text,
|
||||
"timestamp" integer(20),
|
||||
"sys_cpu_usage" integer,
|
||||
"sys_mem_usage" integer,
|
||||
"sys_disk_usage" integer,
|
||||
"nf_cpu_usage" integer,
|
||||
"nf_mem_used" integer,
|
||||
"create_time" integer,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
@@ -24,7 +26,7 @@ CREATE INDEX "idx_type_id_time"
|
||||
ON "ne_state" (
|
||||
"ne_type" ASC,
|
||||
"ne_id" ASC,
|
||||
"timestamp" ASC
|
||||
"create_time" ASC
|
||||
);
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user