@daocloud-proto/skoala 0.7.1 → 0.7.2
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 +12 -0
- package/api/hosted/v1alpha1/extension.pb.ts +4 -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 +39 -21
- 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
|
@@ -90,4 +90,16 @@ export type API = {
|
|
|
90
90
|
nacosGroupName?: string
|
|
91
91
|
dataType?: APIDataType
|
|
92
92
|
detail?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type Image = {
|
|
96
|
+
registry?: string
|
|
97
|
+
repository?: string
|
|
98
|
+
tag?: string
|
|
99
|
+
pullPolicy?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type Chart = {
|
|
103
|
+
version?: string
|
|
104
|
+
images?: {[key: string]: Image}
|
|
93
105
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
export type GatewayRLSConfig = {
|
|
9
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
9
10
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
10
11
|
requestsPerUnit?: number
|
|
11
12
|
}
|
|
@@ -45,6 +46,7 @@ export type UpdateGatewayRLSReq = {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
export type GatewayAuthzConfig = {
|
|
49
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
export type CreateGatewayAuthzReq = {
|
|
@@ -52,6 +54,7 @@ export type CreateGatewayAuthzReq = {
|
|
|
52
54
|
clusterName?: string
|
|
53
55
|
namespaceName?: string
|
|
54
56
|
gatewayName?: string
|
|
57
|
+
config?: GatewayAuthzConfig
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
export type GetGatewayAuthzReq = {
|
|
@@ -76,4 +79,5 @@ export type UpdateGatewayAuthzReq = {
|
|
|
76
79
|
clusterName?: string
|
|
77
80
|
namespaceName?: string
|
|
78
81
|
gatewayName?: string
|
|
82
|
+
config?: GatewayAuthzConfig
|
|
79
83
|
}
|
|
@@ -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
|
}
|
|
@@ -220,6 +220,9 @@ export class Nacos {
|
|
|
220
220
|
static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
221
221
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}`, {...initReq, method: "DELETE"})
|
|
222
222
|
}
|
|
223
|
+
static DeleteConfigBatch(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
224
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE"})
|
|
225
|
+
}
|
|
223
226
|
static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNodeRes> {
|
|
224
227
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
225
228
|
}
|
|
@@ -237,65 +240,80 @@ export class Sentinel {
|
|
|
237
240
|
static GetAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes> {
|
|
238
241
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/appinstance?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
239
242
|
}
|
|
243
|
+
static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
244
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
245
|
+
}
|
|
240
246
|
static ListFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes> {
|
|
241
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
247
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
242
248
|
}
|
|
243
|
-
static
|
|
244
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.
|
|
249
|
+
static GetFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleRes> {
|
|
250
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
245
251
|
}
|
|
246
252
|
static UpdateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
247
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
253
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
248
254
|
}
|
|
249
255
|
static DeleteFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
250
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
256
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
251
257
|
}
|
|
252
258
|
static CreateDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateDegradeRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
253
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
259
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
254
260
|
}
|
|
255
261
|
static ListDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleRes> {
|
|
256
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
262
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
263
|
+
}
|
|
264
|
+
static GetDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleRes> {
|
|
265
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
257
266
|
}
|
|
258
267
|
static UpdateDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateDegradeRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
259
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
268
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
260
269
|
}
|
|
261
270
|
static DeleteDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteDegradeRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
262
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
271
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
263
272
|
}
|
|
264
273
|
static CreateParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateParamFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
265
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
274
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
266
275
|
}
|
|
267
276
|
static ListParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleRes> {
|
|
268
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
277
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
278
|
+
}
|
|
279
|
+
static GetParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleRes> {
|
|
280
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
269
281
|
}
|
|
270
282
|
static UpdateParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateParamFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
271
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
283
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
272
284
|
}
|
|
273
285
|
static DeleteParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteParamFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
274
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
286
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
275
287
|
}
|
|
276
288
|
static CreateSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateSystemRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
277
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
289
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
278
290
|
}
|
|
279
291
|
static ListSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleRes> {
|
|
280
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
292
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
293
|
+
}
|
|
294
|
+
static GetSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleRes> {
|
|
295
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
281
296
|
}
|
|
282
297
|
static UpdateSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateSystemRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
283
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
298
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
284
299
|
}
|
|
285
300
|
static DeleteSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteSystemRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
286
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
301
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
287
302
|
}
|
|
288
303
|
static CreateAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateAuthorityRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
289
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
304
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
290
305
|
}
|
|
291
306
|
static ListAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleRes> {
|
|
292
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
307
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
308
|
+
}
|
|
309
|
+
static GetAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleRes> {
|
|
310
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
293
311
|
}
|
|
294
312
|
static UpdateAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateAuthorityRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
295
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
313
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
296
314
|
}
|
|
297
315
|
static DeleteAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
298
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
316
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
299
317
|
}
|
|
300
318
|
}
|
|
301
319
|
export class Plugin {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
8
|
+
|
|
9
|
+
export enum NodeType {
|
|
10
|
+
NODE_TYPE_UNSPECIFIED = "NODE_TYPE_UNSPECIFIED",
|
|
11
|
+
CLUSTER = "CLUSTER",
|
|
12
|
+
NAMESPACE = "NAMESPACE",
|
|
13
|
+
SERVICE = "SERVICE",
|
|
14
|
+
WORKLOAD = "WORKLOAD",
|
|
15
|
+
INSTANCE = "INSTANCE",
|
|
16
|
+
NODE = "NODE",
|
|
17
|
+
CUSTOM = "CUSTOM",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum Layer {
|
|
21
|
+
LAYER_UNSPECIFIED = "LAYER_UNSPECIFIED",
|
|
22
|
+
KUBERNETES = "KUBERNETES",
|
|
23
|
+
MESH = "MESH",
|
|
24
|
+
OS_LINUX = "OS_LINUX",
|
|
25
|
+
VM = "VM",
|
|
26
|
+
INFRA = "INFRA",
|
|
27
|
+
GENERAL = "GENERAL",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum GraphType {
|
|
31
|
+
GRAPH_UNSPECIFIED = "GRAPH_UNSPECIFIED",
|
|
32
|
+
CLUSTER_SCOPE = "CLUSTER_SCOPE",
|
|
33
|
+
NAMESPACE_SCOPE = "NAMESPACE_SCOPE",
|
|
34
|
+
SERVICE_SCOPE = "SERVICE_SCOPE",
|
|
35
|
+
WORKLOAD_SCOPE = "WORKLOAD_SCOPE",
|
|
36
|
+
INSTANCE_SCOPE = "INSTANCE_SCOPE",
|
|
37
|
+
MIXED = "MIXED",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type Status = {
|
|
41
|
+
name?: string
|
|
42
|
+
value?: number
|
|
43
|
+
properties?: {[key: string]: string}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type NodeMetadata = {
|
|
47
|
+
cluster?: string
|
|
48
|
+
namespace?: string
|
|
49
|
+
service?: string
|
|
50
|
+
name?: string
|
|
51
|
+
layer?: Layer
|
|
52
|
+
properties?: {[key: string]: string}
|
|
53
|
+
clusterName?: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type NodePosition = {
|
|
57
|
+
x?: number
|
|
58
|
+
y?: number
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type Node = {
|
|
62
|
+
id?: string
|
|
63
|
+
parent?: string
|
|
64
|
+
type?: NodeType
|
|
65
|
+
metadata?: NodeMetadata
|
|
66
|
+
position?: NodePosition
|
|
67
|
+
statuses?: Status[]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type Edge = {
|
|
71
|
+
id?: string
|
|
72
|
+
source?: string
|
|
73
|
+
target?: string
|
|
74
|
+
statuses?: Status[]
|
|
75
|
+
properties?: {[key: string]: string}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type Graph = {
|
|
79
|
+
nodes?: Node[]
|
|
80
|
+
edges?: Edge[]
|
|
81
|
+
layer?: Layer
|
|
82
|
+
graphType?: GraphType
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type BaseGraphQuery = {
|
|
86
|
+
clusters?: string[]
|
|
87
|
+
namespaces?: string[]
|
|
88
|
+
services?: string[]
|
|
89
|
+
layer?: Layer
|
|
90
|
+
start?: string
|
|
91
|
+
end?: string
|
|
92
|
+
extensionFilters?: string
|
|
93
|
+
graphType?: GraphType
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type BaseMetricsQuery = {
|
|
97
|
+
cluster?: string
|
|
98
|
+
namespace?: string
|
|
99
|
+
service?: string
|
|
100
|
+
extensionFilters?: string
|
|
101
|
+
endTime?: string
|
|
102
|
+
lookback?: string
|
|
103
|
+
step?: string
|
|
104
|
+
ratePer?: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type NodeMetricResponse = {
|
|
108
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
109
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
110
|
+
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
111
|
+
}
|
|
@@ -17,6 +17,7 @@ export enum TargetType {
|
|
|
17
17
|
TARGET_TYPE_UNSPECIFIED = "TARGET_TYPE_UNSPECIFIED",
|
|
18
18
|
GLOBAL = "GLOBAL",
|
|
19
19
|
CLUSTER = "CLUSTER",
|
|
20
|
+
NAMESPACE = "NAMESPACE",
|
|
20
21
|
NODE = "NODE",
|
|
21
22
|
DEPLOYMENT = "DEPLOYMENT",
|
|
22
23
|
STATEFULSET = "STATEFULSET",
|
|
@@ -47,6 +48,8 @@ export enum AlertStatus {
|
|
|
47
48
|
export type ListRulesRequest = {
|
|
48
49
|
builtin?: boolean
|
|
49
50
|
name?: string
|
|
51
|
+
clusterName?: string
|
|
52
|
+
namespace?: string
|
|
50
53
|
severity?: Severity
|
|
51
54
|
status?: RuleStatus
|
|
52
55
|
page?: number
|
|
@@ -134,9 +137,6 @@ export type CreateRuleRequest = {
|
|
|
134
137
|
export type UpdateRuleRequest = {
|
|
135
138
|
id?: string
|
|
136
139
|
description?: string
|
|
137
|
-
clusterName?: string
|
|
138
|
-
namespace?: string
|
|
139
|
-
targetNames?: string[]
|
|
140
140
|
expr?: string
|
|
141
141
|
thresholdSymbol?: string
|
|
142
142
|
thresholdNum?: string
|
|
@@ -219,10 +219,6 @@ export type CountAlert = {
|
|
|
219
219
|
count?: {[key: string]: string}
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
export type ResolveAlertRequest = {
|
|
223
|
-
alertId?: string[]
|
|
224
|
-
}
|
|
225
|
-
|
|
226
222
|
export type AMHookRequest = {
|
|
227
223
|
version?: string
|
|
228
224
|
groupKey?: string
|
|
@@ -233,6 +229,7 @@ export type AMHookRequest = {
|
|
|
233
229
|
commonAnnotations?: {[key: string]: string}
|
|
234
230
|
externalURL?: string
|
|
235
231
|
alerts?: AmAlert[]
|
|
232
|
+
truncatedAlerts?: string
|
|
236
233
|
}
|
|
237
234
|
|
|
238
235
|
export type AmAlert = {
|
|
@@ -25,7 +25,6 @@ export enum ReceiverType {
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
type BaseReceiver = {
|
|
28
|
-
id?: string
|
|
29
28
|
name?: string
|
|
30
29
|
type?: ReceiverType
|
|
31
30
|
createAt?: string
|
|
@@ -33,7 +32,7 @@ type BaseReceiver = {
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
export type Receiver = BaseReceiver
|
|
36
|
-
& OneOf<{ webhook: WebhookConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
35
|
+
& OneOf<{ webhook: WebhookConfig; email: EmailConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
37
36
|
|
|
38
37
|
export type WebhookConfig = {
|
|
39
38
|
url?: string
|
|
@@ -48,6 +47,10 @@ export type DingtalkConfig = {
|
|
|
48
47
|
webhook?: string
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
export type EmailConfig = {
|
|
51
|
+
to?: string[]
|
|
52
|
+
}
|
|
53
|
+
|
|
51
54
|
export type ListReceiversRequest = {
|
|
52
55
|
type?: ReceiverType
|
|
53
56
|
page?: number
|
|
@@ -55,8 +58,12 @@ export type ListReceiversRequest = {
|
|
|
55
58
|
sorts?: string[]
|
|
56
59
|
}
|
|
57
60
|
|
|
58
|
-
export type
|
|
59
|
-
|
|
61
|
+
export type GetReceiversRequest = {
|
|
62
|
+
name?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type DeleteReceiversRequest = {
|
|
66
|
+
name?: string
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
export type ReceiverDataResponse = {
|
package/log/v1alpha1/log.pb.ts
CHANGED
|
@@ -14,6 +14,13 @@ type OneOf<T> =
|
|
|
14
14
|
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
15
15
|
: never)
|
|
16
16
|
: never);
|
|
17
|
+
|
|
18
|
+
export enum DownloadFileType {
|
|
19
|
+
TEXT = "TEXT",
|
|
20
|
+
CSV = "CSV",
|
|
21
|
+
JSON = "JSON",
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
export type SearchLogRequest = {
|
|
18
25
|
index?: string
|
|
19
26
|
query?: string
|
|
@@ -117,6 +124,16 @@ export type LogHistogramResult = {
|
|
|
117
124
|
count?: string
|
|
118
125
|
}
|
|
119
126
|
|
|
127
|
+
export type DownloadLogRequest = {
|
|
128
|
+
type?: DownloadFileType
|
|
129
|
+
queryLog?: QueryLogRequest
|
|
130
|
+
queryLogConext?: QueryLogContextRequest
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type DownloadLogResponse = {
|
|
134
|
+
url?: string
|
|
135
|
+
}
|
|
136
|
+
|
|
120
137
|
export type ListLogFilePathsResponse = {
|
|
121
138
|
paths?: string[]
|
|
122
139
|
}
|
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export enum ClusterPhase {
|
|
|
14
14
|
RUNNING = "RUNNING",
|
|
15
15
|
UPDATING = "UPDATING",
|
|
16
16
|
DELETING = "DELETING",
|
|
17
|
+
FAILED = "FAILED",
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export enum ClusterProvider {
|
|
@@ -34,6 +35,11 @@ export enum InsightAgentStatus {
|
|
|
34
35
|
UNHEALTHY = "UNHEALTHY",
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export enum Role {
|
|
39
|
+
NOT_ADMIN = "NOT_ADMIN",
|
|
40
|
+
ADMIN = "ADMIN",
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
export type ListClustersResponse = {
|
|
38
44
|
items?: Cluster[]
|
|
39
45
|
}
|
|
@@ -42,12 +48,13 @@ export type Cluster = {
|
|
|
42
48
|
name?: string
|
|
43
49
|
kubeSystemId?: string
|
|
44
50
|
phase?: ClusterPhase
|
|
51
|
+
role?: Role
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
export type ListClusterSummaryRequest = {
|
|
48
55
|
name?: string
|
|
49
56
|
version?: string
|
|
50
|
-
|
|
57
|
+
phase?: ClusterPhase
|
|
51
58
|
page?: number
|
|
52
59
|
pageSize?: number
|
|
53
60
|
}
|
|
@@ -66,8 +73,7 @@ export type ClusterSummary = {
|
|
|
66
73
|
kubeSystemId?: string
|
|
67
74
|
phase?: ClusterPhase
|
|
68
75
|
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
69
|
-
insightAgentStatus?:
|
|
70
|
-
insightAgentCreateTime?: string
|
|
76
|
+
insightAgentStatus?: insightAgentState
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export type ClusterDetail = {
|
|
@@ -82,7 +88,13 @@ export type ClusterDetail = {
|
|
|
82
88
|
statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
83
89
|
daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
84
90
|
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
85
|
-
insightAgentStatus?:
|
|
91
|
+
insightAgentStatus?: insightAgentState
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type insightAgentState = {
|
|
95
|
+
status?: InsightAgentStatus
|
|
96
|
+
version?: string
|
|
97
|
+
createTime?: string
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
export type ListNamespacesRequest = {
|
|
@@ -95,4 +107,5 @@ export type ListNamespacesResponse = {
|
|
|
95
107
|
|
|
96
108
|
export type Namespace = {
|
|
97
109
|
name?: string
|
|
110
|
+
role?: Role
|
|
98
111
|
}
|
|
@@ -15,19 +15,19 @@ export enum CronJobPhase {
|
|
|
15
15
|
CRONJOB_STATE_DELETING = "CRONJOB_STATE_DELETING",
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export enum
|
|
18
|
+
export enum JobState {
|
|
19
19
|
JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
JOB_STATE_WAITING = "JOB_STATE_WAITING",
|
|
21
|
+
JOB_STATE_RUNNING = "JOB_STATE_RUNNING",
|
|
22
|
+
JOB_STATE_COMPLETED = "JOB_STATE_COMPLETED",
|
|
23
|
+
JOB_STATE_DELETING = "JOB_STATE_DELETING",
|
|
24
|
+
JOB_STATE_FAILED = "JOB_STATE_FAILED",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type ListJobsRequest = {
|
|
28
28
|
cluster?: string
|
|
29
29
|
namespace?: string
|
|
30
|
-
|
|
30
|
+
phase?: JobState
|
|
31
31
|
name?: string
|
|
32
32
|
page?: number
|
|
33
33
|
pageSize?: number
|
|
@@ -52,6 +52,7 @@ export type CronJob = {
|
|
|
52
52
|
phase?: CronJobPhase
|
|
53
53
|
createTimestamp?: string
|
|
54
54
|
jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
55
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
export type CronJobSpec = {
|
|
@@ -80,7 +81,7 @@ export type JobStatus = {
|
|
|
80
81
|
active?: number
|
|
81
82
|
succeed?: number
|
|
82
83
|
failed?: number
|
|
83
|
-
phase?:
|
|
84
|
+
phase?: JobState
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
export type Job = {
|
|
@@ -90,4 +91,5 @@ export type Job = {
|
|
|
90
91
|
status?: JobStatus
|
|
91
92
|
createTimestamp?: string
|
|
92
93
|
jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
94
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
93
95
|
}
|
|
@@ -16,7 +16,7 @@ export enum NodePhase {
|
|
|
16
16
|
|
|
17
17
|
export type ListNodesRequest = {
|
|
18
18
|
cluster?: string
|
|
19
|
-
|
|
19
|
+
phase?: NodePhase
|
|
20
20
|
name?: string
|
|
21
21
|
page?: number
|
|
22
22
|
pageSize?: number
|
|
@@ -44,11 +44,23 @@ export type Node = {
|
|
|
44
44
|
operatingSystem?: string
|
|
45
45
|
address?: string
|
|
46
46
|
creationTimestamp?: string
|
|
47
|
-
|
|
47
|
+
nodeStatus?: NodeStatus
|
|
48
48
|
podSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
49
49
|
usage?: usage
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export type NodeStatus = {
|
|
53
|
+
phase?: NodePhase
|
|
54
|
+
conditions?: NodeCondition[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type NodeCondition = {
|
|
58
|
+
type?: string
|
|
59
|
+
status?: InsightIoApiResourceV1alpha1Type.ConditionStatus
|
|
60
|
+
reason?: string
|
|
61
|
+
message?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
export type usage = {
|
|
53
65
|
cpuCapacity?: string
|
|
54
66
|
cpuAllocated?: number
|
|
@@ -26,7 +26,7 @@ export enum ContainerPhase {
|
|
|
26
26
|
export type ListPodsRequest = {
|
|
27
27
|
cluster?: string
|
|
28
28
|
namespace?: string
|
|
29
|
-
|
|
29
|
+
phase?: PodPhase
|
|
30
30
|
name?: string
|
|
31
31
|
page?: number
|
|
32
32
|
pageSize?: number
|
|
@@ -60,13 +60,14 @@ export type Pod = {
|
|
|
60
60
|
containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
61
61
|
podIp?: string
|
|
62
62
|
hostIp?: string
|
|
63
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export type ListContainersRequest = {
|
|
66
67
|
cluster?: string
|
|
67
68
|
namespace?: string
|
|
68
69
|
name?: string
|
|
69
|
-
|
|
70
|
+
phase?: ContainerPhase
|
|
70
71
|
page?: number
|
|
71
72
|
pageSize?: number
|
|
72
73
|
}
|
|
@@ -27,6 +27,7 @@ export type ListServicesRequest = {
|
|
|
27
27
|
name?: string
|
|
28
28
|
page?: number
|
|
29
29
|
pageSize?: number
|
|
30
|
+
tracingEnabled?: boolean
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export type ListServicesResponse = {
|
|
@@ -37,6 +38,7 @@ export type ListServicesResponse = {
|
|
|
37
38
|
export type serviceSummary = {
|
|
38
39
|
name?: string
|
|
39
40
|
namespace?: string
|
|
41
|
+
tracingEnabled?: boolean
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
export type Service = {
|
|
@@ -3,7 +3,24 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
export enum ConditionStatus {
|
|
8
|
+
CONDITION_STATUS_UNSPECIFIED = "CONDITION_STATUS_UNSPECIFIED",
|
|
9
|
+
True = "True",
|
|
10
|
+
False = "False",
|
|
11
|
+
Unknown = "Unknown",
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
export type ResourceNumSummary = {
|
|
7
15
|
totalNum?: number
|
|
8
16
|
readyNum?: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type Condition = {
|
|
20
|
+
lastTransitionTime?: string
|
|
21
|
+
lastUpdateTime?: string
|
|
22
|
+
message?: string
|
|
23
|
+
reason?: string
|
|
24
|
+
status?: string
|
|
25
|
+
type?: string
|
|
9
26
|
}
|
|
@@ -26,7 +26,7 @@ export type ListWorkloadsRequest = {
|
|
|
26
26
|
cluster?: string
|
|
27
27
|
namespace?: string
|
|
28
28
|
name?: string
|
|
29
|
-
|
|
29
|
+
phase?: WorkloadPhase
|
|
30
30
|
page?: number
|
|
31
31
|
pageSize?: number
|
|
32
32
|
}
|
|
@@ -50,6 +50,7 @@ export type Workload = {
|
|
|
50
50
|
phase?: WorkloadPhase
|
|
51
51
|
createTimestamp?: string
|
|
52
52
|
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
53
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export type GetWorkloadRequest = {
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as GoogleProtobufTimestamp from "../../google/protobuf/timestamp.pb"
|
|
8
|
+
|
|
9
|
+
export enum ValueType {
|
|
10
|
+
STRING = "STRING",
|
|
11
|
+
BOOL = "BOOL",
|
|
12
|
+
INT64 = "INT64",
|
|
13
|
+
FLOAT64 = "FLOAT64",
|
|
14
|
+
BINARY = "BINARY",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum SpanRefType {
|
|
18
|
+
CHILD_OF = "CHILD_OF",
|
|
19
|
+
FOLLOWS_FROM = "FOLLOWS_FROM",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type KeyValue = {
|
|
23
|
+
key?: string
|
|
24
|
+
vType?: ValueType
|
|
25
|
+
vStr?: string
|
|
26
|
+
vBool?: boolean
|
|
27
|
+
vInt64?: string
|
|
28
|
+
vFloat64?: number
|
|
29
|
+
vBinary?: Uint8Array
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type Log = {
|
|
33
|
+
time?: string
|
|
34
|
+
fields?: KeyValue[]
|
|
35
|
+
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type SpanRef = {
|
|
39
|
+
traceId?: string
|
|
40
|
+
spanId?: string
|
|
41
|
+
refType?: SpanRefType
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Process = {
|
|
45
|
+
serviceName?: string
|
|
46
|
+
tags?: KeyValue[]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type Span = {
|
|
50
|
+
traceId?: string
|
|
51
|
+
spanId?: string
|
|
52
|
+
operationName?: string
|
|
53
|
+
references?: SpanRef[]
|
|
54
|
+
flags?: number
|
|
55
|
+
startTime?: string
|
|
56
|
+
duration?: string
|
|
57
|
+
tags?: KeyValue[]
|
|
58
|
+
logs?: Log[]
|
|
59
|
+
process?: Process
|
|
60
|
+
processId?: string
|
|
61
|
+
warnings?: string[]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type TraceProcessMapping = {
|
|
65
|
+
processId?: string
|
|
66
|
+
process?: Process
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type Trace = {
|
|
70
|
+
spans?: Span[]
|
|
71
|
+
processMap?: TraceProcessMapping[]
|
|
72
|
+
warnings?: string[]
|
|
73
|
+
traceId?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type Batch = {
|
|
77
|
+
spans?: Span[]
|
|
78
|
+
process?: Process
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type DependencyLink = {
|
|
82
|
+
parent?: string
|
|
83
|
+
child?: string
|
|
84
|
+
callCount?: string
|
|
85
|
+
source?: string
|
|
86
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as InsightIoApiTracingV1alpha1Model from "./model.pb"
|
|
8
|
+
export type TracesResponseChunk = {
|
|
9
|
+
traces?: InsightIoApiTracingV1alpha1Model.Trace[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type SpansResponseChunk = {
|
|
13
|
+
spans?: InsightIoApiTracingV1alpha1Model.Span[]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type TraceQueryParameters = {
|
|
17
|
+
serviceName?: string
|
|
18
|
+
operationName?: string
|
|
19
|
+
tags?: {[key: string]: string}
|
|
20
|
+
start?: string
|
|
21
|
+
end?: string
|
|
22
|
+
durationMin?: string
|
|
23
|
+
durationMax?: string
|
|
24
|
+
limit?: number
|
|
25
|
+
cluster?: string
|
|
26
|
+
namespace?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type FindTracesRequest = {
|
|
30
|
+
query?: TraceQueryParameters
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type GetOperationsRequest = {
|
|
34
|
+
service?: string
|
|
35
|
+
spanKind?: string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type Operation = {
|
|
39
|
+
name?: string
|
|
40
|
+
spanKind?: string
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type GetServicesRequest = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GetServicesResponse = {
|
|
47
|
+
services?: string[]
|
|
48
|
+
}
|