@daocloud-proto/zestu 0.4.0-dev-a71abf56 → 0.4.0-rc2-dev-e3e82a35
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.
package/package.json
CHANGED
|
@@ -146,29 +146,4 @@ export type ReportResourceRequest = {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
export type ReportResourceResponse = {
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export type GetNodeResourceRequest = {
|
|
152
|
-
nodeName?: string
|
|
153
|
-
clusterName?: string
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export type GetNodeResourceResponse = {
|
|
157
|
-
nodeName?: string
|
|
158
|
-
clusterName?: string
|
|
159
|
-
deviceVendor?: string
|
|
160
|
-
deviceModel?: string
|
|
161
|
-
gpuMemory?: string
|
|
162
|
-
deviceQuantity?: RegisterResourceQuantity
|
|
163
|
-
cpuQuantity?: RegisterResourceQuantity
|
|
164
|
-
memoryQuantity?: RegisterResourceQuantity
|
|
165
|
-
storageQuantity?: RegisterResourceQuantity
|
|
166
|
-
gpuDevices?: NvidiaDevices[]
|
|
167
|
-
gpuType?: string
|
|
168
|
-
cpuVendor?: string
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export type DeleteNodeResourceRequest = {
|
|
172
|
-
nodeName?: string
|
|
173
|
-
clusterName?: string
|
|
174
149
|
}
|
|
@@ -109,12 +109,6 @@ export class Agent {
|
|
|
109
109
|
static ReportResource(req: ZestuIoApiResourcesV1alpha1Resources.ReportResourceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.ReportResourceResponse> {
|
|
110
110
|
return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.ReportResourceRequest, ZestuIoApiResourcesV1alpha1Resources.ReportResourceResponse>(`/zestu.io.api.v1alpha1.Agent/ReportResource`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
111
111
|
}
|
|
112
|
-
static GetNodeResource(req: ZestuIoApiResourcesV1alpha1Resources.GetNodeResourceRequest, initReq?: fm.InitReq): Promise<ZestuIoApiResourcesV1alpha1Resources.GetNodeResourceResponse> {
|
|
113
|
-
return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.GetNodeResourceRequest, ZestuIoApiResourcesV1alpha1Resources.GetNodeResourceResponse>(`/zestu.io.api.v1alpha1.Agent/GetNodeResource`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
114
|
-
}
|
|
115
|
-
static DeleteNodeResource(req: ZestuIoApiResourcesV1alpha1Resources.DeleteNodeResourceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
116
|
-
return fm.fetchReq<ZestuIoApiResourcesV1alpha1Resources.DeleteNodeResourceRequest, GoogleProtobufEmpty.Empty>(`/zestu.io.api.v1alpha1.Agent/DeleteNodeResource`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
117
|
-
}
|
|
118
112
|
}
|
|
119
113
|
export class Metrics {
|
|
120
114
|
static QueryMetricsRange(req: ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeRequest, initReq?: fm.InitReq): Promise<ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeResponse> {
|