@daocloud-proto/skoala 0.18.0-2 → 0.18.0-4
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.
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
9
|
-
export type
|
|
9
|
+
export type ListInWorkspaceGatewayNamesReq = {
|
|
10
10
|
workspaceId?: string
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export type
|
|
14
|
-
|
|
13
|
+
export type ListInWorkspaceGatewayNamesRes = {
|
|
14
|
+
items?: string[]
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export type GatewayOverviewBasicReq = {
|
|
18
18
|
workspaceId?: string
|
|
19
|
-
|
|
19
|
+
gatewayNames?: string[]
|
|
20
20
|
startTime?: string
|
|
21
21
|
endTime?: string
|
|
22
22
|
time?: string
|
|
@@ -24,14 +24,14 @@ export type GatewayOverviewBasicReq = {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type GatewayOverviewBasicRes = {
|
|
27
|
-
|
|
27
|
+
avgRespTime?: number
|
|
28
28
|
apiCount?: string
|
|
29
29
|
rps?: number
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export type GatewayOverviewHealthReq = {
|
|
33
33
|
workspaceId?: string
|
|
34
|
-
|
|
34
|
+
gatewayNames?: string[]
|
|
35
35
|
startTime?: string
|
|
36
36
|
endTime?: string
|
|
37
37
|
time?: string
|
|
@@ -39,8 +39,8 @@ export type GatewayOverviewHealthReq = {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export type GatewayOverviewHealthRes = {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
success?: GatewayMetrics[]
|
|
43
|
+
fail?: GatewayMetrics[]
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type GatewayMetrics = {
|
|
@@ -48,16 +48,16 @@ export type GatewayMetrics = {
|
|
|
48
48
|
metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export type
|
|
51
|
+
export type GatewayOverviewRankAPINumReq = {
|
|
52
52
|
workspaceId?: string
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export type
|
|
55
|
+
export type GatewayOverviewRankAPINumRes = {
|
|
56
56
|
items?: GatewayAPINum[]
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export type GatewayAPINum = {
|
|
60
60
|
gatewayName?: string
|
|
61
|
-
|
|
61
|
+
location?: string
|
|
62
62
|
apiNum?: number
|
|
63
63
|
}
|
|
@@ -609,16 +609,16 @@ export class GatewayService {
|
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
export class GatewayOverview {
|
|
612
|
-
static
|
|
613
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.
|
|
612
|
+
static ListInWorkspaceGatewayNames(req: SkoalaApiHostedV1alpha1Gateway_overview.ListInWorkspaceGatewayNamesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.ListInWorkspaceGatewayNamesRes> {
|
|
613
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.ListInWorkspaceGatewayNamesReq, SkoalaApiHostedV1alpha1Gateway_overview.ListInWorkspaceGatewayNamesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateway/names?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
614
614
|
}
|
|
615
615
|
static GatewayOverviewBasic(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicRes> {
|
|
616
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/
|
|
616
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/basic?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
617
617
|
}
|
|
618
618
|
static GatewayOverviewHealth(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes> {
|
|
619
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/
|
|
619
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/health?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
620
620
|
}
|
|
621
|
-
static GatewayOverviewAPINumRank(req: SkoalaApiHostedV1alpha1Gateway_overview.
|
|
622
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.
|
|
621
|
+
static GatewayOverviewAPINumRank(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes> {
|
|
622
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/rank/apinum?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
623
623
|
}
|
|
624
624
|
}
|