mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 22:48:03 +08:00
简化接口
This commit is contained in:
parent
b3bf33f07c
commit
11f54c7b2e
@ -1,23 +1,6 @@
|
||||
import { defaultRequest as rq } from "./request";
|
||||
import type { R } from "./request";
|
||||
|
||||
/**
|
||||
* 应用集群流量详情
|
||||
*/
|
||||
export const metricByAppApi = (params?: object): Promise<R<any>> => {
|
||||
// return rq.get<R<any>>("${BSMS_URL}/sentinel/es/metric/app", params);
|
||||
return rq.get<R<any>>("${GATEWAY_URL}/${SERVICE_ID}/sentinel/metric/app", { params });
|
||||
};
|
||||
|
||||
/**
|
||||
* 资源列表
|
||||
*/
|
||||
export const resourcesApi = (params?: object): Promise<R<any>> => {
|
||||
// return rq.get<R<any>>("${BSMS_URL}/sentinel/es/resources", params);
|
||||
return rq.get<R<any>>("${GATEWAY_URL}/${SERVICE_ID}/sentinel/resources", { params });
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* 流量直方图
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user