@daocloud-proto/skoala 0.7.1-6 → 0.7.2-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.
- package/api/general/v1alpha1/common.pb.ts +18 -0
- package/api/hosted/v1alpha1/{extension.pb.ts → gateway_plugin.pb.ts} +36 -5
- package/api/hosted/v1alpha1/{gatewaysecret.pb.ts → gateway_secret.pb.ts} +0 -0
- package/api/hosted/v1alpha1/{gatewayservice.pb.ts → gateway_service.pb.ts} +0 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +14 -8
- package/api/skoala/v1alpha1/skoala.pb.ts +48 -39
- package/gogoproto/gogo.pb.ts +1 -0
- package/graph/v1alpha1/graph.pb.ts +111 -0
- package/insight/v1alpha1/alert.pb.ts +4 -7
- package/insight/v1alpha1/notify.pb.ts +11 -4
- package/log/v1alpha1/log.pb.ts +17 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +17 -4
- package/resource/v1alpha1/job.pb.ts +10 -8
- package/resource/v1alpha1/node.pb.ts +14 -2
- package/resource/v1alpha1/pod.pb.ts +3 -2
- package/resource/v1alpha1/service.pb.ts +2 -0
- package/resource/v1alpha1/type.pb.ts +17 -0
- package/resource/v1alpha1/workload.pb.ts +2 -1
- package/tracing/v1alpha1/model.pb.ts +86 -0
- package/tracing/v1alpha1/query.pb.ts +48 -0
- package/tracing/v1alpha1/tracing.pb.ts +2 -0
|
@@ -59,6 +59,12 @@ export enum TimeUnit {
|
|
|
59
59
|
Second = "Second",
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
export enum PluginSwitchStatus {
|
|
63
|
+
PLUGIN_SWITCH_STATUS_UNSPECIFIED = "PLUGIN_SWITCH_STATUS_UNSPECIFIED",
|
|
64
|
+
On = "On",
|
|
65
|
+
Off = "Off",
|
|
66
|
+
}
|
|
67
|
+
|
|
62
68
|
export type Cluster = {
|
|
63
69
|
id?: string
|
|
64
70
|
name?: string
|
|
@@ -90,4 +96,16 @@ export type API = {
|
|
|
90
96
|
nacosGroupName?: string
|
|
91
97
|
dataType?: APIDataType
|
|
92
98
|
detail?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type Image = {
|
|
102
|
+
registry?: string
|
|
103
|
+
repository?: string
|
|
104
|
+
tag?: string
|
|
105
|
+
pullPolicy?: string
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type Chart = {
|
|
109
|
+
version?: string
|
|
110
|
+
images?: {[key: string]: Image}
|
|
93
111
|
}
|
|
@@ -5,17 +5,24 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
8
9
|
export type GatewayRLSConfig = {
|
|
10
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
11
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
12
|
+
replicas?: number
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type GatewayRLSRule = {
|
|
9
16
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
10
17
|
requestsPerUnit?: number
|
|
11
18
|
}
|
|
12
19
|
|
|
13
|
-
export type
|
|
20
|
+
export type SwitchGatewayRLSReq = {
|
|
14
21
|
workspaceId?: string
|
|
15
22
|
clusterName?: string
|
|
16
23
|
namespaceName?: string
|
|
17
24
|
gatewayName?: string
|
|
18
|
-
|
|
25
|
+
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
export type GetGatewayRLSReq = {
|
|
@@ -26,25 +33,49 @@ export type GetGatewayRLSReq = {
|
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
export type GetGatewayRLSRes = {
|
|
29
|
-
|
|
36
|
+
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
30
37
|
}
|
|
31
38
|
|
|
32
|
-
export type
|
|
39
|
+
export type SetGatewayRLSConfigReq = {
|
|
33
40
|
workspaceId?: string
|
|
34
41
|
clusterName?: string
|
|
35
42
|
namespaceName?: string
|
|
36
43
|
gatewayName?: string
|
|
44
|
+
config?: GatewayRLSConfig
|
|
37
45
|
}
|
|
38
46
|
|
|
39
|
-
export type
|
|
47
|
+
export type GetGatewayRLSConfigReq = {
|
|
40
48
|
workspaceId?: string
|
|
41
49
|
clusterName?: string
|
|
42
50
|
namespaceName?: string
|
|
43
51
|
gatewayName?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type GetGatewayRLSConfigRes = {
|
|
44
55
|
config?: GatewayRLSConfig
|
|
45
56
|
}
|
|
46
57
|
|
|
58
|
+
export type SetGatewayRLSRuleReq = {
|
|
59
|
+
workspaceId?: string
|
|
60
|
+
clusterName?: string
|
|
61
|
+
namespaceName?: string
|
|
62
|
+
gatewayName?: string
|
|
63
|
+
rule?: GatewayRLSRule
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type GetGatewayRLSRuleReq = {
|
|
67
|
+
workspaceId?: string
|
|
68
|
+
clusterName?: string
|
|
69
|
+
namespaceName?: string
|
|
70
|
+
gatewayName?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type GetGatewayRLSRuleRes = {
|
|
74
|
+
rule?: GatewayRLSRule
|
|
75
|
+
}
|
|
76
|
+
|
|
47
77
|
export type GatewayAuthzConfig = {
|
|
78
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
48
79
|
}
|
|
49
80
|
|
|
50
81
|
export type CreateGatewayAuthzReq = {
|
|
File without changes
|
|
File without changes
|
|
@@ -157,10 +157,7 @@ export type RestartNacosReq = {
|
|
|
157
157
|
|
|
158
158
|
export type NacosConfig = {
|
|
159
159
|
type?: NacosConfigType
|
|
160
|
-
|
|
161
|
-
imageRegistry?: string
|
|
162
|
-
imageRepository?: string
|
|
163
|
-
imageTag?: string
|
|
160
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
164
161
|
replicas?: number
|
|
165
162
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
166
163
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -293,8 +290,8 @@ export type UpdateNacosServiceReq = {
|
|
|
293
290
|
nacosGroupName?: string
|
|
294
291
|
nacosService?: string
|
|
295
292
|
protectThreshold?: number
|
|
296
|
-
metadata?: string
|
|
297
|
-
selector?: string
|
|
293
|
+
metadata?: {[key: string]: string}
|
|
294
|
+
selector?: {[key: string]: string}
|
|
298
295
|
}
|
|
299
296
|
|
|
300
297
|
export type DeleteNacosServiceReq = {
|
|
@@ -427,7 +424,7 @@ export type UpdateNacosServiceInstanceReq = {
|
|
|
427
424
|
ephemeral?: boolean
|
|
428
425
|
weight?: number
|
|
429
426
|
enabled?: boolean
|
|
430
|
-
metadata?: string
|
|
427
|
+
metadata?: {[key: string]: string}
|
|
431
428
|
nacosInstanceId?: string
|
|
432
429
|
}
|
|
433
430
|
|
|
@@ -742,7 +739,16 @@ export type DeleteNacosConfigReq = {
|
|
|
742
739
|
nacosNamespace?: string
|
|
743
740
|
dataId?: string
|
|
744
741
|
group?: string
|
|
745
|
-
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export type DeleteNacosConfigBatchReq = {
|
|
745
|
+
workspaceId?: string
|
|
746
|
+
clusterName?: string
|
|
747
|
+
namespaceName?: string
|
|
748
|
+
nacosName?: string
|
|
749
|
+
nacosNamespace?: string
|
|
750
|
+
dataId?: string
|
|
751
|
+
group?: string
|
|
746
752
|
ids?: string
|
|
747
753
|
}
|
|
748
754
|
|
|
@@ -11,10 +11,10 @@ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.p
|
|
|
11
11
|
import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
|
|
12
12
|
import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
|
|
13
13
|
import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
|
|
14
|
-
import * as SkoalaApiHostedV1alpha1Extension from "../../hosted/v1alpha1/extension.pb"
|
|
15
14
|
import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
15
|
+
import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
|
|
16
|
+
import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
|
|
17
|
+
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
|
|
18
18
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
19
19
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
20
20
|
import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
|
|
@@ -220,6 +220,9 @@ export class Nacos {
|
|
|
220
220
|
static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
221
221
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}`, {...initReq, method: "DELETE"})
|
|
222
222
|
}
|
|
223
|
+
static DeleteConfigBatch(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
224
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE"})
|
|
225
|
+
}
|
|
223
226
|
static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNodeRes> {
|
|
224
227
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
225
228
|
}
|
|
@@ -373,29 +376,29 @@ export class Gateway {
|
|
|
373
376
|
static QueryGatewayPodMetric(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes> {
|
|
374
377
|
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"})
|
|
375
378
|
}
|
|
376
|
-
static GetGatewayNamespace(req:
|
|
377
|
-
return fm.fetchReq<
|
|
379
|
+
static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceRes> {
|
|
380
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
378
381
|
}
|
|
379
|
-
static CreateService(req:
|
|
380
|
-
return fm.fetchReq<
|
|
382
|
+
static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
383
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, GoogleProtobufEmpty.Empty>(`/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)})
|
|
381
384
|
}
|
|
382
|
-
static ListService(req:
|
|
383
|
-
return fm.fetchReq<
|
|
385
|
+
static ListService(req: SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceRes> {
|
|
386
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
|
|
384
387
|
}
|
|
385
|
-
static GetService(req:
|
|
386
|
-
return fm.fetchReq<
|
|
388
|
+
static GetService(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceRes> {
|
|
389
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "sesameId"])}`, {...initReq, method: "GET"})
|
|
387
390
|
}
|
|
388
|
-
static UpdateService(req:
|
|
389
|
-
return fm.fetchReq<
|
|
391
|
+
static UpdateService(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
392
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
390
393
|
}
|
|
391
|
-
static UpdateServicePolicy(req:
|
|
392
|
-
return fm.fetchReq<
|
|
394
|
+
static UpdateServicePolicy(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
395
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServicePolicyReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
393
396
|
}
|
|
394
|
-
static ListServiceSecret(req:
|
|
395
|
-
return fm.fetchReq<
|
|
397
|
+
static ListServiceSecret(req: SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretRes> {
|
|
398
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/servicesecrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
396
399
|
}
|
|
397
|
-
static DeleteService(req:
|
|
398
|
-
return fm.fetchReq<
|
|
400
|
+
static DeleteService(req: SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
401
|
+
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"})
|
|
399
402
|
}
|
|
400
403
|
static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
401
404
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, GoogleProtobufEmpty.Empty>(`/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)})
|
|
@@ -442,34 +445,40 @@ export class Gateway {
|
|
|
442
445
|
static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
443
446
|
return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
|
|
444
447
|
}
|
|
445
|
-
static CreateSecret(req:
|
|
446
|
-
return fm.fetchReq<
|
|
448
|
+
static CreateSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes> {
|
|
449
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
450
|
+
}
|
|
451
|
+
static ListSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretRes> {
|
|
452
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.ListSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
453
|
+
}
|
|
454
|
+
static SwitchGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
455
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
447
456
|
}
|
|
448
|
-
static
|
|
449
|
-
return fm.fetchReq<
|
|
457
|
+
static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes> {
|
|
458
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
450
459
|
}
|
|
451
|
-
static
|
|
452
|
-
return fm.fetchReq<
|
|
460
|
+
static SetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
461
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
453
462
|
}
|
|
454
|
-
static
|
|
455
|
-
return fm.fetchReq<
|
|
463
|
+
static GetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes> {
|
|
464
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
456
465
|
}
|
|
457
|
-
static
|
|
458
|
-
return fm.fetchReq<
|
|
466
|
+
static SetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
467
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
459
468
|
}
|
|
460
|
-
static
|
|
461
|
-
return fm.fetchReq<
|
|
469
|
+
static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
|
|
470
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
462
471
|
}
|
|
463
|
-
static CreateGatewayAuthz(req:
|
|
464
|
-
return fm.fetchReq<
|
|
472
|
+
static CreateGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
473
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
465
474
|
}
|
|
466
|
-
static GetGatewayAuthz(req:
|
|
467
|
-
return fm.fetchReq<
|
|
475
|
+
static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes> {
|
|
476
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
468
477
|
}
|
|
469
|
-
static DeleteGatewayAuthz(req:
|
|
470
|
-
return fm.fetchReq<
|
|
478
|
+
static DeleteGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
479
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "DELETE"})
|
|
471
480
|
}
|
|
472
|
-
static UpdateGatewayAuthz(req:
|
|
473
|
-
return fm.fetchReq<
|
|
481
|
+
static UpdateGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
482
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
474
483
|
}
|
|
475
484
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
|
|
9
|
+
export enum NodeType {
|
|
10
|
+
NODE_TYPE_UNSPECIFIED = "NODE_TYPE_UNSPECIFIED",
|
|
11
|
+
CLUSTER = "CLUSTER",
|
|
12
|
+
NAMESPACE = "NAMESPACE",
|
|
13
|
+
SERVICE = "SERVICE",
|
|
14
|
+
WORKLOAD = "WORKLOAD",
|
|
15
|
+
INSTANCE = "INSTANCE",
|
|
16
|
+
NODE = "NODE",
|
|
17
|
+
CUSTOM = "CUSTOM",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum Layer {
|
|
21
|
+
LAYER_UNSPECIFIED = "LAYER_UNSPECIFIED",
|
|
22
|
+
KUBERNETES = "KUBERNETES",
|
|
23
|
+
MESH = "MESH",
|
|
24
|
+
OS_LINUX = "OS_LINUX",
|
|
25
|
+
VM = "VM",
|
|
26
|
+
INFRA = "INFRA",
|
|
27
|
+
GENERAL = "GENERAL",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum GraphType {
|
|
31
|
+
GRAPH_UNSPECIFIED = "GRAPH_UNSPECIFIED",
|
|
32
|
+
CLUSTER_SCOPE = "CLUSTER_SCOPE",
|
|
33
|
+
NAMESPACE_SCOPE = "NAMESPACE_SCOPE",
|
|
34
|
+
SERVICE_SCOPE = "SERVICE_SCOPE",
|
|
35
|
+
WORKLOAD_SCOPE = "WORKLOAD_SCOPE",
|
|
36
|
+
INSTANCE_SCOPE = "INSTANCE_SCOPE",
|
|
37
|
+
MIXED = "MIXED",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type Status = {
|
|
41
|
+
name?: string
|
|
42
|
+
value?: number
|
|
43
|
+
properties?: {[key: string]: string}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type NodeMetadata = {
|
|
47
|
+
cluster?: string
|
|
48
|
+
namespace?: string
|
|
49
|
+
service?: string
|
|
50
|
+
name?: string
|
|
51
|
+
layer?: Layer
|
|
52
|
+
properties?: {[key: string]: string}
|
|
53
|
+
clusterName?: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type NodePosition = {
|
|
57
|
+
x?: number
|
|
58
|
+
y?: number
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type Node = {
|
|
62
|
+
id?: string
|
|
63
|
+
parent?: string
|
|
64
|
+
type?: NodeType
|
|
65
|
+
metadata?: NodeMetadata
|
|
66
|
+
position?: NodePosition
|
|
67
|
+
statuses?: Status[]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type Edge = {
|
|
71
|
+
id?: string
|
|
72
|
+
source?: string
|
|
73
|
+
target?: string
|
|
74
|
+
statuses?: Status[]
|
|
75
|
+
properties?: {[key: string]: string}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type Graph = {
|
|
79
|
+
nodes?: Node[]
|
|
80
|
+
edges?: Edge[]
|
|
81
|
+
layer?: Layer
|
|
82
|
+
graphType?: GraphType
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type BaseGraphQuery = {
|
|
86
|
+
clusters?: string[]
|
|
87
|
+
namespaces?: string[]
|
|
88
|
+
services?: string[]
|
|
89
|
+
layer?: Layer
|
|
90
|
+
start?: string
|
|
91
|
+
end?: string
|
|
92
|
+
extensionFilters?: string
|
|
93
|
+
graphType?: GraphType
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type BaseMetricsQuery = {
|
|
97
|
+
cluster?: string
|
|
98
|
+
namespace?: string
|
|
99
|
+
service?: string
|
|
100
|
+
extensionFilters?: string
|
|
101
|
+
endTime?: string
|
|
102
|
+
lookback?: string
|
|
103
|
+
step?: string
|
|
104
|
+
ratePer?: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type NodeMetricResponse = {
|
|
108
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
109
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
110
|
+
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
111
|
+
}
|
|
@@ -17,6 +17,7 @@ export enum TargetType {
|
|
|
17
17
|
TARGET_TYPE_UNSPECIFIED = "TARGET_TYPE_UNSPECIFIED",
|
|
18
18
|
GLOBAL = "GLOBAL",
|
|
19
19
|
CLUSTER = "CLUSTER",
|
|
20
|
+
NAMESPACE = "NAMESPACE",
|
|
20
21
|
NODE = "NODE",
|
|
21
22
|
DEPLOYMENT = "DEPLOYMENT",
|
|
22
23
|
STATEFULSET = "STATEFULSET",
|
|
@@ -47,6 +48,8 @@ export enum AlertStatus {
|
|
|
47
48
|
export type ListRulesRequest = {
|
|
48
49
|
builtin?: boolean
|
|
49
50
|
name?: string
|
|
51
|
+
clusterName?: string
|
|
52
|
+
namespace?: string
|
|
50
53
|
severity?: Severity
|
|
51
54
|
status?: RuleStatus
|
|
52
55
|
page?: number
|
|
@@ -134,9 +137,6 @@ export type CreateRuleRequest = {
|
|
|
134
137
|
export type UpdateRuleRequest = {
|
|
135
138
|
id?: string
|
|
136
139
|
description?: string
|
|
137
|
-
clusterName?: string
|
|
138
|
-
namespace?: string
|
|
139
|
-
targetNames?: string[]
|
|
140
140
|
expr?: string
|
|
141
141
|
thresholdSymbol?: string
|
|
142
142
|
thresholdNum?: string
|
|
@@ -219,10 +219,6 @@ export type CountAlert = {
|
|
|
219
219
|
count?: {[key: string]: string}
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
export type ResolveAlertRequest = {
|
|
223
|
-
alertId?: string[]
|
|
224
|
-
}
|
|
225
|
-
|
|
226
222
|
export type AMHookRequest = {
|
|
227
223
|
version?: string
|
|
228
224
|
groupKey?: string
|
|
@@ -233,6 +229,7 @@ export type AMHookRequest = {
|
|
|
233
229
|
commonAnnotations?: {[key: string]: string}
|
|
234
230
|
externalURL?: string
|
|
235
231
|
alerts?: AmAlert[]
|
|
232
|
+
truncatedAlerts?: string
|
|
236
233
|
}
|
|
237
234
|
|
|
238
235
|
export type AmAlert = {
|
|
@@ -25,7 +25,6 @@ export enum ReceiverType {
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
type BaseReceiver = {
|
|
28
|
-
id?: string
|
|
29
28
|
name?: string
|
|
30
29
|
type?: ReceiverType
|
|
31
30
|
createAt?: string
|
|
@@ -33,7 +32,7 @@ type BaseReceiver = {
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
export type Receiver = BaseReceiver
|
|
36
|
-
& OneOf<{ webhook: WebhookConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
35
|
+
& OneOf<{ webhook: WebhookConfig; email: EmailConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
37
36
|
|
|
38
37
|
export type WebhookConfig = {
|
|
39
38
|
url?: string
|
|
@@ -48,6 +47,10 @@ export type DingtalkConfig = {
|
|
|
48
47
|
webhook?: string
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
export type EmailConfig = {
|
|
51
|
+
to?: string[]
|
|
52
|
+
}
|
|
53
|
+
|
|
51
54
|
export type ListReceiversRequest = {
|
|
52
55
|
type?: ReceiverType
|
|
53
56
|
page?: number
|
|
@@ -55,8 +58,12 @@ export type ListReceiversRequest = {
|
|
|
55
58
|
sorts?: string[]
|
|
56
59
|
}
|
|
57
60
|
|
|
58
|
-
export type
|
|
59
|
-
|
|
61
|
+
export type GetReceiversRequest = {
|
|
62
|
+
name?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type DeleteReceiversRequest = {
|
|
66
|
+
name?: string
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
export type ReceiverDataResponse = {
|
package/log/v1alpha1/log.pb.ts
CHANGED
|
@@ -14,6 +14,13 @@ 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
|
+
|
|
18
|
+
export enum DownloadFileType {
|
|
19
|
+
TEXT = "TEXT",
|
|
20
|
+
CSV = "CSV",
|
|
21
|
+
JSON = "JSON",
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
export type SearchLogRequest = {
|
|
18
25
|
index?: string
|
|
19
26
|
query?: string
|
|
@@ -117,6 +124,16 @@ export type LogHistogramResult = {
|
|
|
117
124
|
count?: string
|
|
118
125
|
}
|
|
119
126
|
|
|
127
|
+
export type DownloadLogRequest = {
|
|
128
|
+
type?: DownloadFileType
|
|
129
|
+
queryLog?: QueryLogRequest
|
|
130
|
+
queryLogConext?: QueryLogContextRequest
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type DownloadLogResponse = {
|
|
134
|
+
url?: string
|
|
135
|
+
}
|
|
136
|
+
|
|
120
137
|
export type ListLogFilePathsResponse = {
|
|
121
138
|
paths?: string[]
|
|
122
139
|
}
|
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export enum ClusterPhase {
|
|
|
14
14
|
RUNNING = "RUNNING",
|
|
15
15
|
UPDATING = "UPDATING",
|
|
16
16
|
DELETING = "DELETING",
|
|
17
|
+
FAILED = "FAILED",
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export enum ClusterProvider {
|
|
@@ -34,6 +35,11 @@ export enum InsightAgentStatus {
|
|
|
34
35
|
UNHEALTHY = "UNHEALTHY",
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export enum Role {
|
|
39
|
+
NOT_ADMIN = "NOT_ADMIN",
|
|
40
|
+
ADMIN = "ADMIN",
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
export type ListClustersResponse = {
|
|
38
44
|
items?: Cluster[]
|
|
39
45
|
}
|
|
@@ -42,12 +48,13 @@ export type Cluster = {
|
|
|
42
48
|
name?: string
|
|
43
49
|
kubeSystemId?: string
|
|
44
50
|
phase?: ClusterPhase
|
|
51
|
+
role?: Role
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
export type ListClusterSummaryRequest = {
|
|
48
55
|
name?: string
|
|
49
56
|
version?: string
|
|
50
|
-
|
|
57
|
+
phase?: ClusterPhase
|
|
51
58
|
page?: number
|
|
52
59
|
pageSize?: number
|
|
53
60
|
}
|
|
@@ -66,8 +73,7 @@ export type ClusterSummary = {
|
|
|
66
73
|
kubeSystemId?: string
|
|
67
74
|
phase?: ClusterPhase
|
|
68
75
|
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
69
|
-
insightAgentStatus?:
|
|
70
|
-
insightAgentCreateTime?: string
|
|
76
|
+
insightAgentStatus?: insightAgentState
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export type ClusterDetail = {
|
|
@@ -82,7 +88,13 @@ export type ClusterDetail = {
|
|
|
82
88
|
statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
83
89
|
daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
84
90
|
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
85
|
-
insightAgentStatus?:
|
|
91
|
+
insightAgentStatus?: insightAgentState
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type insightAgentState = {
|
|
95
|
+
status?: InsightAgentStatus
|
|
96
|
+
version?: string
|
|
97
|
+
createTime?: string
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
export type ListNamespacesRequest = {
|
|
@@ -95,4 +107,5 @@ export type ListNamespacesResponse = {
|
|
|
95
107
|
|
|
96
108
|
export type Namespace = {
|
|
97
109
|
name?: string
|
|
110
|
+
role?: Role
|
|
98
111
|
}
|
|
@@ -15,19 +15,19 @@ export enum CronJobPhase {
|
|
|
15
15
|
CRONJOB_STATE_DELETING = "CRONJOB_STATE_DELETING",
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export enum
|
|
18
|
+
export enum JobState {
|
|
19
19
|
JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
JOB_STATE_WAITING = "JOB_STATE_WAITING",
|
|
21
|
+
JOB_STATE_RUNNING = "JOB_STATE_RUNNING",
|
|
22
|
+
JOB_STATE_COMPLETED = "JOB_STATE_COMPLETED",
|
|
23
|
+
JOB_STATE_DELETING = "JOB_STATE_DELETING",
|
|
24
|
+
JOB_STATE_FAILED = "JOB_STATE_FAILED",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type ListJobsRequest = {
|
|
28
28
|
cluster?: string
|
|
29
29
|
namespace?: string
|
|
30
|
-
|
|
30
|
+
phase?: JobState
|
|
31
31
|
name?: string
|
|
32
32
|
page?: number
|
|
33
33
|
pageSize?: number
|
|
@@ -52,6 +52,7 @@ export type CronJob = {
|
|
|
52
52
|
phase?: CronJobPhase
|
|
53
53
|
createTimestamp?: string
|
|
54
54
|
jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
55
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
export type CronJobSpec = {
|
|
@@ -80,7 +81,7 @@ export type JobStatus = {
|
|
|
80
81
|
active?: number
|
|
81
82
|
succeed?: number
|
|
82
83
|
failed?: number
|
|
83
|
-
phase?:
|
|
84
|
+
phase?: JobState
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
export type Job = {
|
|
@@ -90,4 +91,5 @@ export type Job = {
|
|
|
90
91
|
status?: JobStatus
|
|
91
92
|
createTimestamp?: string
|
|
92
93
|
jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
94
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
93
95
|
}
|
|
@@ -16,7 +16,7 @@ export enum NodePhase {
|
|
|
16
16
|
|
|
17
17
|
export type ListNodesRequest = {
|
|
18
18
|
cluster?: string
|
|
19
|
-
|
|
19
|
+
phase?: NodePhase
|
|
20
20
|
name?: string
|
|
21
21
|
page?: number
|
|
22
22
|
pageSize?: number
|
|
@@ -44,11 +44,23 @@ export type Node = {
|
|
|
44
44
|
operatingSystem?: string
|
|
45
45
|
address?: string
|
|
46
46
|
creationTimestamp?: string
|
|
47
|
-
|
|
47
|
+
nodeStatus?: NodeStatus
|
|
48
48
|
podSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
49
49
|
usage?: usage
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export type NodeStatus = {
|
|
53
|
+
phase?: NodePhase
|
|
54
|
+
conditions?: NodeCondition[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type NodeCondition = {
|
|
58
|
+
type?: string
|
|
59
|
+
status?: InsightIoApiResourceV1alpha1Type.ConditionStatus
|
|
60
|
+
reason?: string
|
|
61
|
+
message?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
export type usage = {
|
|
53
65
|
cpuCapacity?: string
|
|
54
66
|
cpuAllocated?: number
|
|
@@ -26,7 +26,7 @@ export enum ContainerPhase {
|
|
|
26
26
|
export type ListPodsRequest = {
|
|
27
27
|
cluster?: string
|
|
28
28
|
namespace?: string
|
|
29
|
-
|
|
29
|
+
phase?: PodPhase
|
|
30
30
|
name?: string
|
|
31
31
|
page?: number
|
|
32
32
|
pageSize?: number
|
|
@@ -60,13 +60,14 @@ export type Pod = {
|
|
|
60
60
|
containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
61
61
|
podIp?: string
|
|
62
62
|
hostIp?: string
|
|
63
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export type ListContainersRequest = {
|
|
66
67
|
cluster?: string
|
|
67
68
|
namespace?: string
|
|
68
69
|
name?: string
|
|
69
|
-
|
|
70
|
+
phase?: ContainerPhase
|
|
70
71
|
page?: number
|
|
71
72
|
pageSize?: number
|
|
72
73
|
}
|
|
@@ -27,6 +27,7 @@ export type ListServicesRequest = {
|
|
|
27
27
|
name?: string
|
|
28
28
|
page?: number
|
|
29
29
|
pageSize?: number
|
|
30
|
+
tracingEnabled?: boolean
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export type ListServicesResponse = {
|
|
@@ -37,6 +38,7 @@ export type ListServicesResponse = {
|
|
|
37
38
|
export type serviceSummary = {
|
|
38
39
|
name?: string
|
|
39
40
|
namespace?: string
|
|
41
|
+
tracingEnabled?: boolean
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
export type Service = {
|
|
@@ -3,7 +3,24 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
export enum ConditionStatus {
|
|
8
|
+
CONDITION_STATUS_UNSPECIFIED = "CONDITION_STATUS_UNSPECIFIED",
|
|
9
|
+
True = "True",
|
|
10
|
+
False = "False",
|
|
11
|
+
Unknown = "Unknown",
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
export type ResourceNumSummary = {
|
|
7
15
|
totalNum?: number
|
|
8
16
|
readyNum?: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type Condition = {
|
|
20
|
+
lastTransitionTime?: string
|
|
21
|
+
lastUpdateTime?: string
|
|
22
|
+
message?: string
|
|
23
|
+
reason?: string
|
|
24
|
+
status?: string
|
|
25
|
+
type?: string
|
|
9
26
|
}
|
|
@@ -26,7 +26,7 @@ export type ListWorkloadsRequest = {
|
|
|
26
26
|
cluster?: string
|
|
27
27
|
namespace?: string
|
|
28
28
|
name?: string
|
|
29
|
-
|
|
29
|
+
phase?: WorkloadPhase
|
|
30
30
|
page?: number
|
|
31
31
|
pageSize?: number
|
|
32
32
|
}
|
|
@@ -50,6 +50,7 @@ export type Workload = {
|
|
|
50
50
|
phase?: WorkloadPhase
|
|
51
51
|
createTimestamp?: string
|
|
52
52
|
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
53
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export type GetWorkloadRequest = {
|
|
@@ -0,0 +1,86 @@
|
|
|
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 GoogleProtobufTimestamp from "../../google/protobuf/timestamp.pb"
|
|
8
|
+
|
|
9
|
+
export enum ValueType {
|
|
10
|
+
STRING = "STRING",
|
|
11
|
+
BOOL = "BOOL",
|
|
12
|
+
INT64 = "INT64",
|
|
13
|
+
FLOAT64 = "FLOAT64",
|
|
14
|
+
BINARY = "BINARY",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum SpanRefType {
|
|
18
|
+
CHILD_OF = "CHILD_OF",
|
|
19
|
+
FOLLOWS_FROM = "FOLLOWS_FROM",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type KeyValue = {
|
|
23
|
+
key?: string
|
|
24
|
+
vType?: ValueType
|
|
25
|
+
vStr?: string
|
|
26
|
+
vBool?: boolean
|
|
27
|
+
vInt64?: string
|
|
28
|
+
vFloat64?: number
|
|
29
|
+
vBinary?: Uint8Array
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type Log = {
|
|
33
|
+
time?: string
|
|
34
|
+
fields?: KeyValue[]
|
|
35
|
+
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type SpanRef = {
|
|
39
|
+
traceId?: string
|
|
40
|
+
spanId?: string
|
|
41
|
+
refType?: SpanRefType
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Process = {
|
|
45
|
+
serviceName?: string
|
|
46
|
+
tags?: KeyValue[]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type Span = {
|
|
50
|
+
traceId?: string
|
|
51
|
+
spanId?: string
|
|
52
|
+
operationName?: string
|
|
53
|
+
references?: SpanRef[]
|
|
54
|
+
flags?: number
|
|
55
|
+
startTime?: string
|
|
56
|
+
duration?: string
|
|
57
|
+
tags?: KeyValue[]
|
|
58
|
+
logs?: Log[]
|
|
59
|
+
process?: Process
|
|
60
|
+
processId?: string
|
|
61
|
+
warnings?: string[]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type TraceProcessMapping = {
|
|
65
|
+
processId?: string
|
|
66
|
+
process?: Process
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type Trace = {
|
|
70
|
+
spans?: Span[]
|
|
71
|
+
processMap?: TraceProcessMapping[]
|
|
72
|
+
warnings?: string[]
|
|
73
|
+
traceId?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type Batch = {
|
|
77
|
+
spans?: Span[]
|
|
78
|
+
process?: Process
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type DependencyLink = {
|
|
82
|
+
parent?: string
|
|
83
|
+
child?: string
|
|
84
|
+
callCount?: string
|
|
85
|
+
source?: string
|
|
86
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 InsightIoApiTracingV1alpha1Model from "./model.pb"
|
|
8
|
+
export type TracesResponseChunk = {
|
|
9
|
+
traces?: InsightIoApiTracingV1alpha1Model.Trace[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type SpansResponseChunk = {
|
|
13
|
+
spans?: InsightIoApiTracingV1alpha1Model.Span[]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type TraceQueryParameters = {
|
|
17
|
+
serviceName?: string
|
|
18
|
+
operationName?: string
|
|
19
|
+
tags?: {[key: string]: string}
|
|
20
|
+
start?: string
|
|
21
|
+
end?: string
|
|
22
|
+
durationMin?: string
|
|
23
|
+
durationMax?: string
|
|
24
|
+
limit?: number
|
|
25
|
+
cluster?: string
|
|
26
|
+
namespace?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type FindTracesRequest = {
|
|
30
|
+
query?: TraceQueryParameters
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type GetOperationsRequest = {
|
|
34
|
+
service?: string
|
|
35
|
+
spanKind?: string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type Operation = {
|
|
39
|
+
name?: string
|
|
40
|
+
spanKind?: string
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type GetServicesRequest = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GetServicesResponse = {
|
|
47
|
+
services?: string[]
|
|
48
|
+
}
|