import { request } from '@/api/request'

export const fetchAlertEvents = (data: {
  page?: number
  page_size?: number
  alert_record_id?: number
  event_type?: string
  source?: string
  severity?: string
  start_time?: string
  end_time?: string
  keyword?: string
  sort?: string
  order?: string
}) => request.get('/Alert/v1/event/list', { params: data })

export const fetchAlertEventDetail = (id: number) => request.get(`/Alert/v1/event/get/${id}`)
