export const columns = [
  {
    dataIndex: 'name',
    title: '设备名称',
    width: 180,
  },
  {
    dataIndex: 'category',
    title: '设备类型',
    width: 120,
    slotName: 'category',
  },
  {
    dataIndex: 'vendor',
    title: '厂商',
    width: 120,
  },
  {
    dataIndex: 'model',
    title: '型号',
    width: 150,
  },
  {
    dataIndex: 'host',
    title: 'IP:端口',
    width: 170,
    slotName: 'host_port',
  },
  {
    dataIndex: 'protocol',
    title: '协议',
    width: 130,
    slotName: 'protocol',
  },
  {
    dataIndex: 'interval',
    title: '采集间隔',
    width: 110,
    slotName: 'interval',
  },
  {
    dataIndex: 'enabled',
    title: '启用状态',
    width: 100,
    slotName: 'enabled',
  },
  {
    dataIndex: 'status',
    title: '状态',
    width: 100,
    slotName: 'status',
  },
  {
    dataIndex: 'response_time',
    title: '响应时间',
    width: 110,
    slotName: 'response_time',
  },
  {
    dataIndex: 'last_check_time',
    title: '最近检查',
    width: 180,
    slotName: 'last_check_time',
  },
  {
    dataIndex: 'tags',
    title: '标签',
    width: 180,
    slotName: 'tags',
  },
  {
    dataIndex: 'actions',
    title: '操作',
    width: 200,
    fixed: 'right' as const,
    slotName: 'actions',
  },
]
