import { DownOutlined } from "@ant-design/icons";

// 告警规则
export const alarmRulesEnums: Record<string, any>[] = [
  {
    label: '单人徘徊告警',
    key: '1',
  },
  {
    label: '多人聚集告警',
    key: '2',
  },
  {
    label: '敏感时间段告警',
    key: '3',
  },
  // {
  //   label: '已忽略',
  //   key: '4',
  // },
];

// 分布式设备状态
export const deviceStatusEnums: Record<string, any> = {
  allStatus: {
    miniName: '全部',
    value: '0',
    color: '',
  },
  onlineStatus: {
    miniName: '在线',
    value: '1',
    color: 'success',
  },
  outlineStatus: {
    miniName: '离线',
    value: '2',
    color: 'default',
  },
  processingStatus: {
    miniName: '运行中',
    value: '3',
    color: 'warning',
  },
  errorStatus: {
    miniName: '故障',
    value: '4',
    color: 'error',
  },
};
// 资源设备~
export const resourceDeviceStatusEnums: Record<string, any> = {
  allStatus: {
    miniName: '全部异常',
    value: '0',
    color: '',
    renderType: '',
  },
  storageWarn: {
    miniName: '存储告警',
    value: '1',
    color: 'error',
    renderType: 'progress',
  },
  GPUWarn: {
    miniName: 'GPU告警',
    value: '2',
    color: 'success',
    renderType: 'progress',
  },
  memoryWarn: {
    miniName: '内存告警',
    value: '3',
    color: 'success',
    renderType: 'progress',
  },
  errorStatus: {
    miniName: 'CPU告警',
    value: '4',
    color: 'warning',
    renderType: 'progress',
  },
  codeError: {
    miniName: '代码出错',
    value: '5',
    color: 'error',
    renderType: 'dot',
  },
  serveTimeOut: {
    miniName: '服务器超时',
    value: '6',
    color: 'error',
    renderType: 'dot',
  },
};
// 告警等级~
export const alarmLevelStatusEnum: Record<string, any>[] = [
  {
    color: 'rgba(232, 13, 13, 1)',
    value: '1',
    label: '紧急',
    isDelete: false,
    icon: 'ArrowUpOutlined',
    id: '1',
  },
  {
    color: 'rgba(255, 136, 0, 1)',
    value: '2',
    label: '较高',
    isDelete: false,
    id: '2',
  },
  {
    color: 'rgba(68, 139, 245, 1)',
    value: '3',
    label: '一般',
    isDelete: false,
    id: '3',
  },
  {
    color: 'rgba(179, 214, 0, 1)',
    value: '4',
    label: '低',
    isDelete: true,
    id: '4',
  },
  {
    color: 'rgba(81, 177, 6, 1)',
    value: '5',
    label: '较低',
    isDelete: true,
    id: '5',
  },
  {
    color: 'rgba(43, 183, 136, 1)',
    value: '6',
    label: '非常低',
    isDelete: true,
    id: '6',
  },
];
