@daocloud-proto/kpanda 0.42.0-dev-71e97ffc → 0.42.0-dev-53bd3851
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.
|
@@ -14,6 +14,7 @@ export type DeviceGPU = {
|
|
|
14
14
|
nodeName?: string
|
|
15
15
|
frameBufferMemoryUtilization?: string
|
|
16
16
|
coreUtilization?: string
|
|
17
|
+
supportDashboard?: boolean
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export type ListGPURequest = {
|
|
@@ -25,4 +26,18 @@ export type ListGPURequest = {
|
|
|
25
26
|
|
|
26
27
|
export type ListGPUResponse = {
|
|
27
28
|
items?: DeviceGPU[]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type GetDashboardURLRequest = {
|
|
32
|
+
cluster?: string
|
|
33
|
+
node?: string
|
|
34
|
+
vendor?: string
|
|
35
|
+
gpuIndex?: number
|
|
36
|
+
from?: string
|
|
37
|
+
to?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type GetDashboardURLResponse = {
|
|
41
|
+
urlEN?: string
|
|
42
|
+
urlZH?: string
|
|
28
43
|
}
|
|
@@ -1176,4 +1176,7 @@ export class Devices {
|
|
|
1176
1176
|
static ListGPUDevices(req: KpandaIoApiDevicesV1alpha1Gpu.ListGPURequest, initReq?: fm.InitReq): Promise<KpandaIoApiDevicesV1alpha1Gpu.ListGPUResponse> {
|
|
1177
1177
|
return fm.fetchReq<KpandaIoApiDevicesV1alpha1Gpu.ListGPURequest, KpandaIoApiDevicesV1alpha1Gpu.ListGPUResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gpu-devices?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
1178
1178
|
}
|
|
1179
|
+
static GetDashboardURL(req: KpandaIoApiDevicesV1alpha1Gpu.GetDashboardURLRequest, initReq?: fm.InitReq): Promise<KpandaIoApiDevicesV1alpha1Gpu.GetDashboardURLResponse> {
|
|
1180
|
+
return fm.fetchReq<KpandaIoApiDevicesV1alpha1Gpu.GetDashboardURLRequest, KpandaIoApiDevicesV1alpha1Gpu.GetDashboardURLResponse>(`/apis/kpanda.io/v1alpha1/grafana-dashboards/gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
1181
|
+
}
|
|
1179
1182
|
}
|