@daocloud-proto/skoala 0.30.0 → 0.31.1-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.
@@ -218,4 +218,14 @@ export type GroupVersionResource = {
218
218
  group?: string
219
219
  version?: string
220
220
  resource?: string
221
+ }
222
+
223
+ export type SamplePoint = {
224
+ timestamp?: number
225
+ value?: string
226
+ }
227
+
228
+ export type SampleSequence = {
229
+ key?: string
230
+ samples?: SamplePoint[]
221
231
  }
@@ -365,6 +365,7 @@ export type APIListReq = {
365
365
  namespaceName?: string
366
366
  apiName?: string
367
367
  apiGroup?: string
368
+ fqdn?: string
368
369
  page?: number
369
370
  pageSize?: number
370
371
  }
@@ -404,4 +405,25 @@ export type QueryAPIByParamsReq = {
404
405
 
405
406
  export type QueryAPIByParamsRes = {
406
407
  apiNames?: string[]
408
+ }
409
+
410
+ export type QueryAPIStatsMetricRangeReq = {
411
+ workspaceId?: string
412
+ clusterName?: string
413
+ namespaceName?: string
414
+ gatewayName?: string
415
+ apiName?: string
416
+ beginTime?: number
417
+ endTime?: number
418
+ step?: number
419
+ }
420
+
421
+ export type QueryAPIStatsMetricRangeRes = {
422
+ summary?: SkoalaApiHostedV1alpha1Http.HttpStatsItem
423
+ total?: SkoalaApiGeneralV1alpha1Common.SampleSequence
424
+ success?: SkoalaApiGeneralV1alpha1Common.SampleSequence
425
+ fail?: SkoalaApiGeneralV1alpha1Common.SampleSequence
426
+ xx4?: SkoalaApiGeneralV1alpha1Common.SampleSequence
427
+ xx5?: SkoalaApiGeneralV1alpha1Common.SampleSequence
428
+ ok?: SkoalaApiGeneralV1alpha1Common.SampleSequence
407
429
  }
@@ -346,6 +346,7 @@ type BaseEnvoyAdvancedConfig = {
346
346
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
347
347
  numTrustedHops?: number
348
348
  allowSidecarInject?: boolean
349
+ enableStatsPrefix?: boolean
349
350
  }
350
351
 
351
352
  export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
8
8
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
9
+ import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
9
10
  export type ListInWorkspaceGatewayNamesReq = {
10
11
  workspaceId?: string
11
12
  }
@@ -92,4 +93,29 @@ export type GatewayOverviewBasicDataRes = {
92
93
  autoServiceNum?: number
93
94
  apiNum?: number
94
95
  virtualhostNum?: number
96
+ }
97
+
98
+ export type GatewayOverviewRealtimeHTTPStatsReq = {
99
+ workspaceId?: string
100
+ clusterName?: string
101
+ namespaceName?: string
102
+ gatewayName?: string
103
+ kind?: SkoalaApiHostedV1alpha1Http.HttpStatsKind
104
+ }
105
+
106
+ export type GatewayOverviewRealtimeHTTPStatsRes = {
107
+ items?: SkoalaApiHostedV1alpha1Http.HttpStatsItem[]
108
+ }
109
+
110
+ export type GatewayOverviewAPIStatsReq = {
111
+ workspaceId?: string
112
+ clusterName?: string
113
+ namespaceName?: string
114
+ gatewayName?: string
115
+ beginTime?: number
116
+ endTime?: number
117
+ }
118
+
119
+ export type GatewayOverviewAPIStatsRes = {
120
+ items?: SkoalaApiHostedV1alpha1Http.HttpStatsItem[]
95
121
  }
@@ -44,6 +44,12 @@ export enum APIStatusEnum {
44
44
  unknown = "unknown",
45
45
  }
46
46
 
47
+ export enum APICreateType {
48
+ DIRECT_API = "DIRECT_API",
49
+ LANE_API = "LANE_API",
50
+ IMPORT_API = "IMPORT_API",
51
+ }
52
+
47
53
  export enum MatchType {
48
54
  EXACT = "EXACT",
49
55
  PREFIX = "PREFIX",
@@ -110,6 +116,13 @@ export enum StatusCode {
110
116
  NetworkAuthenticationRequired = "NetworkAuthenticationRequired",
111
117
  }
112
118
 
119
+ export enum HttpStatsKind {
120
+ HTTP_STATS_KIND_UNSPECIFIED = "HTTP_STATS_KIND_UNSPECIFIED",
121
+ HttpStatsKindGateway = "HttpStatsKindGateway",
122
+ HttpStatsKindService = "HttpStatsKindService",
123
+ HttpStatsKindAPI = "HttpStatsKindAPI",
124
+ }
125
+
113
126
  export type Header = {
114
127
  name?: string
115
128
  value?: string
@@ -158,9 +171,21 @@ export type APIInfo = {
158
171
  apiStatus?: APIStatus
159
172
  status?: string
160
173
  statusDescription?: string
174
+ apiCreateType?: APICreateType
161
175
  updatedAt?: string
162
176
  }
163
177
 
164
178
  export type HttpStatus = {
165
179
  code?: StatusCode
180
+ }
181
+
182
+ export type HttpStatsItem = {
183
+ namespace?: string
184
+ name?: string
185
+ total?: number
186
+ success?: number
187
+ fail?: number
188
+ xx4?: number
189
+ xx5?: number
190
+ ok?: number
166
191
  }
@@ -51,6 +51,7 @@ export enum ServiceStatus {
51
51
 
52
52
  export enum ServiceType {
53
53
  GOVERN_TYPE_UNSPECIFIED = "GOVERN_TYPE_UNSPECIFIED",
54
+ NORMAL = "NORMAL",
54
55
  SPRING_CLOUD = "SPRING_CLOUD",
55
56
  DUBBO = "DUBBO",
56
57
  }
@@ -911,6 +911,7 @@ export type GetResourceInfoRes = {
911
911
  namespaceName?: string
912
912
  nacos?: GetResourceInfoResResourceInfo
913
913
  sentinel?: GetResourceInfoResResourceInfo
914
+ seata?: GetResourceInfoResResourceInfo
914
915
  }
915
916
 
916
917
  export type GetBetaConfigReq = {
@@ -159,6 +159,7 @@ export type UpdateSentinelPluginReq = {
159
159
  type?: SkoalaApiGeneralV1alpha1Service.ServiceType
160
160
  ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
161
161
  pwd?: string
162
+ deleteConfigs?: boolean
162
163
  }
163
164
 
164
165
  export type UpdateSeataPluginReq = {
@@ -61,6 +61,7 @@ export type GetAPIRes = {
61
61
  apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
62
62
  status?: SkoalaApiHostedV1alpha1Http.APIStatusEnum
63
63
  statusDescription?: string
64
+ apiCreateType?: SkoalaApiHostedV1alpha1Http.APICreateType
64
65
  }
65
66
 
66
67
  export type GetAPIDocReq = {
@@ -99,4 +100,27 @@ type BaseRouteRule = {
99
100
  }
100
101
 
101
102
  export type RouteRule = BaseRouteRule
102
- & OneOf<{ routeAction: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
103
+ & OneOf<{ routeAction: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
104
+
105
+ export type APIDebugReq = {
106
+ workspaceId?: string
107
+ gatewayName?: string
108
+ clusterName?: string
109
+ namespaceName?: string
110
+ apiName?: string
111
+ method?: string
112
+ path?: string
113
+ body?: string
114
+ query?: {[key: string]: string}
115
+ header?: {[key: string]: string}
116
+ scheme?: string
117
+ insecureSkipVerify?: boolean
118
+ }
119
+
120
+ export type APIDebugRes = {
121
+ status?: string
122
+ latency?: string
123
+ log?: string
124
+ request?: string
125
+ response?: string
126
+ }
@@ -166,13 +166,14 @@ export type GetGatewayServiceReq = {
166
166
  }
167
167
 
168
168
  export type GetGatewayServiceRes = {
169
- externalServiceConf?: ExternalServiceConf
169
+ basicAccessServiceConfig?: ExternalServiceConf
170
170
  manageServiceConf?: ServiceInfo
171
171
  serviceType?: SesameServiceType
172
172
  api?: SkoalaApiHostedV1alpha1Http.APIInfo[]
173
173
  sesameId?: string
174
174
  createdAt?: string
175
175
  advancedAccessServiceConfig?: AdvancedAccessServiceConfig
176
+ displayAddress?: string[]
176
177
  }
177
178
 
178
179
 
@@ -191,6 +192,7 @@ export type ServiceInfo = {
191
192
  createdAt?: string
192
193
  serviceType?: SesameServiceType
193
194
  sesameId?: string
195
+ displayAddress?: string[]
194
196
  servicePort?: SkoalaApiGeneralV1alpha1Common.KubernetesServicePort[]
195
197
  }
196
198
 
@@ -821,6 +821,9 @@ export class GatewayAPI {
821
821
  static QueryAPIByParams(req: SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes> {
822
822
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
823
823
  }
824
+ static QueryAPIStatsMetricRange(req: SkoalaApiHostedV1alpha1Api.QueryAPIStatsMetricRangeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.QueryAPIStatsMetricRangeRes> {
825
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.QueryAPIStatsMetricRangeReq, SkoalaApiHostedV1alpha1Api.QueryAPIStatsMetricRangeRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/stats/http?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
826
+ }
824
827
  }
825
828
  export class GatewayService {
826
829
  static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
@@ -864,6 +867,12 @@ export class GatewayOverview {
864
867
  static GatewayOverviewBasicData(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicDataReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicDataRes> {
865
868
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicDataReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicDataRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/stats/basicdata?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
866
869
  }
870
+ static GatewayOverviewRealtimeHTTPStats(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRealtimeHTTPStatsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRealtimeHTTPStatsRes> {
871
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRealtimeHTTPStatsReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRealtimeHTTPStatsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/stats/http/now?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
872
+ }
873
+ static GatewayOverviewAPIStats(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPIStatsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPIStatsRes> {
874
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPIStatsReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPIStatsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/stats/api?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
875
+ }
867
876
  }
868
877
  export class SkoalaPlugin {
869
878
  static CreatePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.CreateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
@@ -10,6 +10,9 @@ import * as SkoalaApiGeneralV1alpha2Skoala from "../../general/v1alpha2/skoala.p
10
10
  import * as SkoalaApiHostedV1alpha2Gateway_api from "../../hosted/v1alpha2/gateway_api.pb"
11
11
  import * as SkoalaApiHostedV1alpha2Gateway_service from "../../hosted/v1alpha2/gateway_service.pb"
12
12
  export class GatewayAPI {
13
+ static DebugGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.APIDebugReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.APIDebugRes> {
14
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.APIDebugReq, SkoalaApiHostedV1alpha2Gateway_api.APIDebugRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/debug`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
15
+ }
13
16
  static CreateGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
14
17
  return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
15
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.30.0",
3
+ "version": "0.31.1-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {