@daocloud-proto/infery 0.0.0-dev-c6ffc97d → 0.0.0-dev-fba3ab72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -296,6 +296,19 @@ export type GetModelServingRequest = {
|
|
|
296
296
|
name?: string
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
+
export type GetModelServingGrafanaDashboardRequest = {
|
|
300
|
+
workspace?: number
|
|
301
|
+
name?: string
|
|
302
|
+
from?: string
|
|
303
|
+
to?: string
|
|
304
|
+
lang?: string
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export type GetModelServingGrafanaDashboardResponse = {
|
|
308
|
+
url?: string
|
|
309
|
+
dashboardUid?: string
|
|
310
|
+
}
|
|
311
|
+
|
|
299
312
|
export type ListModelServingResourcesRequest = {
|
|
300
313
|
workspace?: number
|
|
301
314
|
name?: string
|
|
@@ -497,6 +510,9 @@ export class ModelServingManagement {
|
|
|
497
510
|
static GetModelServing(req: GetModelServingRequest, initReq?: fm.InitReq): Promise<GetModelServingResponse> {
|
|
498
511
|
return fm.fetchReq<GetModelServingRequest, GetModelServingResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "name"])}`, {...initReq, method: "GET"})
|
|
499
512
|
}
|
|
513
|
+
static GetModelServingGrafanaDashboard(req: GetModelServingGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GetModelServingGrafanaDashboardResponse> {
|
|
514
|
+
return fm.fetchReq<GetModelServingGrafanaDashboardRequest, GetModelServingGrafanaDashboardResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/grafana-dashboard?${fm.renderURLSearchParams(req, ["workspace", "name"])}`, {...initReq, method: "GET"})
|
|
515
|
+
}
|
|
500
516
|
static ListModelServingResources(req: ListModelServingResourcesRequest, initReq?: fm.InitReq): Promise<ListModelServingResourcesResponse> {
|
|
501
517
|
return fm.fetchReq<ListModelServingResourcesRequest, ListModelServingResourcesResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["name"]}/resources?${fm.renderURLSearchParams(req, ["workspace", "name"])}`, {...initReq, method: "GET"})
|
|
502
518
|
}
|
|
@@ -106,8 +106,13 @@ export type ListImagesRequest = {
|
|
|
106
106
|
workspace?: number
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
export type ImageOption = {
|
|
110
|
+
name?: string
|
|
111
|
+
image?: string
|
|
112
|
+
}
|
|
113
|
+
|
|
109
114
|
export type ListImagesResponse = {
|
|
110
|
-
items?:
|
|
115
|
+
items?: ImageOption[]
|
|
111
116
|
}
|
|
112
117
|
|
|
113
118
|
export type KubernetesObjectMeta = {
|