export const columns = [
  {
    dataIndex: 'id',
    title: 'ID',
    width: 80,
    slotName: 'id',
  },
  {
    dataIndex: 'service_identity',
    title: '服务标识',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    dataIndex: 'name',
    title: '服务名称',
    width: 150,
    ellipsis: true,
    tooltip: true,
  },
  {
    dataIndex: 'type',
    title: '数据库类型',
    width: 120,
    slotName: 'type',
  },
  {
    dataIndex: 'host',
    title: '主机地址',
    width: 140,
    ellipsis: true,
    tooltip: true,
  },
  {
    dataIndex: 'port',
    title: '端口',
    width: 80,
  },
  {
    dataIndex: 'database',
    title: '数据库名',
    width: 120,
    slotName: 'database',
  },
  {
    dataIndex: 'enabled',
    title: '监控状态',
    width: 100,
    slotName: 'enabled',
  },
  {
    dataIndex: 'collect_on',
    title: '进程内采集',
    width: 120,
    slotName: 'collect_on',
  },
  {
    dataIndex: 'status',
    title: '运行状态',
    width: 100,
    slotName: 'status',
  },
  {
    dataIndex: 'response_time',
    title: '响应时间(ms)',
    width: 120,
    slotName: 'response_time',
  },
  {
    dataIndex: 'uptime',
    title: '运行时长',
    width: 120,
    slotName: 'uptime',
  },
  {
    dataIndex: 'last_check_time',
    title: '最后检查时间',
    width: 160,
    slotName: 'last_check_time',
  },
  {
    dataIndex: 'tags',
    title: '标签',
    width: 150,
    slotName: 'tags',
  },
  {
    dataIndex: 'description',
    title: '描述',
    width: 200,
    ellipsis: true,
    tooltip: true,
  },
  {
    dataIndex: 'actions',
    title: '操作',
    width: 280,
    fixed: 'right' as const,
    slotName: 'actions',
  },
]
