import type { TableColumnData } from '@arco-design/web-vue/es/table/interface'

export const columns: TableColumnData[] = [
  {
    title: '序号',
    dataIndex: 'index',
    slotName: 'index',
    width: 80,
  },
  {
    title: '告警名称',
    dataIndex: 'alert_name',
    width: 200,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '状态',
    dataIndex: 'status',
    slotName: 'status',
    width: 100,
  },
  {
    title: '告警级别',
    dataIndex: 'severity',
    slotName: 'severity',
    width: 120,
  },
  {
    title: '摘要',
    dataIndex: 'summary',
    width: 250,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '开始时间',
    dataIndex: 'starts_at',
    slotName: 'starts_at',
    width: 180,
  },
  {
    title: '结束时间',
    dataIndex: 'ends_at',
    slotName: 'ends_at',
    width: 180,
  },
  {
    title: '持续时长',
    dataIndex: 'duration',
    slotName: 'duration',
    width: 120,
  },
  {
    title: '处理人',
    dataIndex: 'processed_by',
    width: 120,
    ellipsis: true,
  },
  {
    title: '处理时间',
    dataIndex: 'processed_at',
    slotName: 'processed_at',
    width: 180,
  },
  {
    title: '当前值',
    dataIndex: 'value',
    width: 120,
    ellipsis: true,
  },
  {
    title: '阈值',
    dataIndex: 'threshold',
    width: 120,
    ellipsis: true,
  },
  {
    title: '通知次数',
    dataIndex: 'notify_count',
    width: 100,
  },
  {
    title: '操作',
    dataIndex: 'actions',
    slotName: 'actions',
    fixed: 'right',
    width: 250,
  },
]
