/*
 Navicat Premium Data Transfer

 Source Server         : local_mariadb
 Source Server Type    : MariaDB
 Source Server Version : 100338 (10.3.38-MariaDB)
 Source Host           : localhost:33066
 Source Schema         : omc_db

 Target Server Type    : MariaDB
 Target Server Version : 100338 (10.3.38-MariaDB)
 File Encoding         : 65001

 Date: 25/07/2023 11:13:16
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for alarm_define
-- ----------------------------
DROP TABLE IF EXISTS `alarm_define`;
CREATE TABLE `alarm_define`  (
  `alarm_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `alarm_code` int(11) NULL DEFAULT NULL,
  `alarm_title_cn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `alarm_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `ne_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `alarm_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  `orig_severity` enum('Critical','Major','Minor','Warning','Event') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'Warning' COMMENT 'Critical, Major, Minor, Warning, Event(Only VNF)',
  `object_uid` varchar(28) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `object_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0',
  `object_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `location_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `specific_problem` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `specific_problem_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `add_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `threshold` bigint(20) NULL DEFAULT NULL,
  `status` enum('Inactive','Active') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'Active',
  PRIMARY KEY (`alarm_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of alarm_define
-- ----------------------------
INSERT INTO `alarm_define` VALUES ('RJHXEMSCM10100', 10100, 'License即将过期', 'The license is about to expire', 'EMS', 'EnvironmentalAlarm', 'Warning', NULL, 'EMS;CM;License', 'CM', '', 'Alarm cause: the license expiration time is less than %d days', 'AC10100', '', 15, 'Active');
INSERT INTO `alarm_define` VALUES ('RJHXEMSPM10200', 10200, '性能越限', 'Performance exceeds the threshold', 'EMS', 'QualityOfServiceAlarm', 'Warning', NULL, 'EMS;PM', 'PM', '', 'Alarm cause: performance exceed threshold, alarm generate from omc', 'AC10200', '', NULL, 'Active');
INSERT INTO `alarm_define` VALUES ('RJHXEMSSM10000', 10000, '系统状态异常', 'The system state is abnormal', 'EMS', 'EquipmentAlarm', 'Major', NULL, 'EMS;SystemManagement;Heartbeat', 'SystemState', '', 'Alarm cause: the system state of target NE  has not been received for %d seconds', 'AC10000', '', 30, 'Active');
INSERT INTO `alarm_define` VALUES ('RJHXEMSSM10001', 10001, 'CPU占用率越限', 'CPU usage exceeds the threshold', 'EMS', 'EnvironmentalAlarm', 'Minor', NULL, 'EMS;SystemManagement;Heartbeat', 'SystemState', '', 'Alarm cause: the CPU occupancy rate of the target NE exceeds  %d', 'AC10001', '', 70, 'Active');

SET FOREIGN_KEY_CHECKS = 1;
