@daocloud-proto/skoala 0.17.1-6 → 0.18.0-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.
|
@@ -0,0 +1,63 @@
|
|
|
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 InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
9
|
+
export type ListGatewayNamesReq = {
|
|
10
|
+
workspaceId?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ListGatewayNamesRes = {
|
|
14
|
+
gatewayNames?: string[]
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type GatewayOverviewBasicReq = {
|
|
18
|
+
workspaceId?: string
|
|
19
|
+
gatewayName?: string[]
|
|
20
|
+
startTime?: string
|
|
21
|
+
endTime?: string
|
|
22
|
+
time?: string
|
|
23
|
+
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type GatewayOverviewBasicRes = {
|
|
27
|
+
avgTime?: number
|
|
28
|
+
apiCount?: string
|
|
29
|
+
rps?: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type GatewayOverviewHealthReq = {
|
|
33
|
+
workspaceId?: string
|
|
34
|
+
gatewayName?: string[]
|
|
35
|
+
startTime?: string
|
|
36
|
+
endTime?: string
|
|
37
|
+
time?: string
|
|
38
|
+
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type GatewayOverviewHealthRes = {
|
|
42
|
+
successMetrics?: GatewayMetrics[]
|
|
43
|
+
failMetrics?: GatewayMetrics[]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GatewayMetrics = {
|
|
47
|
+
gatewayName?: string
|
|
48
|
+
metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type GatewayOverviewAPINumRankReq = {
|
|
52
|
+
workspaceId?: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type GatewayOverviewAPINumRankRes = {
|
|
56
|
+
items?: GatewayAPINum[]
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type GatewayAPINum = {
|
|
60
|
+
gatewayName?: string
|
|
61
|
+
deploymentLocation?: string
|
|
62
|
+
apiNum?: number
|
|
63
|
+
}
|
|
@@ -13,6 +13,7 @@ import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version
|
|
|
13
13
|
import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
|
|
14
14
|
import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
|
|
15
15
|
import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
|
|
16
|
+
import * as SkoalaApiHostedV1alpha1Gateway_overview from "../../hosted/v1alpha1/gateway_overview.pb"
|
|
16
17
|
import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
|
|
17
18
|
import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
|
|
18
19
|
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
|
|
@@ -606,4 +607,18 @@ export class GatewayService {
|
|
|
606
607
|
static DeleteService(req: SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
607
608
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "DELETE"})
|
|
608
609
|
}
|
|
610
|
+
}
|
|
611
|
+
export class GatewayOverview {
|
|
612
|
+
static ListGatewayName(req: SkoalaApiHostedV1alpha1Gateway_overview.ListGatewayNamesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.ListGatewayNamesRes> {
|
|
613
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.ListGatewayNamesReq, SkoalaApiHostedV1alpha1Gateway_overview.ListGatewayNamesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/gateway/names?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
614
|
+
}
|
|
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"]}/statics/gateway/basic?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
617
|
+
}
|
|
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"]}/statics/gateway/health?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
620
|
+
}
|
|
621
|
+
static GatewayOverviewAPINumRank(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPINumRankReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPINumRankRes> {
|
|
622
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPINumRankReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewAPINumRankRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/gateway/apinumrank?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
623
|
+
}
|
|
609
624
|
}
|