@daocloud-proto/skoala 0.3.2 → 0.3.3-109
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/skoala.pb.ts +19 -7
- package/api/hosted/v1alpha1/gateway.pb.ts +112 -59
- package/api/hosted/v1alpha1/nacos.pb.ts +92 -2
- package/api/integrated/v1alpha1/insight.pb.ts +19 -4
- package/api/integrated/v1alpha1/instance.pb.ts +29 -19
- package/api/integrated/v1alpha1/registry.pb.ts +6 -5
- package/api/integrated/v1alpha1/service.pb.ts +8 -11
- package/api/skoala/v1alpha1/book.pb.ts +2 -2
- package/api/skoala/v1alpha1/skoala.pb.ts +25 -13
- package/feature_gate/v1alpha1/feature_gate.pb.ts +27 -0
- package/fetch.pb.ts +109 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/protobuf/any.pb.ts +9 -0
- package/google/protobuf/api.pb.ts +32 -0
- package/google/protobuf/descriptor.pb.ts +262 -0
- package/google/protobuf/duration.pb.ts +9 -0
- package/google/protobuf/empty.pb.ts +7 -0
- package/google/protobuf/field_mask.pb.ts +8 -0
- package/google/protobuf/struct.pb.ts +33 -0
- package/google/protobuf/timestamp.pb.ts +9 -0
- package/google/protobuf/type.pb.ts +83 -0
- package/google/protobuf/wrappers.pb.ts +40 -0
- package/google/rpc/status.pb.ts +12 -0
- package/insight/v1alpha1/alert.pb.ts +292 -0
- package/insight/v1alpha1/notify.pb.ts +84 -0
- package/log/v1alpha1/log.pb.ts +103 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +102 -0
- package/resource/v1alpha1/job.pb.ts +93 -0
- package/resource/v1alpha1/node.pb.ts +62 -0
- package/resource/v1alpha1/pod.pb.ts +82 -0
- package/resource/v1alpha1/service.pb.ts +61 -0
- package/resource/v1alpha1/type.pb.ts +9 -0
- package/resource/v1alpha1/workload.pb.ts +69 -0
- package/span_metric/v1alpha1/openmetrics.pb.ts +130 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +113 -0
- package/type/v1alpha1/page.pb.ts +11 -0
|
@@ -18,21 +18,33 @@ export type Cluster = {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type Workspace = {
|
|
21
|
-
id?:
|
|
21
|
+
id?: number
|
|
22
22
|
name?: string
|
|
23
|
-
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type Pagination = {
|
|
26
|
+
total?: number
|
|
27
|
+
page?: number
|
|
28
|
+
pageSize?: number
|
|
29
|
+
pages?: number
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export type ListWorkspaceReq = {
|
|
27
33
|
page?: number
|
|
28
|
-
|
|
34
|
+
pageSize?: number
|
|
29
35
|
}
|
|
30
36
|
|
|
31
37
|
export type ListWorkspaceRes = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
items?: Workspace[]
|
|
39
|
+
pagination?: Pagination
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type GetWorkspaceReq = {
|
|
43
|
+
workspaceId?: number
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GetWorkspaceRes = {
|
|
47
|
+
workspace?: Workspace
|
|
36
48
|
}
|
|
37
49
|
|
|
38
50
|
export type ListClusterReq = {
|
|
@@ -40,15 +40,15 @@ export type Gateway = {
|
|
|
40
40
|
updatedAt?: string
|
|
41
41
|
status?: SkoalaApiGeneralV1alpha1Skoala.Status
|
|
42
42
|
endpoints?: string[]
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
contour?: Node
|
|
44
|
+
envoy?: Node
|
|
45
45
|
config?: GatewayConfig
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export type ListAllGatewayReq = {
|
|
49
49
|
workspaceId?: number
|
|
50
50
|
page?: number
|
|
51
|
-
|
|
51
|
+
pageSize?: number
|
|
52
52
|
filter?: string
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ export type ListClusterGatewayReq = {
|
|
|
56
56
|
workspaceId?: number
|
|
57
57
|
clusterName?: string
|
|
58
58
|
page?: number
|
|
59
|
-
|
|
59
|
+
pageSize?: number
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export type ListNamespaceGatewayReq = {
|
|
@@ -64,14 +64,12 @@ export type ListNamespaceGatewayReq = {
|
|
|
64
64
|
clusterName?: string
|
|
65
65
|
namespaceName?: string
|
|
66
66
|
page?: number
|
|
67
|
-
|
|
67
|
+
pageSize?: number
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export type ListGatewayRes = {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
size?: number
|
|
74
|
-
total?: number
|
|
71
|
+
items?: Gateway[]
|
|
72
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
export type GetGatewayReq = {
|
|
@@ -85,6 +83,70 @@ export type GetGatewayRes = {
|
|
|
85
83
|
gateways?: Gateway
|
|
86
84
|
}
|
|
87
85
|
|
|
86
|
+
export type EnvoyPortsString = {
|
|
87
|
+
http?: string
|
|
88
|
+
https?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type EnvoyPorts = {
|
|
92
|
+
http?: number
|
|
93
|
+
https?: number
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type ContourPorts = {
|
|
97
|
+
xds?: number
|
|
98
|
+
metrics?: number
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ContourPortsString = {
|
|
102
|
+
xds?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type HostIPs = {
|
|
106
|
+
http?: string
|
|
107
|
+
https?: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type EnvoyService = {
|
|
111
|
+
type?: string
|
|
112
|
+
ports?: EnvoyPorts
|
|
113
|
+
targetPorts?: EnvoyPortsString
|
|
114
|
+
nodePorts?: EnvoyPortsString
|
|
115
|
+
extraPorts?: string[]
|
|
116
|
+
externalTrafficPolicy?: string
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type ContourService = {
|
|
120
|
+
type?: string
|
|
121
|
+
clusterIp?: string
|
|
122
|
+
ports?: ContourPorts
|
|
123
|
+
nodePorts?: ContourPortsString
|
|
124
|
+
extraPorts?: string[]
|
|
125
|
+
externalTrafficPolicy?: string
|
|
126
|
+
loadBalancerSourceRanges?: string[]
|
|
127
|
+
loadBalancerIp?: string
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type EnvoyNormalConfig = {
|
|
131
|
+
kind?: string
|
|
132
|
+
replicas?: number
|
|
133
|
+
hostNetwork?: boolean
|
|
134
|
+
dnsPolicy?: string
|
|
135
|
+
useHostIp?: boolean
|
|
136
|
+
useHostPort?: boolean
|
|
137
|
+
containerPorts?: EnvoyPorts
|
|
138
|
+
hostIps?: HostIPs
|
|
139
|
+
hostPorts?: EnvoyPorts
|
|
140
|
+
service?: EnvoyService
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type ContourNormalConfig = {
|
|
144
|
+
rootNamespaces?: string
|
|
145
|
+
replicas?: number
|
|
146
|
+
containerPorts?: ContourPorts
|
|
147
|
+
service?: ContourService
|
|
148
|
+
}
|
|
149
|
+
|
|
88
150
|
export type CreateGatewayReq = {
|
|
89
151
|
workspaceId?: number
|
|
90
152
|
name?: string
|
|
@@ -94,10 +156,6 @@ export type CreateGatewayReq = {
|
|
|
94
156
|
config?: GatewayConfig
|
|
95
157
|
}
|
|
96
158
|
|
|
97
|
-
export type CreateGatewayRes = {
|
|
98
|
-
gateway?: Gateway
|
|
99
|
-
}
|
|
100
|
-
|
|
101
159
|
export type UpdateGatewayReq = {
|
|
102
160
|
workspaceId?: number
|
|
103
161
|
gatewayName?: string
|
|
@@ -106,10 +164,6 @@ export type UpdateGatewayReq = {
|
|
|
106
164
|
config?: GatewayConfig
|
|
107
165
|
}
|
|
108
166
|
|
|
109
|
-
export type UpdateGatewayRes = {
|
|
110
|
-
gateway?: Gateway
|
|
111
|
-
}
|
|
112
|
-
|
|
113
167
|
export type DeleteGatewayReq = {
|
|
114
168
|
workspaceId?: number
|
|
115
169
|
clusterName?: string
|
|
@@ -121,71 +175,70 @@ export type DeleteGatewayRes = {
|
|
|
121
175
|
gateway?: Gateway
|
|
122
176
|
}
|
|
123
177
|
|
|
178
|
+
export type NormalConfig = {
|
|
179
|
+
contour?: ContourNormalConfig
|
|
180
|
+
envoy?: EnvoyNormalConfig
|
|
181
|
+
}
|
|
182
|
+
|
|
124
183
|
export type GatewayConfig = {
|
|
125
184
|
normal?: NormalConfig
|
|
126
185
|
advanced?: AdvancedConfig
|
|
127
186
|
}
|
|
128
187
|
|
|
129
188
|
|
|
130
|
-
type
|
|
131
|
-
|
|
132
|
-
workerCount?: number
|
|
189
|
+
type BaseContourAdvancedConfig = {
|
|
190
|
+
resources?: Resource
|
|
133
191
|
}
|
|
134
192
|
|
|
135
|
-
export type
|
|
136
|
-
& OneOf<{
|
|
193
|
+
export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
194
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
137
195
|
|
|
138
|
-
export type Port = {
|
|
139
|
-
name?: string
|
|
140
|
-
protocol?: string
|
|
141
|
-
port?: number
|
|
142
|
-
targetPort?: number
|
|
143
|
-
nodePort?: number
|
|
144
|
-
}
|
|
145
196
|
|
|
146
|
-
|
|
147
|
-
|
|
197
|
+
type BaseEnvoyAdvancedConfig = {
|
|
198
|
+
resources?: Resource
|
|
148
199
|
}
|
|
149
200
|
|
|
150
|
-
export type
|
|
151
|
-
|
|
152
|
-
}
|
|
201
|
+
export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
202
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
153
203
|
|
|
154
|
-
export type
|
|
204
|
+
export type AdvancedConfig = {
|
|
205
|
+
log?: Log
|
|
206
|
+
contour?: ContourAdvancedConfig
|
|
207
|
+
envoy?: EnvoyAdvancedConfig
|
|
208
|
+
globalRateLimit?: boolean
|
|
155
209
|
}
|
|
156
210
|
|
|
157
|
-
export type
|
|
158
|
-
|
|
211
|
+
export type Log = {
|
|
212
|
+
envoyLogLevel?: LogLogLevel
|
|
213
|
+
k8SDebug?: number
|
|
214
|
+
contourDebug?: boolean
|
|
215
|
+
logToInsight?: boolean
|
|
159
216
|
}
|
|
160
217
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
218
|
+
export type Resource = {
|
|
219
|
+
cpuRequests?: string
|
|
220
|
+
cpuLimits?: string
|
|
221
|
+
memoryRequests?: string
|
|
222
|
+
memoryLimits?: string
|
|
166
223
|
}
|
|
167
224
|
|
|
168
|
-
export type
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
export type Log = {
|
|
172
|
-
workerLogLevel?: LogLogLevel
|
|
173
|
-
podLogLevel?: number
|
|
174
|
-
enableDebugLog?: boolean
|
|
175
|
-
enableLogToInsight?: boolean
|
|
225
|
+
export type RollingUpdate = {
|
|
226
|
+
maxSurge?: string
|
|
227
|
+
maxUnavailable?: string
|
|
176
228
|
}
|
|
177
229
|
|
|
178
|
-
export type
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
memoryRequests?: number
|
|
182
|
-
memoryLimits?: number
|
|
230
|
+
export type GetImagesRes = {
|
|
231
|
+
contour?: string
|
|
232
|
+
envoy?: string
|
|
183
233
|
}
|
|
184
234
|
|
|
185
|
-
export type
|
|
186
|
-
|
|
187
|
-
|
|
235
|
+
export type GetGatewayStatusReq = {
|
|
236
|
+
workspaceId?: number
|
|
237
|
+
clusterName?: string
|
|
238
|
+
namespaceName?: string
|
|
239
|
+
gatewayName?: string
|
|
188
240
|
}
|
|
189
241
|
|
|
190
|
-
export type
|
|
242
|
+
export type GetGatewayStatusRes = {
|
|
243
|
+
ready?: boolean
|
|
191
244
|
}
|
|
@@ -3,26 +3,92 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
9
|
+
export enum NacosStatus {
|
|
10
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
11
|
+
Running = "Running",
|
|
12
|
+
Creating = "Creating",
|
|
13
|
+
Failed = "Failed",
|
|
14
|
+
Scaling = "Scaling",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum NacosConfigType {
|
|
18
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
19
|
+
standalone = "standalone",
|
|
20
|
+
cluster = "cluster",
|
|
21
|
+
}
|
|
22
|
+
|
|
6
23
|
export type ListNacosReq = {
|
|
7
24
|
workspaceId?: string
|
|
25
|
+
clusterName?: string
|
|
26
|
+
namespaceName?: string
|
|
8
27
|
page?: number
|
|
28
|
+
pageSize?: number
|
|
9
29
|
}
|
|
10
30
|
|
|
11
31
|
export type ListNacosRes = {
|
|
32
|
+
items?: Nacos[]
|
|
33
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type Nacos = {
|
|
37
|
+
workspaceId?: string
|
|
38
|
+
clusterName?: string
|
|
39
|
+
nacosName?: string
|
|
40
|
+
namespaceName?: string
|
|
41
|
+
status?: NacosStatus
|
|
42
|
+
replicas?: number
|
|
43
|
+
image?: string
|
|
44
|
+
version?: string
|
|
45
|
+
database?: NacosDatabase
|
|
46
|
+
resource?: NacosResource
|
|
47
|
+
condition?: NacosCondition[]
|
|
48
|
+
createAt?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type NacosDatabase = {
|
|
52
|
+
type?: string
|
|
53
|
+
host?: string
|
|
54
|
+
port?: string
|
|
55
|
+
db?: string
|
|
56
|
+
user?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type NacosResource = {
|
|
60
|
+
limits?: {[key: string]: string}
|
|
61
|
+
request?: {[key: string]: string}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type NacosCondition = {
|
|
65
|
+
type?: string
|
|
66
|
+
status?: string
|
|
67
|
+
reason?: string
|
|
68
|
+
message?: string
|
|
69
|
+
instance?: string
|
|
70
|
+
hostIP?: string
|
|
71
|
+
podName?: string
|
|
72
|
+
nodeName?: string
|
|
12
73
|
}
|
|
13
74
|
|
|
14
75
|
export type GetNacosReq = {
|
|
15
76
|
workspaceId?: string
|
|
77
|
+
clusterName?: string
|
|
16
78
|
nacosName?: string
|
|
79
|
+
namespaceName?: string
|
|
17
80
|
}
|
|
18
81
|
|
|
19
82
|
export type GetNacosRes = {
|
|
83
|
+
nacos?: Nacos
|
|
20
84
|
}
|
|
21
85
|
|
|
22
86
|
export type UpdateNacosReq = {
|
|
23
87
|
workspaceId?: string
|
|
88
|
+
clusterName?: string
|
|
24
89
|
nacosName?: string
|
|
25
|
-
|
|
90
|
+
namespaceName?: string
|
|
91
|
+
config?: NacosConfig
|
|
26
92
|
}
|
|
27
93
|
|
|
28
94
|
export type UpdateNacosRes = {
|
|
@@ -30,7 +96,11 @@ export type UpdateNacosRes = {
|
|
|
30
96
|
|
|
31
97
|
export type CreateNacosReq = {
|
|
32
98
|
workspaceId?: string
|
|
33
|
-
|
|
99
|
+
clusterName?: string
|
|
100
|
+
nacosName?: string
|
|
101
|
+
namespaceName?: string
|
|
102
|
+
createNamespace?: boolean
|
|
103
|
+
config?: NacosConfig
|
|
34
104
|
}
|
|
35
105
|
|
|
36
106
|
export type CreateNacosRes = {
|
|
@@ -38,8 +108,28 @@ export type CreateNacosRes = {
|
|
|
38
108
|
|
|
39
109
|
export type DeleteNacosReq = {
|
|
40
110
|
workspaceId?: string
|
|
111
|
+
clusterName?: string
|
|
41
112
|
nacosName?: string
|
|
113
|
+
namespaceName?: string
|
|
42
114
|
}
|
|
43
115
|
|
|
44
116
|
export type DeleteNacosRes = {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type NacosConfig = {
|
|
120
|
+
type?: NacosConfigType
|
|
121
|
+
version?: string
|
|
122
|
+
replicas?: string
|
|
123
|
+
cpu?: string
|
|
124
|
+
memory?: string
|
|
125
|
+
useDatabase?: boolean
|
|
126
|
+
databaseParam?: DatabaseParam
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type DatabaseParam = {
|
|
130
|
+
host?: string
|
|
131
|
+
port?: string
|
|
132
|
+
username?: string
|
|
133
|
+
password?: string
|
|
134
|
+
db?: string
|
|
45
135
|
}
|
|
@@ -4,12 +4,27 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as
|
|
7
|
+
import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
|
|
8
8
|
export type Insight = {
|
|
9
|
+
serviceDetail?: InsightValue
|
|
10
|
+
serviceMetrics?: InsightMetrics
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type InsightValue = {
|
|
9
14
|
call?: string
|
|
10
15
|
successRates?: string
|
|
11
16
|
latencies?: string
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type InsightMetrics = {
|
|
20
|
+
p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
21
|
+
p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
22
|
+
p90Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
23
|
+
p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
24
|
+
p99Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
25
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
26
|
+
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
27
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
28
|
+
successTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
29
|
+
errorTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
15
30
|
}
|
|
@@ -4,17 +4,25 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
9
|
+
export enum InstanceStatus {
|
|
10
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
11
|
+
RUNNING = "RUNNING",
|
|
12
|
+
FAILED = "FAILED",
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
export type Instance = {
|
|
9
|
-
workspaceId?: string
|
|
10
16
|
id?: string
|
|
11
17
|
serviceName?: string
|
|
12
18
|
frameworkType?: string
|
|
13
19
|
host?: string
|
|
14
|
-
|
|
20
|
+
ports?: number[]
|
|
21
|
+
instanceStatus?: InstanceStatus
|
|
22
|
+
enabled?: boolean
|
|
15
23
|
metadata?: {[key: string]: string}
|
|
16
|
-
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
17
24
|
detail?: {[key: string]: string}
|
|
25
|
+
updateAt?: string
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
export type ListInstanceReq = {
|
|
@@ -23,37 +31,39 @@ export type ListInstanceReq = {
|
|
|
23
31
|
namespaceId?: string
|
|
24
32
|
groupName?: string
|
|
25
33
|
serviceName?: string
|
|
34
|
+
instanceId?: string
|
|
35
|
+
page?: number
|
|
36
|
+
pageSize?: number
|
|
26
37
|
}
|
|
27
38
|
|
|
28
|
-
export type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
size?: number
|
|
39
|
+
export type ListInstanceRes = {
|
|
40
|
+
items?: Instance[]
|
|
41
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
32
42
|
}
|
|
33
43
|
|
|
34
|
-
export type
|
|
44
|
+
export type GetInstanceReq = {
|
|
35
45
|
workspaceId?: string
|
|
36
46
|
registryId?: string
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
namespaceId?: string
|
|
48
|
+
groupName?: string
|
|
49
|
+
serviceName?: string
|
|
50
|
+
instanceId?: string
|
|
39
51
|
}
|
|
40
52
|
|
|
41
|
-
export type
|
|
42
|
-
|
|
43
|
-
page?: number
|
|
44
|
-
size?: number
|
|
45
|
-
total?: number
|
|
53
|
+
export type GetInstanceRes = {
|
|
54
|
+
instance?: Instance
|
|
46
55
|
}
|
|
47
56
|
|
|
48
|
-
export type
|
|
57
|
+
export type UpdateInstanceReq = {
|
|
49
58
|
workspaceId?: string
|
|
50
59
|
registryId?: string
|
|
51
60
|
namespaceId?: string
|
|
52
61
|
groupName?: string
|
|
53
|
-
serviceName?: string
|
|
54
62
|
instanceId?: string
|
|
63
|
+
serviceName?: string
|
|
64
|
+
enabled?: boolean
|
|
55
65
|
}
|
|
56
66
|
|
|
57
|
-
export type
|
|
67
|
+
export type UpdateInstanceRes = {
|
|
58
68
|
instance?: Instance
|
|
59
69
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
7
9
|
export enum RegistryStatus {
|
|
8
10
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
9
11
|
RUNNING = "RUNNING",
|
|
@@ -22,6 +24,7 @@ export enum RegistryType {
|
|
|
22
24
|
export type Registry = {
|
|
23
25
|
workspaceId?: string
|
|
24
26
|
registryId?: string
|
|
27
|
+
extId?: string
|
|
25
28
|
name?: string
|
|
26
29
|
type?: RegistryType
|
|
27
30
|
status?: RegistryStatus
|
|
@@ -45,14 +48,12 @@ export type ListRegistryReq = {
|
|
|
45
48
|
type?: string
|
|
46
49
|
name?: string
|
|
47
50
|
page?: number
|
|
48
|
-
|
|
51
|
+
pageSize?: number
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
export type ListRegistryRes = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
size?: number
|
|
55
|
-
total?: number
|
|
55
|
+
items?: Registry[]
|
|
56
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
export type GetRegistryReq = {
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
7
8
|
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
8
9
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
9
10
|
export type Service = {
|
|
10
11
|
name?: string
|
|
11
12
|
namespace?: NamespaceWithGroup
|
|
13
|
+
healthInstanceCount?: number
|
|
12
14
|
instanceCount?: number
|
|
13
15
|
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
14
16
|
detail?: {[key: string]: string}
|
|
@@ -18,21 +20,14 @@ export type Service = {
|
|
|
18
20
|
export type ListServiceReq = {
|
|
19
21
|
workspaceId?: string
|
|
20
22
|
registryId?: string
|
|
23
|
+
serviceName?: string
|
|
21
24
|
page?: number
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type ListAllServiceReq = {
|
|
26
|
-
workspaceId?: string
|
|
27
|
-
page?: number
|
|
28
|
-
size?: number
|
|
25
|
+
pageSize?: number
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
export type ListServiceRes = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
size?: number
|
|
35
|
-
total?: number
|
|
29
|
+
items?: Service[]
|
|
30
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
export type GetServiceReq = {
|
|
@@ -41,6 +36,8 @@ export type GetServiceReq = {
|
|
|
41
36
|
namespaceId?: string
|
|
42
37
|
groupName?: string
|
|
43
38
|
serviceName?: string
|
|
39
|
+
start?: string
|
|
40
|
+
end?: string
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
export type GetServiceRes = {
|
|
@@ -89,10 +89,10 @@ export class Book {
|
|
|
89
89
|
return fm.fetchReq<ListBookReq, ListBookReply>(`/v1alpha1/books?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
90
90
|
}
|
|
91
91
|
static Create(req: CreateBookReq, initReq?: fm.InitReq): Promise<CreateBookReply> {
|
|
92
|
-
return fm.fetchReq<CreateBookReq, CreateBookReply>(`/v1alpha1/books`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
92
|
+
return fm.fetchReq<CreateBookReq, CreateBookReply>(`/v1alpha1/books`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
93
93
|
}
|
|
94
94
|
static Update(req: UpdateBookReq, initReq?: fm.InitReq): Promise<UpdateBookRely> {
|
|
95
|
-
return fm.fetchReq<UpdateBookReq, UpdateBookRely>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
95
|
+
return fm.fetchReq<UpdateBookReq, UpdateBookRely>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
96
96
|
}
|
|
97
97
|
static Delete(req: DeleteBookReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
98
98
|
return fm.fetchReq<DeleteBookReq, GoogleProtobufEmpty.Empty>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "DELETE"})
|