@daocloud-proto/skoala 0.6.1 → 0.7.0-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 +17 -0
- package/api/general/v1alpha1/insight.pb.ts +57 -0
- package/api/general/v1alpha1/service.pb.ts +1 -1
- package/api/general/v1alpha1/skoala.pb.ts +3 -3
- package/api/hosted/v1alpha1/api.pb.ts +25 -61
- package/api/hosted/v1alpha1/apilog.pb.ts +1 -1
- package/api/hosted/v1alpha1/extension.pb.ts +0 -18
- package/api/hosted/v1alpha1/gateway.pb.ts +34 -82
- package/api/hosted/v1alpha1/gatewaysecret.pb.ts +74 -0
- package/api/hosted/v1alpha1/gatewayservice.pb.ts +47 -10
- package/api/hosted/v1alpha1/http.pb.ts +2 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +257 -123
- package/api/hosted/v1alpha1/plugins.pb.ts +118 -0
- package/api/hosted/v1alpha1/sentinel.pb.ts +262 -30
- package/api/hosted/v1alpha1/virtualhost.pb.ts +15 -13
- package/api/integrated/v1alpha1/instance.pb.ts +15 -4
- package/api/integrated/v1alpha1/registry.pb.ts +0 -12
- package/api/integrated/v1alpha1/service.pb.ts +49 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +219 -88
- package/google/api/httpbody.pb.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
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 SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
9
|
+
|
|
10
|
+
export enum GetGovernResMode {
|
|
11
|
+
Unknown = "Unknown",
|
|
12
|
+
Sentinel = "Sentinel",
|
|
13
|
+
Mesh = "Mesh",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum GetSentinelResPhase {
|
|
17
|
+
Waiting = "Waiting",
|
|
18
|
+
Running = "Running",
|
|
19
|
+
Deleting = "Deleting",
|
|
20
|
+
NotReady = "NotReady",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type Plugin = {
|
|
24
|
+
name?: string
|
|
25
|
+
enabled?: boolean
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type ListPluginReq = {
|
|
29
|
+
workspaceId?: string
|
|
30
|
+
clusterName?: string
|
|
31
|
+
namespace?: string
|
|
32
|
+
nacosName?: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type ListPluginRes = {
|
|
36
|
+
items?: Plugin[]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type GetPluginReq = {
|
|
40
|
+
workspaceId?: string
|
|
41
|
+
clusterName?: string
|
|
42
|
+
namespace?: string
|
|
43
|
+
nacosName?: string
|
|
44
|
+
name?: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type GetPluginRes = {
|
|
48
|
+
sentinel?: GetSentinelPluginRes
|
|
49
|
+
mesh?: GetMeshPluginRes
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type GetSentinelPluginReq = {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type GetSentinelPluginRes = {
|
|
56
|
+
image?: string
|
|
57
|
+
replicas?: number
|
|
58
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
59
|
+
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
60
|
+
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
61
|
+
visitAddress?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type GetMeshPluginReq = {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type GetMeshPluginRes = {
|
|
68
|
+
name?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type UpdatePluginReq = {
|
|
72
|
+
workspaceId?: string
|
|
73
|
+
clusterName?: string
|
|
74
|
+
namespace?: string
|
|
75
|
+
nacosName?: string
|
|
76
|
+
sentinel?: UpdateSentinelPluginReq
|
|
77
|
+
mesh?: UpdateMeshPluginReq
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type UpdateSentinelPluginReq = {
|
|
81
|
+
enabled?: boolean
|
|
82
|
+
image?: string
|
|
83
|
+
replicas?: number
|
|
84
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
85
|
+
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
86
|
+
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type UpdateMeshPluginReq = {
|
|
90
|
+
enabled?: boolean
|
|
91
|
+
name?: string
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type GetGovernReq = {
|
|
95
|
+
workspaceId?: string
|
|
96
|
+
clusterName?: string
|
|
97
|
+
namespace?: string
|
|
98
|
+
nacosName?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type GetGovernRes = {
|
|
102
|
+
mode?: GetGovernResMode
|
|
103
|
+
sentinel?: GetSentinelRes
|
|
104
|
+
mesh?: GetMeshRes
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type GetSentinelRes = {
|
|
108
|
+
nodes?: number
|
|
109
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
110
|
+
port?: number
|
|
111
|
+
nodePort?: number
|
|
112
|
+
phase?: GetSentinelResPhase
|
|
113
|
+
visitAddress?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type GetMeshRes = {
|
|
117
|
+
name?: string
|
|
118
|
+
}
|
|
@@ -5,6 +5,40 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
|
|
9
|
+
export enum Grade {
|
|
10
|
+
FLOW_GRADE_THREAD = "FLOW_GRADE_THREAD",
|
|
11
|
+
FLOW_GRADE_QPS = "FLOW_GRADE_QPS",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum DegradeRuleGrade {
|
|
15
|
+
SLOW_REQUEST_RATIO = "SLOW_REQUEST_RATIO",
|
|
16
|
+
ERROR_RATIO = "ERROR_RATIO",
|
|
17
|
+
ERROR_COUNT = "ERROR_COUNT",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum AuthorityRuleStrategy {
|
|
21
|
+
AUTHORITY_WHITE = "AUTHORITY_WHITE",
|
|
22
|
+
AUTHORITY_BLACK = "AUTHORITY_BLACK",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type GetAppInstanceReq = {
|
|
26
|
+
workspaceId?: string
|
|
27
|
+
clusterName?: string
|
|
28
|
+
namespaceName?: string
|
|
29
|
+
sentinelName?: string
|
|
30
|
+
serviceName?: string
|
|
31
|
+
instanceIp?: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type GetAppInstanceRes = {
|
|
35
|
+
name?: string
|
|
36
|
+
healthy?: boolean
|
|
37
|
+
port?: number
|
|
38
|
+
version?: string
|
|
39
|
+
lastHeartbeat?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
8
42
|
export type FlowRule = {
|
|
9
43
|
id?: number
|
|
10
44
|
app?: string
|
|
@@ -22,10 +56,18 @@ export type FlowRule = {
|
|
|
22
56
|
clusterMode?: boolean
|
|
23
57
|
}
|
|
24
58
|
|
|
59
|
+
export type CreateFlowRuleReq = {
|
|
60
|
+
workspaceId?: string
|
|
61
|
+
clusterName?: string
|
|
62
|
+
namespaceName?: string
|
|
63
|
+
sentinelName?: string
|
|
64
|
+
flowRule?: FlowRule
|
|
65
|
+
}
|
|
66
|
+
|
|
25
67
|
export type ListFlowRuleReq = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
68
|
+
workspaceId?: string
|
|
69
|
+
clusterName?: string
|
|
70
|
+
namespaceName?: string
|
|
29
71
|
sentinelName?: string
|
|
30
72
|
page?: number
|
|
31
73
|
pageSize?: number
|
|
@@ -37,45 +79,235 @@ export type ListFlowRuleRes = {
|
|
|
37
79
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
38
80
|
}
|
|
39
81
|
|
|
40
|
-
export type
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
82
|
+
export type UpdateFlowRuleReq = {
|
|
83
|
+
workspaceId?: string
|
|
84
|
+
clusterName?: string
|
|
85
|
+
namespaceName?: string
|
|
44
86
|
sentinelName?: string
|
|
87
|
+
ruleId?: number
|
|
45
88
|
flowRule?: FlowRule
|
|
46
89
|
}
|
|
47
90
|
|
|
48
|
-
export type
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
91
|
+
export type DeleteFlowRuleReq = {
|
|
92
|
+
workspaceId?: string
|
|
93
|
+
clusterName?: string
|
|
94
|
+
namespaceName?: string
|
|
95
|
+
sentinelName?: string
|
|
96
|
+
ruleId?: number
|
|
52
97
|
}
|
|
53
98
|
|
|
54
|
-
export type
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
99
|
+
export type DegradeRule = {
|
|
100
|
+
id?: number
|
|
101
|
+
app?: string
|
|
102
|
+
ip?: string
|
|
103
|
+
port?: number
|
|
104
|
+
resource?: string
|
|
105
|
+
limitApp?: string
|
|
106
|
+
count?: number
|
|
107
|
+
timeWindow?: number
|
|
108
|
+
grade?: DegradeRuleGrade
|
|
109
|
+
minRequestAmount?: number
|
|
110
|
+
slowRatioThreshold?: number
|
|
111
|
+
statIntervalMs?: number
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type CreateDegradeRuleReq = {
|
|
115
|
+
workspaceId?: string
|
|
116
|
+
clusterName?: string
|
|
117
|
+
namespaceName?: string
|
|
58
118
|
sentinelName?: string
|
|
59
|
-
|
|
60
|
-
flowRule?: FlowRule
|
|
119
|
+
degradeRule?: DegradeRule
|
|
61
120
|
}
|
|
62
121
|
|
|
63
|
-
export type
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
122
|
+
export type ListDegradeRuleReq = {
|
|
123
|
+
workspaceId?: string
|
|
124
|
+
clusterName?: string
|
|
125
|
+
namespaceName?: string
|
|
126
|
+
sentinelName?: string
|
|
127
|
+
page?: number
|
|
128
|
+
pageSize?: number
|
|
129
|
+
app?: string
|
|
67
130
|
}
|
|
68
131
|
|
|
69
|
-
export type
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
132
|
+
export type ListDegradeRuleRes = {
|
|
133
|
+
items?: DegradeRule[]
|
|
134
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type UpdateDegradeRuleReq = {
|
|
138
|
+
workspaceId?: string
|
|
139
|
+
clusterName?: string
|
|
140
|
+
namespaceName?: string
|
|
141
|
+
sentinelName?: string
|
|
142
|
+
ruleId?: number
|
|
143
|
+
degradeRule?: DegradeRule
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type DeleteDegradeRuleReq = {
|
|
147
|
+
workspaceId?: string
|
|
148
|
+
clusterName?: string
|
|
149
|
+
namespaceName?: string
|
|
150
|
+
sentinelName?: string
|
|
151
|
+
ruleId?: number
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type ParamFlowRuleParamFlowItemList = {
|
|
155
|
+
classType?: string
|
|
156
|
+
object?: string
|
|
157
|
+
count?: number
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type ParamFlowRule = {
|
|
161
|
+
id?: number
|
|
162
|
+
app?: string
|
|
163
|
+
ip?: string
|
|
164
|
+
port?: number
|
|
165
|
+
resource?: string
|
|
166
|
+
grade?: Grade
|
|
167
|
+
paramIdx?: number
|
|
168
|
+
count?: number
|
|
169
|
+
durationInSec?: number
|
|
170
|
+
paramFlowItemList?: ParamFlowRuleParamFlowItemList[]
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export type CreateParamFlowRuleReq = {
|
|
174
|
+
workspaceId?: string
|
|
175
|
+
clusterName?: string
|
|
176
|
+
namespaceName?: string
|
|
73
177
|
sentinelName?: string
|
|
74
|
-
|
|
178
|
+
paramFlowRule?: ParamFlowRule
|
|
75
179
|
}
|
|
76
180
|
|
|
77
|
-
export type
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
181
|
+
export type ListParamFlowRuleReq = {
|
|
182
|
+
workspaceId?: string
|
|
183
|
+
clusterName?: string
|
|
184
|
+
namespaceName?: string
|
|
185
|
+
sentinelName?: string
|
|
186
|
+
page?: number
|
|
187
|
+
pageSize?: number
|
|
188
|
+
app?: string
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type ListParamFlowRuleRes = {
|
|
192
|
+
items?: ParamFlowRule[]
|
|
193
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type UpdateParamFlowRuleReq = {
|
|
197
|
+
workspaceId?: string
|
|
198
|
+
clusterName?: string
|
|
199
|
+
namespaceName?: string
|
|
200
|
+
sentinelName?: string
|
|
201
|
+
ruleId?: number
|
|
202
|
+
paramFlowRule?: ParamFlowRule
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type DeleteParamFlowRuleReq = {
|
|
206
|
+
workspaceId?: string
|
|
207
|
+
clusterName?: string
|
|
208
|
+
namespaceName?: string
|
|
209
|
+
sentinelName?: string
|
|
210
|
+
ruleId?: number
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type SystemRule = {
|
|
214
|
+
id?: number
|
|
215
|
+
app?: string
|
|
216
|
+
ip?: string
|
|
217
|
+
port?: number
|
|
218
|
+
highestSystemLoad?: number
|
|
219
|
+
avgRt?: number
|
|
220
|
+
maxThread?: number
|
|
221
|
+
qps?: number
|
|
222
|
+
highestCpuUsage?: number
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export type CreateSystemRuleReq = {
|
|
226
|
+
workspaceId?: string
|
|
227
|
+
clusterName?: string
|
|
228
|
+
namespaceName?: string
|
|
229
|
+
sentinelName?: string
|
|
230
|
+
systemRule?: SystemRule
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type ListSystemRuleReq = {
|
|
234
|
+
workspaceId?: string
|
|
235
|
+
clusterName?: string
|
|
236
|
+
namespaceName?: string
|
|
237
|
+
sentinelName?: string
|
|
238
|
+
page?: number
|
|
239
|
+
pageSize?: number
|
|
240
|
+
app?: string
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type ListSystemRuleRes = {
|
|
244
|
+
items?: SystemRule[]
|
|
245
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export type UpdateSystemRuleReq = {
|
|
249
|
+
workspaceId?: string
|
|
250
|
+
clusterName?: string
|
|
251
|
+
namespaceName?: string
|
|
252
|
+
sentinelName?: string
|
|
253
|
+
ruleId?: number
|
|
254
|
+
systemRule?: SystemRule
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export type DeleteSystemRuleReq = {
|
|
258
|
+
workspaceId?: string
|
|
259
|
+
clusterName?: string
|
|
260
|
+
namespaceName?: string
|
|
261
|
+
sentinelName?: string
|
|
262
|
+
ruleId?: number
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export type AuthorityRule = {
|
|
266
|
+
id?: number
|
|
267
|
+
app?: string
|
|
268
|
+
ip?: string
|
|
269
|
+
port?: number
|
|
270
|
+
strategy?: AuthorityRuleStrategy
|
|
271
|
+
resource?: string
|
|
272
|
+
limitApp?: string
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type CreateAuthorityRuleReq = {
|
|
276
|
+
workspaceId?: string
|
|
277
|
+
clusterName?: string
|
|
278
|
+
namespaceName?: string
|
|
279
|
+
sentinelName?: string
|
|
280
|
+
authorityRule?: AuthorityRule
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type ListAuthorityRuleReq = {
|
|
284
|
+
workspaceId?: string
|
|
285
|
+
clusterName?: string
|
|
286
|
+
namespaceName?: string
|
|
287
|
+
sentinelName?: string
|
|
288
|
+
page?: number
|
|
289
|
+
pageSize?: number
|
|
290
|
+
app?: string
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type ListAuthorityRuleRes = {
|
|
294
|
+
items?: AuthorityRule[]
|
|
295
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export type UpdateAuthorityRuleReq = {
|
|
299
|
+
workspaceId?: string
|
|
300
|
+
clusterName?: string
|
|
301
|
+
namespaceName?: string
|
|
302
|
+
sentinelName?: string
|
|
303
|
+
ruleId?: number
|
|
304
|
+
authorityRule?: AuthorityRule
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export type DeleteAuthorityRuleReq = {
|
|
308
|
+
workspaceId?: string
|
|
309
|
+
clusterName?: string
|
|
310
|
+
namespaceName?: string
|
|
311
|
+
sentinelName?: string
|
|
312
|
+
ruleId?: number
|
|
81
313
|
}
|
|
@@ -28,10 +28,21 @@ export type VirtualhostConfig = {
|
|
|
28
28
|
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
29
29
|
rateLimitPolicy?: RateLimitPolicy
|
|
30
30
|
corsPolicy?: CorsPolicy
|
|
31
|
+
tlsPolicy?: VirtualhostTLSPolicy
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
export type
|
|
34
|
-
|
|
34
|
+
export type VirtualhostTLSPolicy = {
|
|
35
|
+
enableFallbackCertificate?: boolean
|
|
36
|
+
minimumProtocolVersion?: string
|
|
37
|
+
secretName?: string
|
|
38
|
+
secretNamespaceName?: string
|
|
39
|
+
clientValidation?: ClientValidation
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type ClientValidation = {
|
|
43
|
+
caSecretName?: string
|
|
44
|
+
caSecretNamespaceName?: string
|
|
45
|
+
skipClientCertValidation?: boolean
|
|
35
46
|
}
|
|
36
47
|
|
|
37
48
|
export type ListVirtualhostReq = {
|
|
@@ -48,6 +59,7 @@ export type VirtualhostInfo = {
|
|
|
48
59
|
fqdn?: string
|
|
49
60
|
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
50
61
|
secretName?: string
|
|
62
|
+
secretNamespaceName?: string
|
|
51
63
|
namespaceName?: string
|
|
52
64
|
apiCount?: number
|
|
53
65
|
updatedAt?: string
|
|
@@ -71,6 +83,7 @@ export type GetVirtualhostRes = {
|
|
|
71
83
|
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
72
84
|
rateLimitPolicy?: RateLimitPolicy
|
|
73
85
|
corsPolicy?: CorsPolicy
|
|
86
|
+
tlsPolicy?: VirtualhostTLSPolicy
|
|
74
87
|
}
|
|
75
88
|
|
|
76
89
|
export type UpdateVirtualhostReq = {
|
|
@@ -82,10 +95,6 @@ export type UpdateVirtualhostReq = {
|
|
|
82
95
|
fqdn?: string
|
|
83
96
|
}
|
|
84
97
|
|
|
85
|
-
export type UpdateVirtualhostRes = {
|
|
86
|
-
fqdn?: string
|
|
87
|
-
}
|
|
88
|
-
|
|
89
98
|
export type DeleteVirtualhostReq = {
|
|
90
99
|
workspaceId?: string
|
|
91
100
|
gatewayName?: string
|
|
@@ -94,10 +103,6 @@ export type DeleteVirtualhostReq = {
|
|
|
94
103
|
fqdn?: string
|
|
95
104
|
}
|
|
96
105
|
|
|
97
|
-
export type DeleteVirtualhostRes = {
|
|
98
|
-
fqdn?: string
|
|
99
|
-
}
|
|
100
|
-
|
|
101
106
|
export type CorsPolicy = {
|
|
102
107
|
allowCredentials?: boolean
|
|
103
108
|
allowHeaders?: string[]
|
|
@@ -154,9 +159,6 @@ export type LocalRateLimitPolicy = {
|
|
|
154
159
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
155
160
|
}
|
|
156
161
|
|
|
157
|
-
export type Tls = {
|
|
158
|
-
}
|
|
159
|
-
|
|
160
162
|
export type Authorization = {
|
|
161
163
|
}
|
|
162
164
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
|
|
8
9
|
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
9
10
|
|
|
10
11
|
export enum InstanceStatus {
|
|
@@ -25,6 +26,7 @@ export type Instance = {
|
|
|
25
26
|
detail?: {[key: string]: string}
|
|
26
27
|
updateAt?: string
|
|
27
28
|
insight?: SkoalaApiIntegratedV1alpha1Insight.InstanceInsight
|
|
29
|
+
insightTemp?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
export type ListInstanceReq = {
|
|
@@ -56,6 +58,19 @@ export type GetInstanceRes = {
|
|
|
56
58
|
instance?: Instance
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
export type GetInstanceInsightReq = {
|
|
62
|
+
workspaceId?: string
|
|
63
|
+
registryId?: string
|
|
64
|
+
namespaceId?: string
|
|
65
|
+
groupName?: string
|
|
66
|
+
serviceName?: string
|
|
67
|
+
instanceId?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetInstanceInsightRes = {
|
|
71
|
+
insight?: SkoalaApiGeneralV1alpha1Insight.InstanceInsightDetail
|
|
72
|
+
}
|
|
73
|
+
|
|
59
74
|
export type UpdateInstanceReq = {
|
|
60
75
|
workspaceId?: string
|
|
61
76
|
registryId?: string
|
|
@@ -64,8 +79,4 @@ export type UpdateInstanceReq = {
|
|
|
64
79
|
instanceId?: string
|
|
65
80
|
serviceName?: string
|
|
66
81
|
enabled?: boolean
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type UpdateInstanceRes = {
|
|
70
|
-
instance?: Instance
|
|
71
82
|
}
|
|
@@ -76,10 +76,6 @@ export type UpdateRegistryReq = {
|
|
|
76
76
|
isHosted?: boolean
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export type UpdateRegistryRes = {
|
|
80
|
-
registry?: Registry
|
|
81
|
-
}
|
|
82
|
-
|
|
83
79
|
export type CreateRegistryReq = {
|
|
84
80
|
workspaceId?: string
|
|
85
81
|
name?: string
|
|
@@ -90,19 +86,11 @@ export type CreateRegistryReq = {
|
|
|
90
86
|
isHosted?: boolean
|
|
91
87
|
}
|
|
92
88
|
|
|
93
|
-
export type CreateRegistryRes = {
|
|
94
|
-
registry?: RegistryOnlyID
|
|
95
|
-
}
|
|
96
|
-
|
|
97
89
|
export type DeleteRegistryReq = {
|
|
98
90
|
workspaceId?: string
|
|
99
91
|
registryId?: string
|
|
100
92
|
}
|
|
101
93
|
|
|
102
|
-
export type DeleteRegistryRes = {
|
|
103
|
-
registry?: RegistryOnlyID
|
|
104
|
-
}
|
|
105
|
-
|
|
106
94
|
export type PingRegistryReq = {
|
|
107
95
|
workspaceId?: string
|
|
108
96
|
type?: string
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
|
|
8
9
|
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
9
10
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
10
11
|
export type Service = {
|
|
@@ -15,6 +16,7 @@ export type Service = {
|
|
|
15
16
|
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
16
17
|
detail?: {[key: string]: string}
|
|
17
18
|
insight?: SkoalaApiIntegratedV1alpha1Insight.Insight
|
|
19
|
+
insightTemp?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export type ListServiceReq = {
|
|
@@ -44,7 +46,54 @@ export type GetServiceRes = {
|
|
|
44
46
|
service?: Service
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
export type GetServiceInsightReq = {
|
|
50
|
+
workspaceId?: string
|
|
51
|
+
registryId?: string
|
|
52
|
+
namespaceId?: string
|
|
53
|
+
groupName?: string
|
|
54
|
+
serviceName?: string
|
|
55
|
+
start?: string
|
|
56
|
+
end?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type GetServiceInsightRes = {
|
|
60
|
+
insight?: SkoalaApiGeneralV1alpha1Insight.ServiceInsightDetail
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type GetServiceAPIReq = {
|
|
64
|
+
workspaceId?: string
|
|
65
|
+
registryId?: string
|
|
66
|
+
serviceName?: string
|
|
67
|
+
}
|
|
68
|
+
|
|
47
69
|
export type GetServiceAPIRes = {
|
|
70
|
+
api?: SkoalaApiGeneralV1alpha1Common.API
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type CreateServiceAPIReq = {
|
|
74
|
+
workspaceId?: string
|
|
75
|
+
registryId?: string
|
|
76
|
+
serviceName?: string
|
|
77
|
+
dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
|
|
78
|
+
detail?: string
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type UpdateServiceAPIReq = {
|
|
82
|
+
workspaceId?: string
|
|
83
|
+
registryId?: string
|
|
84
|
+
serviceName?: string
|
|
85
|
+
dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
|
|
86
|
+
detail?: string
|
|
87
|
+
apiId?: number
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type DeleteServiceAPIReq = {
|
|
91
|
+
workspaceId?: string
|
|
92
|
+
registryId?: string
|
|
93
|
+
serviceName?: string
|
|
94
|
+
dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
|
|
95
|
+
detail?: string
|
|
96
|
+
apiId?: number
|
|
48
97
|
}
|
|
49
98
|
|
|
50
99
|
export type NamespaceWithGroup = {
|