@daocloud-proto/skoala 0.4.1 → 0.5.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.
@@ -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 SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
+ import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
8
10
 
9
11
  export enum NacosStatus {
10
12
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
@@ -20,13 +22,6 @@ export enum NacosConfigType {
20
22
  cluster = "cluster",
21
23
  }
22
24
 
23
- export enum NacosConfigServiceType {
24
- SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
25
- NodePort = "NodePort",
26
- ClusterIP = "ClusterIP",
27
- LoadBalancer = "LoadBalancer",
28
- }
29
-
30
25
  export type ListNacosReq = {
31
26
  workspaceId?: string
32
27
  clusterName?: string
@@ -37,7 +32,7 @@ export type ListNacosReq = {
37
32
 
38
33
  export type ListNacosRes = {
39
34
  items?: Nacos[]
40
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
35
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
41
36
  }
42
37
 
43
38
  export type Nacos = {
@@ -46,14 +41,14 @@ export type Nacos = {
46
41
  nacosName?: string
47
42
  namespaceName?: string
48
43
  type?: NacosConfigType
49
- serviceType?: NacosConfigServiceType
44
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
50
45
  nodePort?: number
51
46
  status?: NacosStatus
52
47
  replicas?: number
53
48
  image?: string
54
49
  version?: string
55
50
  database?: NacosDatabase
56
- resource?: NacosResource
51
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
57
52
  condition?: NacosCondition[]
58
53
  createAt?: string
59
54
  }
@@ -66,11 +61,6 @@ export type NacosDatabase = {
66
61
  user?: string
67
62
  }
68
63
 
69
- export type NacosResource = {
70
- limits?: {[key: string]: string}
71
- request?: {[key: string]: string}
72
- }
73
-
74
64
  export type NacosCondition = {
75
65
  type?: string
76
66
  status?: string
@@ -132,7 +122,7 @@ export type NacosConfig = {
132
122
  replicas?: number
133
123
  cpu?: string
134
124
  memory?: string
135
- serviceType?: NacosConfigServiceType
125
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
136
126
  nodePort?: string
137
127
  databaseEnabled?: boolean
138
128
  databaseParam?: DatabaseParam
@@ -144,4 +134,14 @@ export type DatabaseParam = {
144
134
  username?: string
145
135
  password?: string
146
136
  db?: string
137
+ }
138
+
139
+ export type ListNacosServiceReq = {
140
+ workspaceId?: string
141
+ clusterName?: string
142
+ nacosName?: string
143
+ namespaceName?: string
144
+ }
145
+
146
+ export type ListNacosServiceRes = {
147
147
  }
@@ -4,7 +4,8 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
8
9
  export type ListSentinelReq = {
9
10
  workspace?: string
10
11
  cluster?: string
@@ -15,7 +16,7 @@ export type ListSentinelReq = {
15
16
 
16
17
  export type ListSentinelRes = {
17
18
  items?: Sentinel[]
18
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
19
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
19
20
  }
20
21
 
21
22
  export type Sentinel = {
@@ -49,18 +50,11 @@ export type UpdateSentinelReq = {
49
50
  export type UpdateSentinelRes = {
50
51
  }
51
52
 
52
- export type Resources = {
53
- cpuRequests?: string
54
- cpuLimits?: string
55
- memoryRequests?: string
56
- memoryLimits?: string
57
- }
58
-
59
53
  export type SentinelConfig = {
60
54
  type?: string
61
55
  port?: number
62
56
  nodePort?: number
63
- resources?: Resources
57
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
64
58
  image?: string
65
59
  }
66
60
 
@@ -0,0 +1,96 @@
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
+ import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
9
+ export type CreateVirtualhostReq = {
10
+ workspaceId?: string
11
+ gatewayName?: string
12
+ clusterName?: string
13
+ namespaceName?: string
14
+ fqdn?: string
15
+ protocol?: SkoalaApiHostedV1alpha1Http.Protocol
16
+ }
17
+
18
+ export type CreateVirtualhostRes = {
19
+ fqdn?: string
20
+ }
21
+
22
+ export type ListVirtualhostReq = {
23
+ workspaceId?: string
24
+ clusterName?: string
25
+ gatewayName?: string
26
+ namespaceName?: string
27
+ fqdn?: string
28
+ page?: number
29
+ pageSize?: number
30
+ }
31
+
32
+ export type VirtualhostInfo = {
33
+ fqdn?: string
34
+ protocol?: SkoalaApiHostedV1alpha1Http.Protocol
35
+ secretName?: string
36
+ namespaceName?: string
37
+ updatedAt?: string
38
+ }
39
+
40
+ export type ListVirtualhostRes = {
41
+ virtualhost?: VirtualhostInfo[]
42
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
43
+ }
44
+
45
+ export type GetVirtualhostReq = {
46
+ workspaceId?: string
47
+ clusterName?: string
48
+ gatewayName?: string
49
+ namespaceName?: string
50
+ fqdn?: string
51
+ }
52
+
53
+ export type GetVirtualhostRes = {
54
+ fqdn?: string
55
+ protocol?: SkoalaApiHostedV1alpha1Http.Protocol
56
+ }
57
+
58
+ export type UpdateVirtualhostReq = {
59
+ workspaceId?: string
60
+ gatewayName?: string
61
+ clusterName?: string
62
+ namespaceName?: string
63
+ fqdn?: string
64
+ protocol?: SkoalaApiHostedV1alpha1Http.Protocol
65
+ }
66
+
67
+ export type UpdateVirtualhostRes = {
68
+ fqdn?: string
69
+ }
70
+
71
+ export type DeleteVirtualhostReq = {
72
+ workspaceId?: string
73
+ gatewayName?: string
74
+ clusterName?: string
75
+ namespaceName?: string
76
+ fqdn?: string
77
+ }
78
+
79
+ export type DeleteVirtualhostRes = {
80
+ fqdn?: string
81
+ }
82
+
83
+ export type CorsPolicy = {
84
+ }
85
+
86
+ export type RateLimitPolicy = {
87
+ }
88
+
89
+ export type Tls = {
90
+ }
91
+
92
+ export type Authorization = {
93
+ }
94
+
95
+ export type AuthPolicy = {
96
+ }
@@ -4,7 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
9
9
 
10
10
  export enum InstanceStatus {
@@ -40,7 +40,7 @@ export type ListInstanceReq = {
40
40
 
41
41
  export type ListInstanceRes = {
42
42
  items?: Instance[]
43
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
43
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
44
44
  }
45
45
 
46
46
  export type GetInstanceReq = {
@@ -4,7 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
 
9
9
  export enum RegistryStatus {
10
10
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
@@ -53,7 +53,7 @@ export type ListRegistryReq = {
53
53
 
54
54
  export type ListRegistryRes = {
55
55
  items?: Registry[]
56
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
56
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
57
57
  }
58
58
 
59
59
  export type GetRegistryReq = {
@@ -4,7 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
  import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
9
9
  import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
10
10
  export type Service = {
@@ -27,7 +27,7 @@ export type ListServiceReq = {
27
27
 
28
28
  export type ListServiceRes = {
29
29
  items?: Service[]
30
- pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
30
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
31
31
  }
32
32
 
33
33
  export type GetServiceReq = {
@@ -9,9 +9,12 @@ import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
9
9
  import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
10
10
  import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
11
11
  import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
12
+ import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
12
13
  import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
14
+ import * as SkoalaApiHostedV1alpha1Gatewayservice from "../../hosted/v1alpha1/gatewayservice.pb"
13
15
  import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
14
16
  import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
17
+ import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtualhost.pb"
15
18
  import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
16
19
  import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
17
20
  import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
@@ -29,6 +32,9 @@ export class Skoala {
29
32
  static ListCluster(req: SkoalaApiGeneralV1alpha1Skoala.ListClusterReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListClusterRes> {
30
33
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListClusterReq, SkoalaApiGeneralV1alpha1Skoala.ListClusterRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
31
34
  }
35
+ static ListMesh(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshRes> {
36
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
37
+ }
32
38
  static ListClusterNamespace(req: SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes> {
33
39
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
34
40
  }
@@ -94,6 +100,9 @@ export class Nacos {
94
100
  static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
95
101
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
96
102
  }
103
+ static ListService(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes> {
104
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "nacosName"])}`, {...initReq, method: "GET"})
105
+ }
97
106
  }
98
107
  export class Sentinel {
99
108
  static List(req: SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes> {
@@ -117,19 +126,19 @@ export class Gateway {
117
126
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListAllGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
118
127
  }
119
128
  static ListClusterGateway(req: SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
120
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
129
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
121
130
  }
122
131
  static Get(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayRes> {
123
132
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
124
133
  }
125
- static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
126
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
134
+ static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes> {
135
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
127
136
  }
128
- static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
129
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
137
+ static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes> {
138
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
130
139
  }
131
- static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
132
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
140
+ static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes> {
141
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
133
142
  }
134
143
  static GetImages(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
135
144
  return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/images?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -137,19 +146,76 @@ export class Gateway {
137
146
  static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
138
147
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
139
148
  }
149
+ static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes> {
150
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
151
+ }
152
+ static ListGatewayPods(req: SkoalaApiHostedV1alpha1Gateway.ListPodsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListPodsRes> {
153
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListPodsReq, SkoalaApiHostedV1alpha1Gateway.ListPodsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
154
+ }
155
+ static GetGatewayPod(req: SkoalaApiHostedV1alpha1Gateway.GetPodReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetPodRes> {
156
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetPodReq, SkoalaApiHostedV1alpha1Gateway.GetPodRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
157
+ }
158
+ static GetGatewayPodAlert(req: SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes> {
159
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/alert/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
160
+ }
161
+ static QueryGatewayDeploymentsMetricRange(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeRes> {
162
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/deployments/queryrange?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
163
+ }
164
+ static QueryGatewayPodMetricRange(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRangeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRangeRes> {
165
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRangeReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRangeRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/pods/${req["podName"]}/queryrange?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
166
+ }
167
+ static QueryGatewayPodMetric(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes> {
168
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/pods/${req["podName"]}/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
169
+ }
170
+ static CreateService(req: SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceRes> {
171
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
172
+ }
173
+ static ListService(req: SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceRes> {
174
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
175
+ }
176
+ static GetService(req: SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceRes> {
177
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "serviceName"])}`, {...initReq, method: "GET"})
178
+ }
179
+ static UpdateService(req: SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceRes> {
180
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["serviceName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
181
+ }
182
+ static DeleteService(req: SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceRes> {
183
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["serviceName"]}`, {...initReq, method: "DELETE"})
184
+ }
185
+ static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes> {
186
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
187
+ }
188
+ static ListVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostRes> {
189
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
190
+ }
191
+ static GetVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostRes> {
192
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "fqdn"])}`, {...initReq, method: "GET"})
193
+ }
194
+ static DeleteVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostRes> {
195
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}`, {...initReq, method: "DELETE"})
196
+ }
197
+ static UpdateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostRes> {
198
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
199
+ }
140
200
  static CreateAPI(req: SkoalaApiHostedV1alpha1Api.CreateAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.CreateAPIRes> {
141
- return fm.fetchReq<SkoalaApiHostedV1alpha1Api.CreateAPIReq, SkoalaApiHostedV1alpha1Api.CreateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
201
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.CreateAPIReq, SkoalaApiHostedV1alpha1Api.CreateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
142
202
  }
143
203
  static ListAPI(req: SkoalaApiHostedV1alpha1Api.APIListReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.APIListRes> {
144
- return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIListReq, SkoalaApiHostedV1alpha1Api.APIListRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "gatewayName"])}`, {...initReq, method: "GET"})
204
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIListReq, SkoalaApiHostedV1alpha1Api.APIListRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
145
205
  }
146
206
  static GetAPI(req: SkoalaApiHostedV1alpha1Api.GetAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.GetAPIRes> {
147
- return fm.fetchReq<SkoalaApiHostedV1alpha1Api.GetAPIReq, SkoalaApiHostedV1alpha1Api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
207
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.GetAPIReq, SkoalaApiHostedV1alpha1Api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
148
208
  }
149
209
  static DeleteAPI(req: SkoalaApiHostedV1alpha1Api.DeleteAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.DeleteAPIRes> {
150
- return fm.fetchReq<SkoalaApiHostedV1alpha1Api.DeleteAPIReq, SkoalaApiHostedV1alpha1Api.DeleteAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "DELETE"})
210
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.DeleteAPIReq, SkoalaApiHostedV1alpha1Api.DeleteAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "DELETE"})
151
211
  }
152
212
  static UpdateAPI(req: SkoalaApiHostedV1alpha1Api.UpdateAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.UpdateAPIRes> {
153
- return fm.fetchReq<SkoalaApiHostedV1alpha1Api.UpdateAPIReq, SkoalaApiHostedV1alpha1Api.UpdateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
213
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.UpdateAPIReq, SkoalaApiHostedV1alpha1Api.UpdateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
214
+ }
215
+ static UpdateAPIPolicy(req: SkoalaApiHostedV1alpha1Api.AdvancedAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.AdvancedAPIRes> {
216
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.AdvancedAPIReq, SkoalaApiHostedV1alpha1Api.AdvancedAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
217
+ }
218
+ static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
219
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.SearchLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
154
220
  }
155
221
  }
@@ -14,6 +14,15 @@ type OneOf<T> =
14
14
  (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
15
15
  : never)
16
16
  : never);
17
+ export type SearchLogRequest = {
18
+ index?: string
19
+ query?: string
20
+ }
21
+
22
+ export type SearchLogResponse = {
23
+ response?: string
24
+ }
25
+
17
26
  export type LogQueryResourceFilter = {
18
27
  logSearch?: string[]
19
28
  clusterFilter?: string[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.4.1",
3
+ "version": "0.5.0-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -65,12 +65,9 @@ export type ClusterSummary = {
65
65
  name?: string
66
66
  kubeSystemId?: string
67
67
  phase?: ClusterPhase
68
- provider?: ClusterProvider
69
- kubernetesVersion?: string
70
- creationTimestamp?: string
71
68
  nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
72
- podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
73
69
  insightAgentStatus?: InsightAgentStatus
70
+ insightAgentCreateTime?: string
74
71
  }
75
72
 
76
73
  export type ClusterDetail = {
@@ -4,9 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as GoogleProtobufDuration from "../../google/protobuf/duration.pb"
8
7
  import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
9
- import * as InsightIoApiSpan_metricV1alpha1Openmetrics from "./openmetrics.pb"
10
8
  import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "./otelspankind.pb"
11
9
  export type MetricsQueryBaseRequest = {
12
10
  cluster?: string
@@ -22,26 +20,6 @@ export type MetricsQueryBaseRequest = {
22
20
  spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
23
21
  }
24
22
 
25
- export type GetLatenciesRequest = {
26
- baseRequest?: MetricsQueryBaseRequest
27
- quantile?: number
28
- }
29
-
30
- export type GetCallRatesRequest = {
31
- baseRequest?: MetricsQueryBaseRequest
32
- }
33
-
34
- export type GetErrorRatesRequest = {
35
- baseRequest?: MetricsQueryBaseRequest
36
- }
37
-
38
- export type GetMinStepDurationRequest = {
39
- }
40
-
41
- export type GetMinStepDurationResponse = {
42
- minStep?: GoogleProtobufDuration.Duration
43
- }
44
-
45
23
  export type GetApdexRequest = {
46
24
  cluster?: string
47
25
  namespace?: string
@@ -52,19 +30,6 @@ export type GetApdexRequest = {
52
30
  extensionFilters?: string
53
31
  }
54
32
 
55
- export type GetMetricsResponse = {
56
- metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricFamily
57
- metricsWithOperation?: MetricsFamilyWithOperation
58
- }
59
-
60
- export type MetricsFamilyWithOperation = {
61
- name?: string
62
- type?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricType
63
- unit?: string
64
- help?: string
65
- metrics?: MetricsWithOperation[]
66
- }
67
-
68
33
  export type MetricsWithOperation = {
69
34
  operationName?: string
70
35
  metricGroups?: MetricsGroup[]
@@ -76,10 +41,6 @@ export type MetricsGroup = {
76
41
  metricsAvg?: number
77
42
  }
78
43
 
79
- export type GetServiceDetailRequest = {
80
- baseRequest?: MetricsQueryBaseRequest
81
- }
82
-
83
44
  export type GetServiceDetailResponse = {
84
45
  p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
85
46
  p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
@@ -0,0 +1,18 @@
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 QueryBaseRequest = {
7
+ cluster?: string
8
+ namespace?: string
9
+ serviceName?: string
10
+ }
11
+
12
+ export type OperationsQueryResponse = {
13
+ operations?: string[]
14
+ }
15
+
16
+ export type TraceRequestById = {
17
+ traceId?: string
18
+ }