@daocloud-proto/skoala 0.35.2 → 0.36.0
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.
|
@@ -15,6 +15,13 @@ type OneOf<T> =
|
|
|
15
15
|
: never)
|
|
16
16
|
: never);
|
|
17
17
|
|
|
18
|
+
export enum LogType {
|
|
19
|
+
ALL_LOG = "ALL_LOG",
|
|
20
|
+
ACCESS_LOG = "ACCESS_LOG",
|
|
21
|
+
DEBUG_LOG = "DEBUG_LOG",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
18
25
|
type BaseSearchLogReq = {
|
|
19
26
|
workspaceId?: string
|
|
20
27
|
gatewayName?: string
|
|
@@ -28,6 +35,7 @@ type BaseSearchLogReq = {
|
|
|
28
35
|
endTime?: string
|
|
29
36
|
sortOrder?: SortOrder
|
|
30
37
|
apiName?: string
|
|
38
|
+
logType?: LogType
|
|
31
39
|
page?: number
|
|
32
40
|
pageSize?: number
|
|
33
41
|
}
|
|
@@ -76,4 +84,5 @@ export type LogResult = {
|
|
|
76
84
|
responseEndTime?: string
|
|
77
85
|
json?: string
|
|
78
86
|
apiName?: string
|
|
87
|
+
logType?: LogType
|
|
79
88
|
}
|
|
@@ -116,6 +116,35 @@ export type GatewayOverviewAPIStatsReq = {
|
|
|
116
116
|
endTime?: number
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
export type GatewayOverviewAPITopTimeReq = {
|
|
120
|
+
workspaceId?: string
|
|
121
|
+
clusterName?: string
|
|
122
|
+
namespaceName?: string
|
|
123
|
+
gatewayName?: string
|
|
124
|
+
topN?: number
|
|
125
|
+
startTime?: string
|
|
126
|
+
endTime?: string
|
|
127
|
+
interval?: string
|
|
128
|
+
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type GatewayOverviewAPITopTimeRes = {
|
|
132
|
+
items?: GatewayAPITopTime[]
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type GatewayAPITopTimeGatewayAPIPathTopTime = {
|
|
136
|
+
path?: string
|
|
137
|
+
duration?: number
|
|
138
|
+
count?: number
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type GatewayAPITopTime = {
|
|
142
|
+
apiName?: string
|
|
143
|
+
duration?: number
|
|
144
|
+
count?: number
|
|
145
|
+
pathTopTime?: GatewayAPITopTimeGatewayAPIPathTopTime[]
|
|
146
|
+
}
|
|
147
|
+
|
|
119
148
|
export type GatewayOverviewAPIStatsRes = {
|
|
120
149
|
items?: SkoalaApiHostedV1alpha1Http.HttpStatsItem[]
|
|
121
150
|
}
|
|
@@ -119,4 +119,26 @@ export type Lock = {
|
|
|
119
119
|
rowKey?: string
|
|
120
120
|
gmtCreate?: string
|
|
121
121
|
gmtModified?: string
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type ExceptionItem = {
|
|
125
|
+
name?: string
|
|
126
|
+
cluster?: string
|
|
127
|
+
namespace?: string
|
|
128
|
+
reason?: string
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type Exception = {
|
|
132
|
+
items?: ExceptionItem[]
|
|
133
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type ListStatsSeataReq = {
|
|
137
|
+
workspaceId?: string
|
|
138
|
+
page?: number
|
|
139
|
+
pageSize?: number
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type ListStatsSeataRes = {
|
|
143
|
+
exception?: Exception
|
|
122
144
|
}
|
|
@@ -442,6 +442,9 @@ export class Statics {
|
|
|
442
442
|
static GetStaticsRegistry(req: SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryRes> {
|
|
443
443
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryReq, SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/registries?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
444
444
|
}
|
|
445
|
+
static ListStatsSeata(req: SkoalaApiHostedV1alpha1Seata.ListStatsSeataReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Seata.ListStatsSeataRes> {
|
|
446
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Seata.ListStatsSeataReq, SkoalaApiHostedV1alpha1Seata.ListStatsSeataRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/seatas?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
447
|
+
}
|
|
445
448
|
static ListTop10RegSrv(req: SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvRes> {
|
|
446
449
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvReq, SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/registries/services?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
447
450
|
}
|
|
@@ -879,6 +882,9 @@ export class GatewayOverview {
|
|
|
879
882
|
static GatewayOverviewAPIStats(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPIStatsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPIStatsRes> {
|
|
880
883
|
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"})
|
|
881
884
|
}
|
|
885
|
+
static GatewayOverviewAPITopTime(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPITopTimeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPITopTimeRes> {
|
|
886
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPITopTimeReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPITopTimeRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/stats/api/top/time?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
887
|
+
}
|
|
882
888
|
}
|
|
883
889
|
export class SkoalaPlugin {
|
|
884
890
|
static CreatePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.CreateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|