-
-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): support resource monitor (#1471)
* feat(web): support resource monitor * refactor(web): adjust code * refactor(web): optimize request * fix
- Loading branch information
1 parent
9e2c17d
commit 4e3edb3
Showing
16 changed files
with
436 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// @ts-ignore | ||
/* eslint-disable */ | ||
/////////////////////////////////////////////////////////////////////// | ||
// // | ||
// this file is autogenerated by service-generate // | ||
// do not edit this file manually // | ||
// // | ||
/////////////////////////////////////////////////////////////////////// | ||
/// <reference path = "api-auto.d.ts" /> | ||
import request from "@/utils/request"; | ||
import useGlobalStore from "@/pages/globalStore"; | ||
|
||
/** | ||
* Get monitor metrics data | ||
*/ | ||
export async function MonitorControllerGetData( | ||
params: Paths.MonitorControllerGetData.BodyParameters, | ||
): Promise<{ | ||
error: string; | ||
data: Paths.MonitorControllerGetData.Responses; | ||
}> { | ||
// /v1/monitor/{appid}/metrics | ||
let _params: { [key: string]: any } = { | ||
appid: useGlobalStore.getState().currentApp?.appid || "", | ||
...params, | ||
}; | ||
return request(`/v1/monitor/${_params.appid}/metrics`, { | ||
method: "GET", | ||
params: params, | ||
}); | ||
} |
Oops, something went wrong.