mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-04 04:54:16 +08:00
15 lines
422 B
Go
15 lines
422 B
Go
import http from '@/api';
|
|
import { Monitor } from '../interface/monitor';
|
|
|
|
export const loadMonitor = (param: Monitor.MonitorSearch) => {
|
|
return http.post<Array<Monitor.MonitorData>>(`/monitors/search`, param);
|
|
};
|
|
|
|
export const getNetworkOptions = () => {
|
|
return http.get<Array<string>>(`/monitors/netoptions`);
|
|
};
|
|
|
|
export const getIOOptions = () => {
|
|
return http.get<Array<string>>(`/monitors/iooptions`);
|
|
};
|