@daocloud-proto/skoala 0.4.1 → 0.5.0-10
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 +68 -0
- package/api/general/v1alpha1/resource.pb.ts +15 -0
- package/api/general/v1alpha1/service.pb.ts +22 -0
- package/api/general/v1alpha1/skoala.pb.ts +25 -49
- package/api/hosted/v1alpha1/api.pb.ts +72 -94
- package/api/hosted/v1alpha1/apilog.pb.ts +47 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +306 -37
- package/api/hosted/v1alpha1/gatewayservice.pb.ts +170 -0
- package/api/hosted/v1alpha1/http.pb.ts +44 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +17 -17
- package/api/hosted/v1alpha1/sentinel.pb.ts +4 -10
- package/api/hosted/v1alpha1/virtualhost.pb.ts +96 -0
- package/api/integrated/v1alpha1/instance.pb.ts +2 -2
- package/api/integrated/v1alpha1/registry.pb.ts +2 -2
- package/api/integrated/v1alpha1/service.pb.ts +2 -2
- package/api/skoala/v1alpha1/skoala.pb.ts +78 -12
- package/log/v1alpha1/log.pb.ts +9 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +1 -4
- package/span_metric/v1alpha1/span_metric.pb.ts +0 -39
- package/tracing/v1alpha1/tracing.pb.ts +18 -0
- package/span_metric/v1alpha1/openmetrics.pb.ts +0 -130
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum OrderBy {
|
|
8
|
+
desc = "desc",
|
|
9
|
+
asc = "asc",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum SortBy {
|
|
13
|
+
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
14
|
+
field_name = "field_name",
|
|
15
|
+
state = "state",
|
|
16
|
+
workspace = "workspace",
|
|
17
|
+
cluster = "cluster",
|
|
18
|
+
namespace = "namespace",
|
|
19
|
+
created_at = "created_at",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum Status {
|
|
23
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
24
|
+
Starting = "Starting",
|
|
25
|
+
Destroying = "Destroying",
|
|
26
|
+
Upgrading = "Upgrading",
|
|
27
|
+
Running = "Running",
|
|
28
|
+
Exception = "Exception",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum ResourceKind {
|
|
32
|
+
RESOURCE_KIND_UNSPECIFIED = "RESOURCE_KIND_UNSPECIFIED",
|
|
33
|
+
Deployment = "Deployment",
|
|
34
|
+
StatefulSet = "StatefulSet",
|
|
35
|
+
DaemonSet = "DaemonSet",
|
|
36
|
+
Pod = "Pod",
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export enum PodPhase {
|
|
40
|
+
POD_PHASE_UNSPECIFIED = "POD_PHASE_UNSPECIFIED",
|
|
41
|
+
PodPhaseUnknown = "PodPhaseUnknown",
|
|
42
|
+
PodPhasePending = "PodPhasePending",
|
|
43
|
+
PodPhaseRunning = "PodPhaseRunning",
|
|
44
|
+
PodPhaseSucceed = "PodPhaseSucceed",
|
|
45
|
+
PodPhaseFailed = "PodPhaseFailed",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type Cluster = {
|
|
49
|
+
id?: string
|
|
50
|
+
name?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type Mesh = {
|
|
54
|
+
id?: string
|
|
55
|
+
name?: string
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type Workspace = {
|
|
59
|
+
id?: number
|
|
60
|
+
name?: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type Pagination = {
|
|
64
|
+
total?: number
|
|
65
|
+
page?: number
|
|
66
|
+
pageSize?: number
|
|
67
|
+
pages?: number
|
|
68
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
export type ResourceList = {
|
|
7
|
+
cpu?: string
|
|
8
|
+
memory?: string
|
|
9
|
+
storage?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ResourceRequirements = {
|
|
13
|
+
limits?: ResourceList
|
|
14
|
+
requests?: ResourceList
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum ServiceType {
|
|
8
|
+
SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
|
|
9
|
+
ClusterIP = "ClusterIP",
|
|
10
|
+
NodePort = "NodePort",
|
|
11
|
+
LoadBalancer = "LoadBalancer",
|
|
12
|
+
ExternalName = "ExternalName",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type ServicePort = {
|
|
16
|
+
name?: string
|
|
17
|
+
protocol?: string
|
|
18
|
+
appProtocol?: string
|
|
19
|
+
port?: number
|
|
20
|
+
targetPort?: string
|
|
21
|
+
nodePort?: number
|
|
22
|
+
}
|
|
@@ -4,44 +4,12 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
desc = "desc",
|
|
9
|
-
asc = "asc",
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum SortBy {
|
|
13
|
-
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
14
|
-
field_name = "field_name",
|
|
15
|
-
state = "state",
|
|
16
|
-
workspace = "workspace",
|
|
17
|
-
cluster = "cluster",
|
|
18
|
-
namespace = "namespace",
|
|
19
|
-
created_at = "created_at",
|
|
20
|
-
}
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "./common.pb"
|
|
21
8
|
|
|
22
|
-
export enum
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
DESTROYING = "DESTROYING",
|
|
27
|
-
EXCEPTION = "EXCEPTION",
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type Cluster = {
|
|
31
|
-
id?: string
|
|
32
|
-
name?: string
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type Workspace = {
|
|
36
|
-
id?: number
|
|
37
|
-
name?: string
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type Pagination = {
|
|
41
|
-
total?: number
|
|
42
|
-
page?: number
|
|
43
|
-
pageSize?: number
|
|
44
|
-
pages?: number
|
|
9
|
+
export enum ListNamespaceReqGatewayStatus {
|
|
10
|
+
NoFilter = "NoFilter",
|
|
11
|
+
Available = "Available",
|
|
12
|
+
Unavailable = "Unavailable",
|
|
45
13
|
}
|
|
46
14
|
|
|
47
15
|
export type ListWorkspaceReq = {
|
|
@@ -50,41 +18,49 @@ export type ListWorkspaceReq = {
|
|
|
50
18
|
}
|
|
51
19
|
|
|
52
20
|
export type ListWorkspaceRes = {
|
|
53
|
-
items?: Workspace[]
|
|
54
|
-
pagination?: Pagination
|
|
21
|
+
items?: SkoalaApiGeneralV1alpha1Common.Workspace[]
|
|
22
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
55
23
|
}
|
|
56
24
|
|
|
57
25
|
export type GetWorkspaceReq = {
|
|
58
|
-
workspaceId?:
|
|
26
|
+
workspaceId?: string
|
|
59
27
|
}
|
|
60
28
|
|
|
61
29
|
export type GetWorkspaceRes = {
|
|
62
|
-
workspace?: Workspace
|
|
30
|
+
workspace?: SkoalaApiGeneralV1alpha1Common.Workspace
|
|
63
31
|
}
|
|
64
32
|
|
|
65
33
|
export type ListClusterReq = {
|
|
66
34
|
workspaceId?: string
|
|
67
35
|
page?: number
|
|
68
|
-
|
|
36
|
+
pageSize?: number
|
|
69
37
|
}
|
|
70
38
|
|
|
71
39
|
export type ListClusterRes = {
|
|
72
|
-
clusters?: Cluster[]
|
|
73
|
-
|
|
74
|
-
size?: number
|
|
75
|
-
total?: number
|
|
40
|
+
clusters?: SkoalaApiGeneralV1alpha1Common.Cluster[]
|
|
41
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
76
42
|
}
|
|
77
43
|
|
|
78
44
|
export type ListNamespaceReq = {
|
|
79
45
|
workspaceId?: string
|
|
80
46
|
clusterName?: string
|
|
47
|
+
gatewayStatus?: ListNamespaceReqGatewayStatus
|
|
81
48
|
page?: number
|
|
82
|
-
|
|
49
|
+
pageSize?: number
|
|
83
50
|
}
|
|
84
51
|
|
|
85
52
|
export type ListNamespaceRes = {
|
|
86
53
|
namespaceNames?: string[]
|
|
54
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ListMeshReq = {
|
|
58
|
+
workspaceId?: string
|
|
87
59
|
page?: number
|
|
88
|
-
|
|
89
|
-
|
|
60
|
+
pageSize?: number
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type ListMeshRes = {
|
|
64
|
+
meshes?: SkoalaApiGeneralV1alpha1Common.Mesh[]
|
|
65
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
90
66
|
}
|
|
@@ -4,7 +4,9 @@
|
|
|
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiHostedV1alpha1Gatewayservice from "./gatewayservice.pb"
|
|
9
|
+
import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
|
|
8
10
|
|
|
9
11
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
10
12
|
type OneOf<T> =
|
|
@@ -15,11 +17,6 @@ type OneOf<T> =
|
|
|
15
17
|
: never)
|
|
16
18
|
: never);
|
|
17
19
|
|
|
18
|
-
export enum Protocol {
|
|
19
|
-
HTTP = "HTTP",
|
|
20
|
-
HTTPS = "HTTPS",
|
|
21
|
-
}
|
|
22
|
-
|
|
23
20
|
export enum ValueMatchType {
|
|
24
21
|
CONTAIN = "CONTAIN",
|
|
25
22
|
EXACT = "EXACT",
|
|
@@ -29,16 +26,6 @@ export enum ValueMatchType {
|
|
|
29
26
|
NOT_PRESENT = "NOT_PRESENT",
|
|
30
27
|
}
|
|
31
28
|
|
|
32
|
-
export enum HttpMethod {
|
|
33
|
-
GET = "GET",
|
|
34
|
-
POST = "POST",
|
|
35
|
-
DELETE = "DELETE",
|
|
36
|
-
PUT = "PUT",
|
|
37
|
-
PATCH = "PATCH",
|
|
38
|
-
OPTION = "OPTION",
|
|
39
|
-
ALL = "ALL",
|
|
40
|
-
}
|
|
41
|
-
|
|
42
29
|
export enum RedirectResponseCode {
|
|
43
30
|
MOVED_PERMANENTLY = "MOVED_PERMANENTLY",
|
|
44
31
|
FOUND = "FOUND",
|
|
@@ -47,42 +34,84 @@ export enum RedirectResponseCode {
|
|
|
47
34
|
PERMANENT_REDIRECT = "PERMANENT_REDIRECT",
|
|
48
35
|
}
|
|
49
36
|
|
|
50
|
-
export enum
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
UNKNOW = "UNKNOW",
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export enum APIStatus {
|
|
60
|
-
UP = "UP",
|
|
61
|
-
DOWN = "DOWN",
|
|
37
|
+
export enum LoadBalancePolicyStrategy {
|
|
38
|
+
Random = "Random",
|
|
39
|
+
RoundRobin = "RoundRobin",
|
|
40
|
+
WeightedLeastRequest = "WeightedLeastRequest",
|
|
41
|
+
Cookie = "Cookie",
|
|
42
|
+
RequestHash = "RequestHash",
|
|
62
43
|
}
|
|
63
44
|
|
|
64
45
|
export type CreateAPIReq = {
|
|
65
46
|
workspaceId?: string
|
|
66
47
|
gatewayName?: string
|
|
67
48
|
clusterName?: string
|
|
49
|
+
namespaceName?: string
|
|
68
50
|
apiConfig?: APIConfig
|
|
69
51
|
}
|
|
70
52
|
|
|
53
|
+
export type AdvancedAPIReq = {
|
|
54
|
+
workspaceId?: string
|
|
55
|
+
gatewayName?: string
|
|
56
|
+
clusterName?: string
|
|
57
|
+
namespaceName?: string
|
|
58
|
+
apiName?: string
|
|
59
|
+
advancedApiConfig?: AdvancedAPIConfig
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type AdvancedAPIRes = {
|
|
63
|
+
apiName?: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type TimeoutPolicy = {
|
|
67
|
+
response?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type PathRewritePolicy = {
|
|
71
|
+
oldPath?: string
|
|
72
|
+
replacement?: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type AdvancedAPIConfig = {
|
|
76
|
+
loadBalancePolicy?: LoadBalancePolicy
|
|
77
|
+
timeoutPolicy?: TimeoutPolicy
|
|
78
|
+
pathRewritePolicy?: PathRewritePolicy
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type LoadBalancePolicy = {
|
|
82
|
+
requestHashPolicies?: RequestHashPolicies[]
|
|
83
|
+
strategy?: LoadBalancePolicyStrategy
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type RequestHashPolicies = {
|
|
87
|
+
hashSourceIp?: boolean
|
|
88
|
+
terminal?: boolean
|
|
89
|
+
headerHashPolicy?: HeaderHashPolicy
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type HeaderHashPolicy = {
|
|
93
|
+
headerName?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
71
96
|
export type UpdateAPIReq = {
|
|
72
97
|
apiName?: string
|
|
73
98
|
workspaceId?: string
|
|
74
99
|
gatewayName?: string
|
|
75
100
|
clusterName?: string
|
|
101
|
+
namespaceName?: string
|
|
76
102
|
apiConfig?: APIConfig
|
|
77
103
|
}
|
|
78
104
|
|
|
79
105
|
export type CreateAPIRes = {
|
|
106
|
+
apiName?: string
|
|
80
107
|
}
|
|
81
108
|
|
|
82
109
|
export type UpdateAPIRes = {
|
|
110
|
+
apiName?: string
|
|
83
111
|
}
|
|
84
112
|
|
|
85
113
|
export type DeleteAPIRes = {
|
|
114
|
+
apiName?: string
|
|
86
115
|
}
|
|
87
116
|
|
|
88
117
|
export type GetAPIReq = {
|
|
@@ -90,6 +119,7 @@ export type GetAPIReq = {
|
|
|
90
119
|
clusterName?: string
|
|
91
120
|
gatewayName?: string
|
|
92
121
|
apiName?: string
|
|
122
|
+
namespaceName?: string
|
|
93
123
|
}
|
|
94
124
|
|
|
95
125
|
export type DeleteAPIReq = {
|
|
@@ -97,14 +127,16 @@ export type DeleteAPIReq = {
|
|
|
97
127
|
clusterName?: string
|
|
98
128
|
gatewayName?: string
|
|
99
129
|
apiName?: string
|
|
130
|
+
namespaceName?: string
|
|
100
131
|
}
|
|
101
132
|
|
|
102
133
|
export type GetAPIRes = {
|
|
103
134
|
apiName?: string
|
|
104
|
-
apiStatus?: APIStatus
|
|
135
|
+
apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
|
|
105
136
|
fqdn?: string
|
|
106
137
|
matchRule?: MatchRule
|
|
107
138
|
targetService?: TargetService
|
|
139
|
+
advancedPolicy?: AdvancedAPIConfig
|
|
108
140
|
}
|
|
109
141
|
|
|
110
142
|
export type TargetService = {
|
|
@@ -115,14 +147,14 @@ export type ServiceDetail = {
|
|
|
115
147
|
clusterName?: string
|
|
116
148
|
k8SNamespaceName?: string
|
|
117
149
|
serviceName?: string
|
|
118
|
-
|
|
150
|
+
registryId?: string
|
|
119
151
|
address?: string
|
|
120
|
-
protocol?: Protocol
|
|
152
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
121
153
|
port?: number
|
|
122
154
|
weight?: string
|
|
123
155
|
nacosNamespaceId?: string
|
|
124
156
|
groupName?: string
|
|
125
|
-
routeType?: RouteType
|
|
157
|
+
routeType?: SkoalaApiHostedV1alpha1Http.RouteType
|
|
126
158
|
path?: string
|
|
127
159
|
statusCode?: number
|
|
128
160
|
}
|
|
@@ -140,7 +172,7 @@ export type APIConfig = BaseAPIConfig
|
|
|
140
172
|
|
|
141
173
|
export type Virtualhost = {
|
|
142
174
|
fqdn?: string
|
|
143
|
-
protocol?: Protocol
|
|
175
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
144
176
|
}
|
|
145
177
|
|
|
146
178
|
export type Certificate = {
|
|
@@ -149,7 +181,7 @@ export type Certificate = {
|
|
|
149
181
|
|
|
150
182
|
|
|
151
183
|
type BaseMatchRule = {
|
|
152
|
-
httpMethod?: HttpMethod[]
|
|
184
|
+
httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
153
185
|
headers?: HeaderRule[]
|
|
154
186
|
}
|
|
155
187
|
|
|
@@ -170,65 +202,20 @@ export type RouteAction = {
|
|
|
170
202
|
|
|
171
203
|
|
|
172
204
|
type BaseRouteService = {
|
|
173
|
-
protocol?: Protocol
|
|
205
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
174
206
|
port?: number
|
|
175
207
|
weight?: number
|
|
176
208
|
}
|
|
177
209
|
|
|
178
210
|
export type RouteService = BaseRouteService
|
|
179
|
-
& OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService }>
|
|
180
|
-
|
|
181
|
-
export type KubernetesService = {
|
|
182
|
-
clusterId?: string
|
|
183
|
-
clusterName?: string
|
|
184
|
-
namespaceName?: string
|
|
185
|
-
serviceName?: string
|
|
186
|
-
address?: string
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export type ExternalService = {
|
|
190
|
-
serviceName?: string
|
|
191
|
-
address?: string
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
type BaseRegistryService = {
|
|
196
|
-
registrationId?: string
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export type RegistryService = BaseRegistryService
|
|
200
|
-
& OneOf<{ eurekaService: EurekaService; nacosService: NacosService; zookeeperService: ZookeeperService; kubernetesService: KubernetesService }>
|
|
201
|
-
|
|
202
|
-
export type EurekaService = {
|
|
203
|
-
address?: string
|
|
204
|
-
serviceName?: string
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export type NacosService = {
|
|
208
|
-
address?: string
|
|
209
|
-
serviceName?: string
|
|
210
|
-
namespaceId?: string
|
|
211
|
-
groupName?: string
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export type ZookeeperService = {
|
|
215
|
-
address?: string
|
|
216
|
-
serviceName?: string
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export type MeshService = {
|
|
220
|
-
instanceId?: string
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export type ApplicationService = {
|
|
224
|
-
}
|
|
211
|
+
& OneOf<{ kubernetesService: SkoalaApiHostedV1alpha1Gatewayservice.KubernetesService; registryService: SkoalaApiHostedV1alpha1Gatewayservice.RegistryService; externalService: SkoalaApiHostedV1alpha1Gatewayservice.ExternalService }>
|
|
225
212
|
|
|
226
213
|
export type RedirectAction = {
|
|
227
214
|
hostname?: string
|
|
228
215
|
path?: string
|
|
229
216
|
port?: number
|
|
230
217
|
statusCode?: number
|
|
231
|
-
protocol?: Protocol
|
|
218
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
232
219
|
}
|
|
233
220
|
|
|
234
221
|
export type DirectResponse = {
|
|
@@ -240,21 +227,12 @@ export type APIListReq = {
|
|
|
240
227
|
workspaceId?: string
|
|
241
228
|
clusterName?: string
|
|
242
229
|
gatewayName?: string
|
|
230
|
+
namespaceName?: string
|
|
243
231
|
page?: number
|
|
244
232
|
pageSize?: number
|
|
245
233
|
}
|
|
246
234
|
|
|
247
235
|
export type APIListRes = {
|
|
248
|
-
api?: APIInfo[]
|
|
249
|
-
pagination?:
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export type APIInfo = {
|
|
253
|
-
apiName?: string
|
|
254
|
-
fqdn?: string
|
|
255
|
-
method?: HttpMethod[]
|
|
256
|
-
requestPath?: string
|
|
257
|
-
routeType?: RouteType
|
|
258
|
-
apiStatus?: APIStatus
|
|
259
|
-
updatedAt?: string
|
|
236
|
+
api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
|
|
237
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
260
238
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
export type SearchLogReq = {
|
|
9
|
+
workspaceId?: string
|
|
10
|
+
gatewayName?: string
|
|
11
|
+
clusterName?: string
|
|
12
|
+
namespaceName?: string
|
|
13
|
+
requestId?: string
|
|
14
|
+
fqdn?: string
|
|
15
|
+
requestPath?: string
|
|
16
|
+
statusCode?: string[]
|
|
17
|
+
requestMethod?: string[]
|
|
18
|
+
message?: string
|
|
19
|
+
startTime?: string
|
|
20
|
+
endTime?: string
|
|
21
|
+
sortOrder?: SortOrder[]
|
|
22
|
+
page?: number
|
|
23
|
+
pageSize?: number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type SortOrder = {
|
|
27
|
+
orderBy?: SkoalaApiGeneralV1alpha1Common.OrderBy
|
|
28
|
+
sortBy?: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type SearchLogRes = {
|
|
32
|
+
logResult?: LogResult[]
|
|
33
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type LogResult = {
|
|
37
|
+
authority?: string
|
|
38
|
+
userAgent?: string
|
|
39
|
+
gatewayName?: string
|
|
40
|
+
method?: string
|
|
41
|
+
xForwardedFor?: string
|
|
42
|
+
requestId?: string
|
|
43
|
+
path?: string
|
|
44
|
+
upstreamServiceTime?: string
|
|
45
|
+
requestTime?: string
|
|
46
|
+
json?: string
|
|
47
|
+
}
|