@daocloud-proto/skoala 0.3.1 → 0.3.3-101
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/skoala.pb.ts +19 -7
- package/api/hosted/v1alpha1/gateway.pb.ts +112 -59
- package/api/hosted/v1alpha1/nacos.pb.ts +92 -2
- package/api/integrated/v1alpha1/insight.pb.ts +19 -4
- package/api/integrated/v1alpha1/instance.pb.ts +29 -19
- package/api/integrated/v1alpha1/registry.pb.ts +6 -5
- package/api/integrated/v1alpha1/service.pb.ts +8 -11
- package/api/skoala/v1alpha1/book.pb.ts +2 -2
- package/api/skoala/v1alpha1/skoala.pb.ts +25 -13
- package/feature_gate/v1alpha1/feature_gate.pb.ts +27 -0
- package/fetch.pb.ts +109 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/protobuf/any.pb.ts +9 -0
- package/google/protobuf/api.pb.ts +32 -0
- package/google/protobuf/descriptor.pb.ts +262 -0
- package/google/protobuf/duration.pb.ts +9 -0
- package/google/protobuf/empty.pb.ts +7 -0
- package/google/protobuf/field_mask.pb.ts +8 -0
- package/google/protobuf/struct.pb.ts +33 -0
- package/google/protobuf/timestamp.pb.ts +9 -0
- package/google/protobuf/type.pb.ts +83 -0
- package/google/protobuf/wrappers.pb.ts +40 -0
- package/google/rpc/status.pb.ts +12 -0
- package/insight/v1alpha1/alert.pb.ts +292 -0
- package/insight/v1alpha1/notify.pb.ts +84 -0
- package/log/v1alpha1/log.pb.ts +103 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +102 -0
- package/resource/v1alpha1/job.pb.ts +93 -0
- package/resource/v1alpha1/node.pb.ts +62 -0
- package/resource/v1alpha1/pod.pb.ts +82 -0
- package/resource/v1alpha1/service.pb.ts +61 -0
- package/resource/v1alpha1/type.pb.ts +9 -0
- package/resource/v1alpha1/workload.pb.ts +69 -0
- package/span_metric/v1alpha1/openmetrics.pb.ts +130 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +113 -0
- package/type/v1alpha1/page.pb.ts +11 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum requestStatus {
|
|
8
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
9
|
+
SUCCESS = "SUCCESS",
|
|
10
|
+
FAIL = "FAIL",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type Sample = {
|
|
14
|
+
metric?: {[key: string]: string}
|
|
15
|
+
values?: samplePair
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type SampleStream = {
|
|
19
|
+
metric?: {[key: string]: string}
|
|
20
|
+
values?: samplePair[]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type samplePair = {
|
|
24
|
+
timestamp?: string
|
|
25
|
+
value?: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type PrometheusQueryRequest = {
|
|
29
|
+
cluster?: string
|
|
30
|
+
namespace?: string
|
|
31
|
+
query?: string
|
|
32
|
+
time?: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type PrometheusQueryRangeRequest = {
|
|
36
|
+
cluster?: string
|
|
37
|
+
namespace?: string
|
|
38
|
+
query?: string
|
|
39
|
+
start?: string
|
|
40
|
+
end?: string
|
|
41
|
+
step?: number
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type PrometheusQueryResult = {
|
|
45
|
+
vector?: Sample[]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type PrometheusQueryRangeResult = {
|
|
49
|
+
matrix?: SampleStream[]
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type BatchQueryRangeRequestParam = {
|
|
53
|
+
start?: string
|
|
54
|
+
end?: string
|
|
55
|
+
step?: number
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type BatchQueryRequestParam = {
|
|
59
|
+
time?: string
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type MatchLabel = {
|
|
63
|
+
cluster?: string
|
|
64
|
+
namespace?: string
|
|
65
|
+
extraLabel?: {[key: string]: string}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type BatchQueryRequest = {
|
|
69
|
+
param?: BatchQueryRequestParam
|
|
70
|
+
matchLabel?: MatchLabel
|
|
71
|
+
queryList?: string[]
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type BatchQueryResponse = {
|
|
75
|
+
data?: BatchQueryResult[]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type BatchQueryResult = {
|
|
79
|
+
data?: PrometheusQueryResult
|
|
80
|
+
status?: requestStatus
|
|
81
|
+
errorMessage?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type BatchQueryRangeRequest = {
|
|
85
|
+
param?: BatchQueryRangeRequestParam
|
|
86
|
+
matchLabel?: MatchLabel
|
|
87
|
+
queryList?: string[]
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type BatchQueryRangeResponse = {
|
|
91
|
+
data?: BatchQueryRangeResult[]
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type BatchQueryRangeResult = {
|
|
95
|
+
data?: PrometheusQueryRangeResult
|
|
96
|
+
status?: requestStatus
|
|
97
|
+
errorMessage?: string
|
|
98
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
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 InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
9
|
+
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
10
|
+
|
|
11
|
+
export enum ClusterPhase {
|
|
12
|
+
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
13
|
+
UNKNOWN = "UNKNOWN",
|
|
14
|
+
CREATING = "CREATING",
|
|
15
|
+
RUNNING = "RUNNING",
|
|
16
|
+
UPDATING = "UPDATING",
|
|
17
|
+
DELETING = "DELETING",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum ClusterProvider {
|
|
21
|
+
GENERIC = "GENERIC",
|
|
22
|
+
DAOCLOUD_KUBESPRAY = "DAOCLOUD_KUBESPRAY",
|
|
23
|
+
DAOCLOUD_CLUSTER_API = "DAOCLOUD_CLUSTER_API",
|
|
24
|
+
DAOCLOUD_DCE4 = "DAOCLOUD_DCE4",
|
|
25
|
+
REDHAT_OPENSHIFT4 = "REDHAT_OPENSHIFT4",
|
|
26
|
+
SUSE_RANCHER = "SUSE_RANCHER",
|
|
27
|
+
VMWARE_TANZU = "VMWARE_TANZU",
|
|
28
|
+
AWS_EKS = "AWS_EKS",
|
|
29
|
+
ALIYUN_ACK = "ALIYUN_ACK",
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export enum InsightAgentStatus {
|
|
33
|
+
NOT_INSTALLED = "NOT_INSTALLED",
|
|
34
|
+
HEALTHY = "HEALTHY",
|
|
35
|
+
UNHEALTHY = "UNHEALTHY",
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type ListClustersResponse = {
|
|
39
|
+
items?: Cluster[]
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Cluster = {
|
|
43
|
+
name?: string
|
|
44
|
+
kubeSystemId?: string
|
|
45
|
+
phase?: ClusterPhase
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type ListClusterSummaryRequest = {
|
|
49
|
+
name?: string
|
|
50
|
+
version?: string
|
|
51
|
+
phases?: ClusterPhase[]
|
|
52
|
+
page?: number
|
|
53
|
+
pageSize?: number
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type ListClusterSummaryResponse = {
|
|
57
|
+
items?: ClusterSummary[]
|
|
58
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type GetClusterRequest = {
|
|
62
|
+
name?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type ClusterSummary = {
|
|
66
|
+
name?: string
|
|
67
|
+
phase?: ClusterPhase
|
|
68
|
+
provider?: ClusterProvider
|
|
69
|
+
kubernetesVersion?: string
|
|
70
|
+
creationTimestamp?: string
|
|
71
|
+
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
72
|
+
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
73
|
+
insightAgentStatus?: InsightAgentStatus
|
|
74
|
+
cpuUsage?: InsightIoApiMetricV1alpha1Metric.samplePair[]
|
|
75
|
+
memoryUsage?: InsightIoApiMetricV1alpha1Metric.samplePair[]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type ClusterDetail = {
|
|
79
|
+
name?: string
|
|
80
|
+
phase?: ClusterPhase
|
|
81
|
+
provider?: ClusterProvider
|
|
82
|
+
kubernetesVersion?: string
|
|
83
|
+
creationTimestamp?: string
|
|
84
|
+
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
85
|
+
deploymentNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
86
|
+
statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
87
|
+
daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
88
|
+
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
89
|
+
insightAgentStatus?: InsightAgentStatus
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type ListNamespacesRequest = {
|
|
93
|
+
cluster?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type ListNamespacesResponse = {
|
|
97
|
+
namespaces?: Namespace[]
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type Namespace = {
|
|
101
|
+
name?: string
|
|
102
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
|
+
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
|
+
|
|
10
|
+
export enum CronJobPhase {
|
|
11
|
+
CRONJOB_STATE_UNSPECIFIED = "CRONJOB_STATE_UNSPECIFIED",
|
|
12
|
+
CRONJOB_STATE_WAITING = "CRONJOB_STATE_WAITING",
|
|
13
|
+
CRONJOB_STATE_ACTIVATED = "CRONJOB_STATE_ACTIVATED",
|
|
14
|
+
CRONJOB_STATE_STOPPED = "CRONJOB_STATE_STOPPED",
|
|
15
|
+
CRONJOB_STATE_DELETING = "CRONJOB_STATE_DELETING",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum JobStatusJobState {
|
|
19
|
+
JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
|
|
20
|
+
WAITING = "WAITING",
|
|
21
|
+
RUNNING = "RUNNING",
|
|
22
|
+
COMPLETED = "COMPLETED",
|
|
23
|
+
DELETING = "DELETING",
|
|
24
|
+
FAILED = "FAILED",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type ListJobsRequest = {
|
|
28
|
+
cluster?: string
|
|
29
|
+
namespace?: string
|
|
30
|
+
phases?: string[]
|
|
31
|
+
name?: string
|
|
32
|
+
page?: number
|
|
33
|
+
pageSize?: number
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type ListCronJobsResponse = {
|
|
37
|
+
items?: CronJobSummary[]
|
|
38
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type CronJobSummary = {
|
|
42
|
+
name?: string
|
|
43
|
+
namespace?: string
|
|
44
|
+
phase?: CronJobPhase
|
|
45
|
+
jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type CronJob = {
|
|
49
|
+
name?: string
|
|
50
|
+
cluster?: string
|
|
51
|
+
namespace?: string
|
|
52
|
+
phase?: CronJobPhase
|
|
53
|
+
createTimestamp?: string
|
|
54
|
+
jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type CronJobSpec = {
|
|
58
|
+
schedule?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type GetJobRequest = {
|
|
62
|
+
cluster?: string
|
|
63
|
+
namespace?: string
|
|
64
|
+
name?: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type ListJobsResponse = {
|
|
68
|
+
items?: JobSummary[]
|
|
69
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type JobSummary = {
|
|
73
|
+
name?: string
|
|
74
|
+
namespace?: string
|
|
75
|
+
status?: JobStatus
|
|
76
|
+
jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type JobStatus = {
|
|
80
|
+
active?: number
|
|
81
|
+
succeed?: number
|
|
82
|
+
failed?: number
|
|
83
|
+
phase?: JobStatusJobState
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type Job = {
|
|
87
|
+
name?: string
|
|
88
|
+
cluster?: string
|
|
89
|
+
namespace?: string
|
|
90
|
+
status?: JobStatus
|
|
91
|
+
createTimestamp?: string
|
|
92
|
+
jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
93
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
|
+
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
|
+
|
|
10
|
+
export enum NodePhase {
|
|
11
|
+
NODE_PHASE_UNSPECIFIED = "NODE_PHASE_UNSPECIFIED",
|
|
12
|
+
NODE_PHASE_READY = "NODE_PHASE_READY",
|
|
13
|
+
NODE_PHASE_NOT_READY = "NODE_PHASE_NOT_READY",
|
|
14
|
+
NODE_PHASE_UNKNOWN = "NODE_PHASE_UNKNOWN",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ListNodesRequest = {
|
|
18
|
+
cluster?: string
|
|
19
|
+
phases?: NodePhase[]
|
|
20
|
+
name?: string
|
|
21
|
+
page?: number
|
|
22
|
+
pageSize?: number
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ListNodesResponse = {
|
|
26
|
+
items?: NodeSummary[]
|
|
27
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type NodeSummary = {
|
|
31
|
+
name?: string
|
|
32
|
+
phase?: NodePhase
|
|
33
|
+
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type GetNodeRequest = {
|
|
37
|
+
cluster?: string
|
|
38
|
+
name?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Node = {
|
|
42
|
+
name?: string
|
|
43
|
+
cluster?: string
|
|
44
|
+
operatingSystem?: string
|
|
45
|
+
address?: string
|
|
46
|
+
creationTimestamp?: string
|
|
47
|
+
phase?: NodePhase
|
|
48
|
+
podSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
49
|
+
usage?: usage
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type usage = {
|
|
53
|
+
cpuCapacity?: string
|
|
54
|
+
cpuAllocated?: number
|
|
55
|
+
cpuUsage?: number
|
|
56
|
+
memoryCapacity?: string
|
|
57
|
+
memoryAllocated?: number
|
|
58
|
+
memoryUsage?: number
|
|
59
|
+
storageCapacity?: string
|
|
60
|
+
storageAllocated?: string
|
|
61
|
+
storageUsage?: number
|
|
62
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
|
+
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
|
+
|
|
10
|
+
export enum PodPhase {
|
|
11
|
+
POD_PHASE_UNSPECIFIED = "POD_PHASE_UNSPECIFIED",
|
|
12
|
+
POD_PHASE_UNKNOWN = "POD_PHASE_UNKNOWN",
|
|
13
|
+
POD_PHASE_PENDING = "POD_PHASE_PENDING",
|
|
14
|
+
POD_PHASE_RUNNING = "POD_PHASE_RUNNING",
|
|
15
|
+
POD_PHASE_SUCCEED = "POD_PHASE_SUCCEED",
|
|
16
|
+
POD_PHASE_FAILED = "POD_PHASE_FAILED",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export enum ContainerPhase {
|
|
20
|
+
CONTAINER_PHASE_UNSPECIFIED = "CONTAINER_PHASE_UNSPECIFIED",
|
|
21
|
+
CONTAINER_PHASE_WAITING = "CONTAINER_PHASE_WAITING",
|
|
22
|
+
CONTAINER_PHASE_RUNNING = "CONTAINER_PHASE_RUNNING",
|
|
23
|
+
CONTAINER_PHASE_TERMINATED = "CONTAINER_PHASE_TERMINATED",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type ListPodsRequest = {
|
|
27
|
+
cluster?: string
|
|
28
|
+
namespace?: string
|
|
29
|
+
phases?: PodPhase[]
|
|
30
|
+
name?: string
|
|
31
|
+
page?: number
|
|
32
|
+
pageSize?: number
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type ListPodsResponse = {
|
|
36
|
+
items?: PodSummary[]
|
|
37
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type PodSummary = {
|
|
41
|
+
name?: string
|
|
42
|
+
namespace?: string
|
|
43
|
+
phase?: PodPhase
|
|
44
|
+
containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
45
|
+
podIp?: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type GetPodRequest = {
|
|
49
|
+
cluster?: string
|
|
50
|
+
namespace?: string
|
|
51
|
+
name?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type Pod = {
|
|
55
|
+
name?: string
|
|
56
|
+
cluster?: string
|
|
57
|
+
namespace?: string
|
|
58
|
+
phase?: PodPhase
|
|
59
|
+
createTimestamp?: string
|
|
60
|
+
containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
61
|
+
podIp?: string
|
|
62
|
+
hostIp?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type ListContainersRequest = {
|
|
66
|
+
cluster?: string
|
|
67
|
+
namespace?: string
|
|
68
|
+
name?: string
|
|
69
|
+
phases?: ContainerPhase[]
|
|
70
|
+
page?: number
|
|
71
|
+
pageSize?: number
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type ListContainersResponse = {
|
|
75
|
+
items?: ContainerSummary[]
|
|
76
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type ContainerSummary = {
|
|
80
|
+
name?: string
|
|
81
|
+
phase?: ContainerPhase
|
|
82
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
|
+
|
|
9
|
+
export enum ServiceType {
|
|
10
|
+
SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
|
|
11
|
+
CLUSTER_IP = "CLUSTER_IP",
|
|
12
|
+
NODE_PORT = "NODE_PORT",
|
|
13
|
+
LOAD_BALANCER = "LOAD_BALANCER",
|
|
14
|
+
EXTERNAL_NAME = "EXTERNAL_NAME",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum WorkloadSumKind {
|
|
18
|
+
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
19
|
+
DEPLOYMENT = "DEPLOYMENT",
|
|
20
|
+
STATEFULSET = "STATEFULSET",
|
|
21
|
+
DAEMONSET = "DAEMONSET",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ListServicesRequest = {
|
|
25
|
+
cluster?: string
|
|
26
|
+
namespace?: string
|
|
27
|
+
name?: string
|
|
28
|
+
page?: number
|
|
29
|
+
pageSize?: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ListServicesResponse = {
|
|
33
|
+
items?: serviceSummary[]
|
|
34
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type serviceSummary = {
|
|
38
|
+
name?: string
|
|
39
|
+
namespace?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Service = {
|
|
43
|
+
name?: string
|
|
44
|
+
cluster?: string
|
|
45
|
+
namespace?: string
|
|
46
|
+
createTimestamp?: string
|
|
47
|
+
serviceType?: ServiceType
|
|
48
|
+
clusterIp?: string
|
|
49
|
+
workloadData?: WorkloadSum[]
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type WorkloadSum = {
|
|
53
|
+
workloadKind?: WorkloadSumKind
|
|
54
|
+
name?: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type GetServiceRequest = {
|
|
58
|
+
cluster?: string
|
|
59
|
+
namespace?: string
|
|
60
|
+
name?: string
|
|
61
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
|
+
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
|
+
|
|
10
|
+
export enum WorkloadKind {
|
|
11
|
+
DEPLOYMENT = "DEPLOYMENT",
|
|
12
|
+
STATEFULSET = "STATEFULSET",
|
|
13
|
+
DAEMONSET = "DAEMONSET",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum WorkloadPhase {
|
|
17
|
+
WORKLOAD_STATE_UNKNOWN = "WORKLOAD_STATE_UNKNOWN",
|
|
18
|
+
WORKLOAD_STATE_RUNNING = "WORKLOAD_STATE_RUNNING",
|
|
19
|
+
WORKLOAD_STATE_DELETING = "WORKLOAD_STATE_DELETING",
|
|
20
|
+
WORKLOAD_STATE_NOT_READY = "WORKLOAD_STATE_NOT_READY",
|
|
21
|
+
WORKLOAD_STATE_STOPPED = "WORKLOAD_STATE_STOPPED",
|
|
22
|
+
WORKLOAD_STATE_WAITING = "WORKLOAD_STATE_WAITING",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ListWorkloadsRequest = {
|
|
26
|
+
cluster?: string
|
|
27
|
+
namespace?: string
|
|
28
|
+
name?: string
|
|
29
|
+
phases?: WorkloadPhase[]
|
|
30
|
+
page?: number
|
|
31
|
+
pageSize?: number
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type ListWorkloadsResponse = {
|
|
35
|
+
items?: workloadSummary[]
|
|
36
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type workloadSummary = {
|
|
40
|
+
name?: string
|
|
41
|
+
namespace?: string
|
|
42
|
+
phase?: WorkloadPhase
|
|
43
|
+
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type Workload = {
|
|
47
|
+
name?: string
|
|
48
|
+
cluster?: string
|
|
49
|
+
namespace?: string
|
|
50
|
+
phase?: WorkloadPhase
|
|
51
|
+
createTimestamp?: string
|
|
52
|
+
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type GetWorkloadRequest = {
|
|
56
|
+
cluster?: string
|
|
57
|
+
namespace?: string
|
|
58
|
+
name?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type workloadUsage = {
|
|
62
|
+
cpuRequest?: string
|
|
63
|
+
cpuLimit?: string
|
|
64
|
+
cpuUsage?: string
|
|
65
|
+
memoryRequest?: string
|
|
66
|
+
memoryLimit?: string
|
|
67
|
+
memoryUsage?: string
|
|
68
|
+
networkUsage?: string
|
|
69
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
10
|
+
type OneOf<T> =
|
|
11
|
+
| { [k in keyof T]?: undefined }
|
|
12
|
+
| (
|
|
13
|
+
keyof T extends infer K ?
|
|
14
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
15
|
+
: never)
|
|
16
|
+
: never);
|
|
17
|
+
|
|
18
|
+
export enum MetricType {
|
|
19
|
+
UNKNOWN = "UNKNOWN",
|
|
20
|
+
GAUGE = "GAUGE",
|
|
21
|
+
COUNTER = "COUNTER",
|
|
22
|
+
STATE_SET = "STATE_SET",
|
|
23
|
+
INFO = "INFO",
|
|
24
|
+
HISTOGRAM = "HISTOGRAM",
|
|
25
|
+
GAUGE_HISTOGRAM = "GAUGE_HISTOGRAM",
|
|
26
|
+
SUMMARY = "SUMMARY",
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type MetricSet = {
|
|
30
|
+
metricFamilies?: MetricFamily[]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type MetricFamily = {
|
|
34
|
+
name?: string
|
|
35
|
+
type?: MetricType
|
|
36
|
+
unit?: string
|
|
37
|
+
help?: string
|
|
38
|
+
metrics?: Metric[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Metric = {
|
|
42
|
+
labels?: Label[]
|
|
43
|
+
metricPoints?: MetricPoint[]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type Label = {
|
|
47
|
+
name?: string
|
|
48
|
+
value?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
type BaseMetricPoint = {
|
|
53
|
+
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type MetricPoint = BaseMetricPoint
|
|
57
|
+
& OneOf<{ unknownValue: UnknownValue; gaugeValue: GaugeValue; counterValue: CounterValue; histogramValue: HistogramValue; stateSetValue: StateSetValue; infoValue: InfoValue; summaryValue: SummaryValue }>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
type BaseUnknownValue = {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type UnknownValue = BaseUnknownValue
|
|
64
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
type BaseGaugeValue = {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GaugeValue = BaseGaugeValue
|
|
71
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
type BaseCounterValue = {
|
|
75
|
+
created?: GoogleProtobufTimestamp.Timestamp
|
|
76
|
+
exemplar?: Exemplar
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type CounterValue = BaseCounterValue
|
|
80
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
81
|
+
|
|
82
|
+
export type HistogramValueBucket = {
|
|
83
|
+
count?: string
|
|
84
|
+
upperBound?: number
|
|
85
|
+
exemplar?: Exemplar
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
type BaseHistogramValue = {
|
|
90
|
+
count?: string
|
|
91
|
+
created?: GoogleProtobufTimestamp.Timestamp
|
|
92
|
+
buckets?: HistogramValueBucket[]
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type HistogramValue = BaseHistogramValue
|
|
96
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|
|
97
|
+
|
|
98
|
+
export type Exemplar = {
|
|
99
|
+
value?: number
|
|
100
|
+
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
101
|
+
label?: Label[]
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type StateSetValueState = {
|
|
105
|
+
enabled?: boolean
|
|
106
|
+
name?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type StateSetValue = {
|
|
110
|
+
states?: StateSetValueState[]
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type InfoValue = {
|
|
114
|
+
info?: Label[]
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type SummaryValueQuantile = {
|
|
118
|
+
quantile?: number
|
|
119
|
+
value?: number
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
type BaseSummaryValue = {
|
|
124
|
+
count?: string
|
|
125
|
+
created?: GoogleProtobufTimestamp.Timestamp
|
|
126
|
+
quantile?: SummaryValueQuantile[]
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type SummaryValue = BaseSummaryValue
|
|
130
|
+
& OneOf<{ doubleValue: number; intValue: string }>
|