@daocloud-proto/baize 0.102.3 → 0.102.5
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.
|
@@ -90,7 +90,6 @@ export type StorageClass = {
|
|
|
90
90
|
export type ListStorageClassesRequest = {
|
|
91
91
|
workspace?: number
|
|
92
92
|
cluster?: string
|
|
93
|
-
namespace?: string
|
|
94
93
|
page?: BaizeCommonCommon.Pagination
|
|
95
94
|
}
|
|
96
95
|
|
|
@@ -121,6 +120,6 @@ export class ClusterService {
|
|
|
121
120
|
return fm.fetchReq<ClusterSettingsRequest, GPUSettingsResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/settings/gpu-resources?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
122
121
|
}
|
|
123
122
|
static ListStorageClasses(req: ListStorageClassesRequest, initReq?: fm.InitReq): Promise<ListStorageClassesResponse> {
|
|
124
|
-
return fm.fetchReq<ListStorageClassesRequest, ListStorageClassesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/
|
|
123
|
+
return fm.fetchReq<ListStorageClassesRequest, ListStorageClassesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/storage-classes?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
|
|
125
124
|
}
|
|
126
125
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as BaizeCommonK8s from "../../../common/k8s.pb"
|
|
8
9
|
import * as fm from "../../../fetch.pb"
|
|
9
10
|
import * as BaizeManagement_apiJobV1alpha1Pytorch from "./pytorch.pb"
|
|
10
11
|
import * as BaizeManagement_apiJobV1alpha1Tfjob from "./tfjob.pb"
|
|
@@ -33,7 +34,9 @@ export enum JobActionRequestAction {
|
|
|
33
34
|
/* baize modified */ export type BaseJob = {
|
|
34
35
|
type?: JobType
|
|
35
36
|
queueName?: string
|
|
37
|
+
priorityClass?: string
|
|
36
38
|
runningDuration?: number
|
|
39
|
+
totalResources?: BaizeCommonK8s.Resources
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
export type Job = BaseJob
|
|
@@ -69,6 +72,7 @@ export type SingleJobRequest = {
|
|
|
69
72
|
name?: string
|
|
70
73
|
description?: string
|
|
71
74
|
queueName?: string
|
|
75
|
+
priorityClass?: string
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
export type CreateJobRequest = BaseCreateJobRequest
|
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
7
|
import * as fm from "../../../fetch.pb"
|
|
9
|
-
import * as BaizeManagement_apiJobV1alpha1Job from "../../job/v1alpha1/job.pb"
|
|
10
8
|
|
|
11
9
|
export enum QueryMetric {
|
|
12
10
|
QUERY_METRIC_UNSPECIFIED = "QUERY_METRIC_UNSPECIFIED",
|
|
@@ -32,6 +30,7 @@ export enum DevDashboardQueryMetric {
|
|
|
32
30
|
DEV_DASH_QUERY_RUNNING_TENSORFLOW_JOBS = "DEV_DASH_QUERY_RUNNING_TENSORFLOW_JOBS",
|
|
33
31
|
DEV_DASH_QUERY_TOTAL_TENSORFLOW_JOBS = "DEV_DASH_QUERY_TOTAL_TENSORFLOW_JOBS",
|
|
34
32
|
DEV_DASH_QUERY_TOTAL_DATASETS = "DEV_DASH_QUERY_TOTAL_DATASETS",
|
|
33
|
+
DEV_DASH_TASKS_STATS = "DEV_DASH_TASKS_STATS",
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
export enum QueryTimeSeriesMetric {
|
|
@@ -102,6 +101,10 @@ export type DevDashboardVectorQueryResponse = {
|
|
|
102
101
|
metric?: DevDashboardQueryMetric
|
|
103
102
|
}
|
|
104
103
|
|
|
104
|
+
export type MultipleDevDashboardVectorQueryResponse = {
|
|
105
|
+
items?: DevDashboardVectorQueryResponse[]
|
|
106
|
+
}
|
|
107
|
+
|
|
105
108
|
export type TimeSeriesVectorQueryResponse = {
|
|
106
109
|
matrix?: Matrix
|
|
107
110
|
error?: string
|
|
@@ -109,26 +112,6 @@ export type TimeSeriesVectorQueryResponse = {
|
|
|
109
112
|
metric?: QueryTimeSeriesMetric
|
|
110
113
|
}
|
|
111
114
|
|
|
112
|
-
export type TaskStatsBoard = {
|
|
113
|
-
cluster?: string
|
|
114
|
-
namespace?: string
|
|
115
|
-
type?: BaizeManagement_apiJobV1alpha1Job.JobType
|
|
116
|
-
running?: number
|
|
117
|
-
pending?: number
|
|
118
|
-
failed?: number
|
|
119
|
-
total?: number
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export type TaskStatsBoardRequest = {
|
|
123
|
-
workspace?: number
|
|
124
|
-
page?: BaizeCommonCommon.Pagination
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export type TaskStatsBoardResponse = {
|
|
128
|
-
items?: TaskStatsBoard[]
|
|
129
|
-
page?: BaizeCommonCommon.Pagination
|
|
130
|
-
}
|
|
131
|
-
|
|
132
115
|
export type QueryMultipleVectorRequest = {
|
|
133
116
|
queryMetrics?: QueryMetric[]
|
|
134
117
|
time?: string
|
|
@@ -139,16 +122,13 @@ export type QueryDevDashboardMultipleVectorRequest = {
|
|
|
139
122
|
queryMetrics?: DevDashboardQueryMetric[]
|
|
140
123
|
time?: string
|
|
141
124
|
workspace?: number
|
|
125
|
+
cluster?: string
|
|
142
126
|
}
|
|
143
127
|
|
|
144
128
|
export type MultipleVectorQueryResponse = {
|
|
145
129
|
items?: VectorQueryResponse[]
|
|
146
130
|
}
|
|
147
131
|
|
|
148
|
-
export type MultipleDevDashboardVectorQueryResponse = {
|
|
149
|
-
items?: VectorQueryResponse[]
|
|
150
|
-
}
|
|
151
|
-
|
|
152
132
|
export type QueryTimeSeriesVectorsRequest = {
|
|
153
133
|
queryMetrics?: QueryTimeSeriesMetric[]
|
|
154
134
|
queryMetricRange?: QueryTimeSeriesMetricRange
|
|
@@ -166,10 +146,7 @@ export class MetricsService {
|
|
|
166
146
|
static QueryTimeSeriesVectors(req: QueryTimeSeriesVectorsRequest, initReq?: fm.InitReq): Promise<QueryTimeSeriesVectorsResponse> {
|
|
167
147
|
return fm.fetchReq<QueryTimeSeriesVectorsRequest, QueryTimeSeriesVectorsResponse>(`/apis/baize.io/v1alpha1/metrics/time-series-queries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
168
148
|
}
|
|
169
|
-
static QueryDevDashboardMultipleVectors(req: QueryDevDashboardMultipleVectorRequest, initReq?: fm.InitReq): Promise<
|
|
170
|
-
return fm.fetchReq<QueryDevDashboardMultipleVectorRequest,
|
|
171
|
-
}
|
|
172
|
-
static QueryDevDashboardTaskStats(req: TaskStatsBoardRequest, initReq?: fm.InitReq): Promise<TaskStatsBoardResponse> {
|
|
173
|
-
return fm.fetchReq<TaskStatsBoardRequest, TaskStatsBoardResponse>(`/apis/baize.io/v1alpha1/metrics/dev-dashboard-task-stats?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
149
|
+
static QueryDevDashboardMultipleVectors(req: QueryDevDashboardMultipleVectorRequest, initReq?: fm.InitReq): Promise<MultipleDevDashboardVectorQueryResponse> {
|
|
150
|
+
return fm.fetchReq<QueryDevDashboardMultipleVectorRequest, MultipleDevDashboardVectorQueryResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/metrics/dev-dashboard-multiple-queries?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
174
151
|
}
|
|
175
152
|
}
|
|
@@ -43,6 +43,7 @@ export type Queue = {
|
|
|
43
43
|
resourcesAvailable?: QueueResource[]
|
|
44
44
|
status?: QueueStatus
|
|
45
45
|
strategy?: QueueStrategy
|
|
46
|
+
workspaceAlias?: string
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export type ListQueueRequest = {
|
|
@@ -105,7 +106,7 @@ export type CreateLocalQueueResponse = {
|
|
|
105
106
|
|
|
106
107
|
export class QueueManagement {
|
|
107
108
|
static ListQueues(req: ListQueueRequest, initReq?: fm.InitReq): Promise<ListQueueResponse> {
|
|
108
|
-
return fm.fetchReq<ListQueueRequest, ListQueueResponse>(`/apis/baize.io/v1alpha1/
|
|
109
|
+
return fm.fetchReq<ListQueueRequest, ListQueueResponse>(`/apis/baize.io/v1alpha1/queues?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
109
110
|
}
|
|
110
111
|
static CreateQueue(req: CreateQueueRequest, initReq?: fm.InitReq): Promise<Queue> {
|
|
111
112
|
return fm.fetchReq<CreateQueueRequest, Queue>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/queues`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|