@daocloud-proto/skoala 0.7.1 → 0.7.2-4
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/api/general/v1alpha1/common.pb.ts +18 -0
- package/api/hosted/v1alpha1/{extension.pb.ts → gateway_plugin.pb.ts} +36 -5
- package/api/hosted/v1alpha1/{gatewaysecret.pb.ts → gateway_secret.pb.ts} +0 -0
- package/api/hosted/v1alpha1/{gatewayservice.pb.ts → gateway_service.pb.ts} +0 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +16 -8
- package/api/hosted/v1alpha1/sentinel.pb.ts +85 -5
- package/api/skoala/v1alpha1/skoala.pb.ts +84 -60
- package/gogoproto/gogo.pb.ts +1 -0
- package/graph/v1alpha1/graph.pb.ts +111 -0
- package/insight/v1alpha1/alert.pb.ts +4 -7
- package/insight/v1alpha1/notify.pb.ts +11 -4
- package/log/v1alpha1/log.pb.ts +17 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +17 -4
- package/resource/v1alpha1/job.pb.ts +10 -8
- package/resource/v1alpha1/node.pb.ts +14 -2
- package/resource/v1alpha1/pod.pb.ts +3 -2
- package/resource/v1alpha1/service.pb.ts +2 -0
- package/resource/v1alpha1/type.pb.ts +17 -0
- package/resource/v1alpha1/workload.pb.ts +2 -1
- package/tracing/v1alpha1/model.pb.ts +86 -0
- package/tracing/v1alpha1/query.pb.ts +48 -0
- package/tracing/v1alpha1/tracing.pb.ts +2 -0
|
@@ -59,6 +59,12 @@ export enum TimeUnit {
|
|
|
59
59
|
Second = "Second",
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
export enum PluginSwitchStatus {
|
|
63
|
+
PLUGIN_SWITCH_STATUS_UNSPECIFIED = "PLUGIN_SWITCH_STATUS_UNSPECIFIED",
|
|
64
|
+
On = "On",
|
|
65
|
+
Off = "Off",
|
|
66
|
+
}
|
|
67
|
+
|
|
62
68
|
export type Cluster = {
|
|
63
69
|
id?: string
|
|
64
70
|
name?: string
|
|
@@ -90,4 +96,16 @@ export type API = {
|
|
|
90
96
|
nacosGroupName?: string
|
|
91
97
|
dataType?: APIDataType
|
|
92
98
|
detail?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type Image = {
|
|
102
|
+
registry?: string
|
|
103
|
+
repository?: string
|
|
104
|
+
tag?: string
|
|
105
|
+
pullPolicy?: string
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type Chart = {
|
|
109
|
+
version?: string
|
|
110
|
+
images?: {[key: string]: Image}
|
|
93
111
|
}
|
|
@@ -5,17 +5,24 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
8
9
|
export type GatewayRLSConfig = {
|
|
10
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
11
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
12
|
+
replicas?: number
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type GatewayRLSRule = {
|
|
9
16
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
10
17
|
requestsPerUnit?: number
|
|
11
18
|
}
|
|
12
19
|
|
|
13
|
-
export type
|
|
20
|
+
export type SwitchGatewayRLSReq = {
|
|
14
21
|
workspaceId?: string
|
|
15
22
|
clusterName?: string
|
|
16
23
|
namespaceName?: string
|
|
17
24
|
gatewayName?: string
|
|
18
|
-
|
|
25
|
+
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
export type GetGatewayRLSReq = {
|
|
@@ -26,25 +33,49 @@ export type GetGatewayRLSReq = {
|
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
export type GetGatewayRLSRes = {
|
|
29
|
-
|
|
36
|
+
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
30
37
|
}
|
|
31
38
|
|
|
32
|
-
export type
|
|
39
|
+
export type SetGatewayRLSConfigReq = {
|
|
33
40
|
workspaceId?: string
|
|
34
41
|
clusterName?: string
|
|
35
42
|
namespaceName?: string
|
|
36
43
|
gatewayName?: string
|
|
44
|
+
config?: GatewayRLSConfig
|
|
37
45
|
}
|
|
38
46
|
|
|
39
|
-
export type
|
|
47
|
+
export type GetGatewayRLSConfigReq = {
|
|
40
48
|
workspaceId?: string
|
|
41
49
|
clusterName?: string
|
|
42
50
|
namespaceName?: string
|
|
43
51
|
gatewayName?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type GetGatewayRLSConfigRes = {
|
|
44
55
|
config?: GatewayRLSConfig
|
|
45
56
|
}
|
|
46
57
|
|
|
58
|
+
export type SetGatewayRLSRuleReq = {
|
|
59
|
+
workspaceId?: string
|
|
60
|
+
clusterName?: string
|
|
61
|
+
namespaceName?: string
|
|
62
|
+
gatewayName?: string
|
|
63
|
+
rule?: GatewayRLSRule
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type GetGatewayRLSRuleReq = {
|
|
67
|
+
workspaceId?: string
|
|
68
|
+
clusterName?: string
|
|
69
|
+
namespaceName?: string
|
|
70
|
+
gatewayName?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type GetGatewayRLSRuleRes = {
|
|
74
|
+
rule?: GatewayRLSRule
|
|
75
|
+
}
|
|
76
|
+
|
|
47
77
|
export type GatewayAuthzConfig = {
|
|
78
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
48
79
|
}
|
|
49
80
|
|
|
50
81
|
export type CreateGatewayAuthzReq = {
|
|
File without changes
|
|
File without changes
|
|
@@ -157,10 +157,7 @@ export type RestartNacosReq = {
|
|
|
157
157
|
|
|
158
158
|
export type NacosConfig = {
|
|
159
159
|
type?: NacosConfigType
|
|
160
|
-
|
|
161
|
-
imageRegistry?: string
|
|
162
|
-
imageRepository?: string
|
|
163
|
-
imageTag?: string
|
|
160
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
164
161
|
replicas?: number
|
|
165
162
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
166
163
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -276,6 +273,8 @@ export type GetNacosServiceInsightReq = {
|
|
|
276
273
|
nacosNamespace?: string
|
|
277
274
|
nacosGroupName?: string
|
|
278
275
|
nacosService?: string
|
|
276
|
+
start?: string
|
|
277
|
+
end?: string
|
|
279
278
|
}
|
|
280
279
|
|
|
281
280
|
export type GetNacosServiceInsightRes = {
|
|
@@ -291,8 +290,8 @@ export type UpdateNacosServiceReq = {
|
|
|
291
290
|
nacosGroupName?: string
|
|
292
291
|
nacosService?: string
|
|
293
292
|
protectThreshold?: number
|
|
294
|
-
metadata?: string
|
|
295
|
-
selector?: string
|
|
293
|
+
metadata?: {[key: string]: string}
|
|
294
|
+
selector?: {[key: string]: string}
|
|
296
295
|
}
|
|
297
296
|
|
|
298
297
|
export type DeleteNacosServiceReq = {
|
|
@@ -425,7 +424,7 @@ export type UpdateNacosServiceInstanceReq = {
|
|
|
425
424
|
ephemeral?: boolean
|
|
426
425
|
weight?: number
|
|
427
426
|
enabled?: boolean
|
|
428
|
-
metadata?: string
|
|
427
|
+
metadata?: {[key: string]: string}
|
|
429
428
|
nacosInstanceId?: string
|
|
430
429
|
}
|
|
431
430
|
|
|
@@ -740,7 +739,16 @@ export type DeleteNacosConfigReq = {
|
|
|
740
739
|
nacosNamespace?: string
|
|
741
740
|
dataId?: string
|
|
742
741
|
group?: string
|
|
743
|
-
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export type DeleteNacosConfigBatchReq = {
|
|
745
|
+
workspaceId?: string
|
|
746
|
+
clusterName?: string
|
|
747
|
+
namespaceName?: string
|
|
748
|
+
nacosName?: string
|
|
749
|
+
nacosNamespace?: string
|
|
750
|
+
dataId?: string
|
|
751
|
+
group?: string
|
|
744
752
|
ids?: string
|
|
745
753
|
}
|
|
746
754
|
|
|
@@ -61,6 +61,7 @@ export type CreateFlowRuleReq = {
|
|
|
61
61
|
clusterName?: string
|
|
62
62
|
namespaceName?: string
|
|
63
63
|
sentinelName?: string
|
|
64
|
+
appName?: string
|
|
64
65
|
flowRule?: FlowRule
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -69,9 +70,9 @@ export type ListFlowRuleReq = {
|
|
|
69
70
|
clusterName?: string
|
|
70
71
|
namespaceName?: string
|
|
71
72
|
sentinelName?: string
|
|
73
|
+
appName?: string
|
|
72
74
|
page?: number
|
|
73
75
|
pageSize?: number
|
|
74
|
-
app?: string
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
export type ListFlowRuleRes = {
|
|
@@ -79,11 +80,25 @@ export type ListFlowRuleRes = {
|
|
|
79
80
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
80
81
|
}
|
|
81
82
|
|
|
83
|
+
export type GetFlowRuleReq = {
|
|
84
|
+
workspaceId?: string
|
|
85
|
+
clusterName?: string
|
|
86
|
+
namespaceName?: string
|
|
87
|
+
sentinelName?: string
|
|
88
|
+
appName?: string
|
|
89
|
+
ruleId?: number
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type GetFlowRuleRes = {
|
|
93
|
+
rule?: FlowRule
|
|
94
|
+
}
|
|
95
|
+
|
|
82
96
|
export type UpdateFlowRuleReq = {
|
|
83
97
|
workspaceId?: string
|
|
84
98
|
clusterName?: string
|
|
85
99
|
namespaceName?: string
|
|
86
100
|
sentinelName?: string
|
|
101
|
+
appName?: string
|
|
87
102
|
ruleId?: number
|
|
88
103
|
flowRule?: FlowRule
|
|
89
104
|
}
|
|
@@ -93,6 +108,7 @@ export type DeleteFlowRuleReq = {
|
|
|
93
108
|
clusterName?: string
|
|
94
109
|
namespaceName?: string
|
|
95
110
|
sentinelName?: string
|
|
111
|
+
appName?: string
|
|
96
112
|
ruleId?: number
|
|
97
113
|
}
|
|
98
114
|
|
|
@@ -116,6 +132,7 @@ export type CreateDegradeRuleReq = {
|
|
|
116
132
|
clusterName?: string
|
|
117
133
|
namespaceName?: string
|
|
118
134
|
sentinelName?: string
|
|
135
|
+
appName?: string
|
|
119
136
|
degradeRule?: DegradeRule
|
|
120
137
|
}
|
|
121
138
|
|
|
@@ -124,9 +141,9 @@ export type ListDegradeRuleReq = {
|
|
|
124
141
|
clusterName?: string
|
|
125
142
|
namespaceName?: string
|
|
126
143
|
sentinelName?: string
|
|
144
|
+
appName?: string
|
|
127
145
|
page?: number
|
|
128
146
|
pageSize?: number
|
|
129
|
-
app?: string
|
|
130
147
|
}
|
|
131
148
|
|
|
132
149
|
export type ListDegradeRuleRes = {
|
|
@@ -134,11 +151,25 @@ export type ListDegradeRuleRes = {
|
|
|
134
151
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
135
152
|
}
|
|
136
153
|
|
|
154
|
+
export type GetDegradeRuleReq = {
|
|
155
|
+
workspaceId?: string
|
|
156
|
+
clusterName?: string
|
|
157
|
+
namespaceName?: string
|
|
158
|
+
sentinelName?: string
|
|
159
|
+
appName?: string
|
|
160
|
+
ruleId?: number
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export type GetDegradeRuleRes = {
|
|
164
|
+
rule?: DegradeRule
|
|
165
|
+
}
|
|
166
|
+
|
|
137
167
|
export type UpdateDegradeRuleReq = {
|
|
138
168
|
workspaceId?: string
|
|
139
169
|
clusterName?: string
|
|
140
170
|
namespaceName?: string
|
|
141
171
|
sentinelName?: string
|
|
172
|
+
appName?: string
|
|
142
173
|
ruleId?: number
|
|
143
174
|
degradeRule?: DegradeRule
|
|
144
175
|
}
|
|
@@ -148,6 +179,7 @@ export type DeleteDegradeRuleReq = {
|
|
|
148
179
|
clusterName?: string
|
|
149
180
|
namespaceName?: string
|
|
150
181
|
sentinelName?: string
|
|
182
|
+
appName?: string
|
|
151
183
|
ruleId?: number
|
|
152
184
|
}
|
|
153
185
|
|
|
@@ -175,6 +207,7 @@ export type CreateParamFlowRuleReq = {
|
|
|
175
207
|
clusterName?: string
|
|
176
208
|
namespaceName?: string
|
|
177
209
|
sentinelName?: string
|
|
210
|
+
appName?: string
|
|
178
211
|
paramFlowRule?: ParamFlowRule
|
|
179
212
|
}
|
|
180
213
|
|
|
@@ -183,9 +216,9 @@ export type ListParamFlowRuleReq = {
|
|
|
183
216
|
clusterName?: string
|
|
184
217
|
namespaceName?: string
|
|
185
218
|
sentinelName?: string
|
|
219
|
+
appName?: string
|
|
186
220
|
page?: number
|
|
187
221
|
pageSize?: number
|
|
188
|
-
app?: string
|
|
189
222
|
}
|
|
190
223
|
|
|
191
224
|
export type ListParamFlowRuleRes = {
|
|
@@ -193,11 +226,25 @@ export type ListParamFlowRuleRes = {
|
|
|
193
226
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
194
227
|
}
|
|
195
228
|
|
|
229
|
+
export type GetParamFlowRuleReq = {
|
|
230
|
+
workspaceId?: string
|
|
231
|
+
clusterName?: string
|
|
232
|
+
namespaceName?: string
|
|
233
|
+
sentinelName?: string
|
|
234
|
+
appName?: string
|
|
235
|
+
ruleId?: number
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type GetParamFlowRuleRes = {
|
|
239
|
+
rule?: ParamFlowRule
|
|
240
|
+
}
|
|
241
|
+
|
|
196
242
|
export type UpdateParamFlowRuleReq = {
|
|
197
243
|
workspaceId?: string
|
|
198
244
|
clusterName?: string
|
|
199
245
|
namespaceName?: string
|
|
200
246
|
sentinelName?: string
|
|
247
|
+
appName?: string
|
|
201
248
|
ruleId?: number
|
|
202
249
|
paramFlowRule?: ParamFlowRule
|
|
203
250
|
}
|
|
@@ -207,6 +254,7 @@ export type DeleteParamFlowRuleReq = {
|
|
|
207
254
|
clusterName?: string
|
|
208
255
|
namespaceName?: string
|
|
209
256
|
sentinelName?: string
|
|
257
|
+
appName?: string
|
|
210
258
|
ruleId?: number
|
|
211
259
|
}
|
|
212
260
|
|
|
@@ -227,6 +275,7 @@ export type CreateSystemRuleReq = {
|
|
|
227
275
|
clusterName?: string
|
|
228
276
|
namespaceName?: string
|
|
229
277
|
sentinelName?: string
|
|
278
|
+
appName?: string
|
|
230
279
|
systemRule?: SystemRule
|
|
231
280
|
}
|
|
232
281
|
|
|
@@ -235,9 +284,9 @@ export type ListSystemRuleReq = {
|
|
|
235
284
|
clusterName?: string
|
|
236
285
|
namespaceName?: string
|
|
237
286
|
sentinelName?: string
|
|
287
|
+
appName?: string
|
|
238
288
|
page?: number
|
|
239
289
|
pageSize?: number
|
|
240
|
-
app?: string
|
|
241
290
|
}
|
|
242
291
|
|
|
243
292
|
export type ListSystemRuleRes = {
|
|
@@ -245,11 +294,25 @@ export type ListSystemRuleRes = {
|
|
|
245
294
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
246
295
|
}
|
|
247
296
|
|
|
297
|
+
export type GetSystemRuleReq = {
|
|
298
|
+
workspaceId?: string
|
|
299
|
+
clusterName?: string
|
|
300
|
+
namespaceName?: string
|
|
301
|
+
sentinelName?: string
|
|
302
|
+
appName?: string
|
|
303
|
+
ruleId?: number
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export type GetSystemRuleRes = {
|
|
307
|
+
rule?: SystemRule
|
|
308
|
+
}
|
|
309
|
+
|
|
248
310
|
export type UpdateSystemRuleReq = {
|
|
249
311
|
workspaceId?: string
|
|
250
312
|
clusterName?: string
|
|
251
313
|
namespaceName?: string
|
|
252
314
|
sentinelName?: string
|
|
315
|
+
appName?: string
|
|
253
316
|
ruleId?: number
|
|
254
317
|
systemRule?: SystemRule
|
|
255
318
|
}
|
|
@@ -259,6 +322,7 @@ export type DeleteSystemRuleReq = {
|
|
|
259
322
|
clusterName?: string
|
|
260
323
|
namespaceName?: string
|
|
261
324
|
sentinelName?: string
|
|
325
|
+
appName?: string
|
|
262
326
|
ruleId?: number
|
|
263
327
|
}
|
|
264
328
|
|
|
@@ -277,6 +341,7 @@ export type CreateAuthorityRuleReq = {
|
|
|
277
341
|
clusterName?: string
|
|
278
342
|
namespaceName?: string
|
|
279
343
|
sentinelName?: string
|
|
344
|
+
appName?: string
|
|
280
345
|
authorityRule?: AuthorityRule
|
|
281
346
|
}
|
|
282
347
|
|
|
@@ -285,9 +350,9 @@ export type ListAuthorityRuleReq = {
|
|
|
285
350
|
clusterName?: string
|
|
286
351
|
namespaceName?: string
|
|
287
352
|
sentinelName?: string
|
|
353
|
+
appName?: string
|
|
288
354
|
page?: number
|
|
289
355
|
pageSize?: number
|
|
290
|
-
app?: string
|
|
291
356
|
}
|
|
292
357
|
|
|
293
358
|
export type ListAuthorityRuleRes = {
|
|
@@ -295,11 +360,25 @@ export type ListAuthorityRuleRes = {
|
|
|
295
360
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
296
361
|
}
|
|
297
362
|
|
|
363
|
+
export type GetAuthorityRuleReq = {
|
|
364
|
+
workspaceId?: string
|
|
365
|
+
clusterName?: string
|
|
366
|
+
namespaceName?: string
|
|
367
|
+
sentinelName?: string
|
|
368
|
+
appName?: string
|
|
369
|
+
ruleId?: number
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export type GetAuthorityRuleRes = {
|
|
373
|
+
rule?: AuthorityRule
|
|
374
|
+
}
|
|
375
|
+
|
|
298
376
|
export type UpdateAuthorityRuleReq = {
|
|
299
377
|
workspaceId?: string
|
|
300
378
|
clusterName?: string
|
|
301
379
|
namespaceName?: string
|
|
302
380
|
sentinelName?: string
|
|
381
|
+
appName?: string
|
|
303
382
|
ruleId?: number
|
|
304
383
|
authorityRule?: AuthorityRule
|
|
305
384
|
}
|
|
@@ -309,5 +388,6 @@ export type DeleteAuthorityRuleReq = {
|
|
|
309
388
|
clusterName?: string
|
|
310
389
|
namespaceName?: string
|
|
311
390
|
sentinelName?: string
|
|
391
|
+
appName?: string
|
|
312
392
|
ruleId?: number
|
|
313
393
|
}
|