@daocloud-proto/kpanda 0.42.2-dev-feb25949 → 0.43.0-dev-4972be3d

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.
@@ -59,6 +59,7 @@ export type ListClustersRequest = {
59
59
  showVirtualCluster?: boolean
60
60
  fuzzyName?: string
61
61
  excludeMetrics?: boolean
62
+ showShimCluster?: boolean
62
63
  }
63
64
 
64
65
  export type ListClustersResponse = {
@@ -219,6 +220,7 @@ export type ListClusterSummaryRequest = {
219
220
  showVirtualCluster?: boolean
220
221
  filterByStrategy?: boolean
221
222
  filterBySnapshot?: boolean
223
+ showShimCluster?: boolean
222
224
  }
223
225
 
224
226
  export type ClusterSummary = {
@@ -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 = {
@@ -21,8 +22,24 @@ export type ListGPURequest = {
21
22
  searchNodeName?: string
22
23
  searchGPUModel?: string
23
24
  searchVendor?: string
25
+ searchDeviceUUID?: string
26
+ searchGPUID?: string
24
27
  }
25
28
 
26
29
  export type ListGPUResponse = {
27
30
  items?: DeviceGPU[]
31
+ }
32
+
33
+ export type GetDashboardURLRequest = {
34
+ cluster?: string
35
+ node?: string
36
+ vendor?: string
37
+ gpuIndex?: number
38
+ from?: string
39
+ to?: string
40
+ }
41
+
42
+ export type GetDashboardURLResponse = {
43
+ urlEN?: string
44
+ urlZH?: string
28
45
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.42.2-dev-feb25949",
3
+ "version":"v0.43.0-dev-4972be3d",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {