-- -- Table structure for table `ne_state` -- DROP TABLE IF EXISTS `ne_state`; CREATE TABLE `ne_state` ( `id` int NOT NULL AUTO_INCREMENT, `ne_id` bigint DEFAULT '0' COMMENT '网元ID', `create_time` bigint DEFAULT '0' COMMENT '创建时间', `sys_cpu_usage` float DEFAULT '0' COMMENT 'cpu使用率-sys', `sys_mem_usage` float DEFAULT '0' COMMENT '内存使用率-sys', `sys_disk_usage` float DEFAULT '0' COMMENT '磁盘使用率-sys', `nf_cpu_usage` float DEFAULT '0' COMMENT 'cpu使用率-nf', `nf_mem_used` bigint DEFAULT '0' COMMENT '内存使用KB-nf', PRIMARY KEY (`id`) USING BTREE, KEY `idx_state_ne_at` (`ne_id`,`create_time`) USING BTREE COMMENT '索引-网元_创建时间' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='网元_状态记录内存/CPU/磁盘';