| 1 | import type { FlaskBaseResponse } from "@/types/flask.d" |
| 2 | import type { |
| 3 | InfluxDBAlertQueryParams, |
| 4 | InfluxDBAlertResponse, |
| 5 | InfluxDBCheckNamesResponse |
| 6 | } from "@/types/healthchecks.d" |
| 7 | import { HttpClient } from "../httpClient" |
| 8 | |
| 9 | export default { |
| 10 | getHealthchecks(params?: InfluxDBAlertQueryParams) { |
| 11 | return HttpClient.get<FlaskBaseResponse & InfluxDBAlertResponse>(`/influxdb/alerts`, { params }) |
| 12 | }, |
| 13 | |
| 14 | getCheckNames() { |
| 15 | return HttpClient.get<FlaskBaseResponse & InfluxDBCheckNamesResponse>(`/influxdb/check-names`) |
| 16 | } |
| 17 | |
| 18 | // index health : Api.wazuh.indices.getClusterHealth() |
| 19 | // graylog health : Api.graylog.getMetrics() |
| 20 | } |