Files
be.ems/database/upgrade/monitor_base.sql
2023-08-16 14:08:55 +08:00

39 lines
1.4 KiB
SQL

/*
Navicat Premium Data Transfer
Source Server : root@192.168.0.229
Source Server Type : MariaDB
Source Server Version : 100335 (10.3.35-MariaDB-log)
Source Host : 192.168.0.229:33066
Source Schema : omc_db
Target Server Type : MariaDB
Target Server Version : 100335 (10.3.35-MariaDB-log)
File Encoding : 65001
Date: 16/08/2023 09:31:32
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for monitor_base
-- ----------------------------
DROP TABLE IF EXISTS `monitor_base`;
CREATE TABLE `monitor_base` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id',
`created_at` datetime NULL DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime NULL DEFAULT NULL COMMENT '更新时间',
`cpu` float NULL DEFAULT NULL COMMENT 'cpu使用率',
`load_usage` float NULL DEFAULT NULL COMMENT 'cpu平均使用率',
`cpu_load1` float NULL DEFAULT NULL COMMENT 'cpu使用1分钟',
`cpu_load5` float NULL DEFAULT NULL COMMENT 'cpu使用5分钟',
`cpu_load15` float NULL DEFAULT NULL COMMENT 'cpu使用15分钟',
`memory` float NULL DEFAULT NULL COMMENT '内存使用率',
`db_size` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '数据库使用空间K',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '监控_基本信息' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;