@daocloud-proto/skoala 0.49.0-26 → 0.49.0-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/alert/v1alpha1/alert.pb.ts +433 -0
  2. package/alert/v1alpha1/inhibition.pb.ts +56 -0
  3. package/alert/v1alpha1/notify.pb.ts +250 -0
  4. package/alert/v1alpha1/silence.pb.ts +85 -0
  5. package/alert/v1alpha1/type.pb.ts +55 -0
  6. package/api/hosted/v1alpha3/ai_gateway.pb.ts +0 -32
  7. package/event/v1alpha1/event.pb.ts +137 -0
  8. package/feature_gate/v1alpha1/feature_gate.pb.ts +31 -0
  9. package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
  10. package/gogoproto/gogo.pb.ts +1 -0
  11. package/google/api/annotations.pb.ts +1 -0
  12. package/google/api/http.pb.ts +34 -0
  13. package/google/api/httpbody.pb.ts +12 -0
  14. package/{api/crds/version.pb.ts → google/protobuf/any.pb.ts} +3 -5
  15. package/google/protobuf/api.pb.ts +32 -0
  16. package/google/protobuf/descriptor.pb.ts +262 -0
  17. package/google/protobuf/duration.pb.ts +9 -0
  18. package/google/protobuf/empty.pb.ts +7 -0
  19. package/google/protobuf/field_mask.pb.ts +8 -0
  20. package/google/protobuf/struct.pb.ts +33 -0
  21. package/google/protobuf/timestamp.pb.ts +9 -0
  22. package/google/protobuf/type.pb.ts +83 -0
  23. package/google/protobuf/wrappers.pb.ts +40 -0
  24. package/google/rpc/status.pb.ts +12 -0
  25. package/graph/v1alpha1/graph.pb.ts +175 -0
  26. package/log/v1alpha1/log.pb.ts +163 -0
  27. package/metric/v1alpha1/metric.pb.ts +116 -0
  28. package/net_flow/v1alpha1/net_flow.pb.ts +8 -0
  29. package/openapi/annotations.pb.ts +1 -0
  30. package/openapi/openapiv2.pb.ts +193 -0
  31. package/overview/v1alpha1/overview.pb.ts +95 -0
  32. package/package.json +3 -3
  33. package/probes/v1alpha1/probe.pb.ts +132 -0
  34. package/resource/v1alpha1/cluster.pb.ts +156 -0
  35. package/resource/v1alpha1/job.pb.ts +113 -0
  36. package/resource/v1alpha1/namespace.pb.ts +43 -0
  37. package/resource/v1alpha1/node.pb.ts +96 -0
  38. package/resource/v1alpha1/pod.pb.ts +112 -0
  39. package/resource/v1alpha1/service.pb.ts +62 -0
  40. package/resource/v1alpha1/type.pb.ts +26 -0
  41. package/resource/v1alpha1/workload.pb.ts +98 -0
  42. package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
  43. package/span_metric/v1alpha1/span_metric.pb.ts +142 -0
  44. package/tracing/v1alpha1/model.pb.ts +95 -0
  45. package/tracing/v1alpha1/query.pb.ts +43 -0
  46. package/tracing/v1alpha1/tracing.pb.ts +64 -0
  47. package/type/v1alpha1/objectmeta.pb.ts +67 -0
  48. package/type/v1alpha1/page.pb.ts +11 -0
  49. package/user/v1alpha1/user.pb.ts +23 -0
  50. package/validate/validate.pb.ts +266 -0
  51. package/api/hosted/v1alpha3/gateway_api.pb.ts +0 -412
@@ -0,0 +1,132 @@
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 InsightIoApiTypeV1alpha1Objectmeta from "../../type/v1alpha1/objectmeta.pb"
8
+ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
9
+
10
+ export enum StatusPhase {
11
+ Pending = "Pending",
12
+ Running = "Running",
13
+ Failed = "Failed",
14
+ }
15
+
16
+ export type BaseProbeRequest = {
17
+ clusterName?: string
18
+ namespace?: string
19
+ jobName?: string
20
+ }
21
+
22
+ export type CreateProbeRequest = {
23
+ clusterName?: string
24
+ namespace?: string
25
+ probe?: ProbeSpec
26
+ }
27
+
28
+ export type UpdateProbeRequest = {
29
+ clusterName?: string
30
+ namespace?: string
31
+ jobName?: string
32
+ module?: string
33
+ targets?: Targets
34
+ interval?: string
35
+ scrapeTimeout?: string
36
+ }
37
+
38
+ export type Status = {
39
+ phase?: StatusPhase
40
+ }
41
+
42
+ export type Probe = {
43
+ kind?: string
44
+ apiVersion?: string
45
+ metadata?: InsightIoApiTypeV1alpha1Objectmeta.ObjectMeta
46
+ spec?: ProbeSpec
47
+ status?: Status
48
+ }
49
+
50
+ export type ProbeSpec = {
51
+ jobName?: string
52
+ module?: string
53
+ prober?: ProberSpec
54
+ targets?: Targets
55
+ interval?: string
56
+ scrapeTimeout?: string
57
+ relabelings?: RelabelConfig[]
58
+ proxyUrl?: string
59
+ enableHttp2?: boolean
60
+ filterRunning?: boolean
61
+ honorTimestamps?: boolean
62
+ honorLabels?: boolean
63
+ metricRelabelings?: RelabelConfig[]
64
+ followRedirects?: boolean
65
+ sampleLimit?: string
66
+ }
67
+
68
+ export type ProberSpec = {
69
+ url?: string
70
+ scheme?: string
71
+ path?: string
72
+ proxyUrl?: string
73
+ name?: string
74
+ }
75
+
76
+ export type RelabelConfig = {
77
+ sourceLabels?: string[]
78
+ separator?: string
79
+ targetLabel?: string
80
+ regex?: string
81
+ modulus?: string
82
+ replacement?: string
83
+ action?: string
84
+ }
85
+
86
+ export type TargetsStaticConfig = {
87
+ static?: string[]
88
+ labels?: {[key: string]: string}
89
+ relabelingConfigs?: RelabelConfig[]
90
+ }
91
+
92
+ export type TargetsIngress = {
93
+ }
94
+
95
+ export type Targets = {
96
+ staticConfig?: TargetsStaticConfig
97
+ }
98
+
99
+ export type ListProbesRequest = {
100
+ clusterName?: string
101
+ namespace?: string
102
+ fuzzyName?: string
103
+ page?: number
104
+ pageSize?: number
105
+ sorts?: string
106
+ }
107
+
108
+ export type ListProbesResponse = {
109
+ items?: Probe[]
110
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
111
+ }
112
+
113
+ export type GetProbersRequest = {
114
+ clusterName?: string
115
+ }
116
+
117
+ export type ClusterProbersResponseProber = {
118
+ prober?: ProberSpec
119
+ modules?: string[]
120
+ configmapMeta?: ClusterProbersResponseConfigmapMeta
121
+ }
122
+
123
+ export type ClusterProbersResponseConfigmapMeta = {
124
+ clusterName?: string
125
+ namespace?: string
126
+ name?: string
127
+ data?: string
128
+ }
129
+
130
+ export type ClusterProbersResponse = {
131
+ probers?: ClusterProbersResponseProber[]
132
+ }
@@ -0,0 +1,156 @@
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 InsightIoApiResourceV1alpha1Pod from "./pod.pb"
9
+ import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
10
+ import * as InsightIoApiResourceV1alpha1Workload from "./workload.pb"
11
+
12
+ export enum ClusterPhase {
13
+ CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
14
+ UNKNOWN = "UNKNOWN",
15
+ CREATING = "CREATING",
16
+ RUNNING = "RUNNING",
17
+ UPDATING = "UPDATING",
18
+ DELETING = "DELETING",
19
+ FAILED = "FAILED",
20
+ }
21
+
22
+ export enum ClusterProvider {
23
+ GENERIC = "GENERIC",
24
+ DAOCLOUD_KUBESPRAY = "DAOCLOUD_KUBESPRAY",
25
+ DAOCLOUD_CLUSTER_API = "DAOCLOUD_CLUSTER_API",
26
+ DAOCLOUD_DCE4 = "DAOCLOUD_DCE4",
27
+ REDHAT_OPENSHIFT4 = "REDHAT_OPENSHIFT4",
28
+ SUSE_RANCHER = "SUSE_RANCHER",
29
+ VMWARE_TANZU = "VMWARE_TANZU",
30
+ AWS_EKS = "AWS_EKS",
31
+ ALIYUN_ACK = "ALIYUN_ACK",
32
+ TENCENT_TKE = "TENCENT_TKE",
33
+ HUAWEI_CCE = "HUAWEI_CCE",
34
+ MICROSOFT_AZURE = "MICROSOFT_AZURE",
35
+ }
36
+
37
+ export enum InsightAgentStatus {
38
+ NOT_INSTALLED = "NOT_INSTALLED",
39
+ HEALTHY = "HEALTHY",
40
+ UNHEALTHY = "UNHEALTHY",
41
+ OFFLINE = "OFFLINE",
42
+ }
43
+
44
+ export enum Role {
45
+ ROLE_UNSPECIFIED = "ROLE_UNSPECIFIED",
46
+ ROLE_VIEWER = "ROLE_VIEWER",
47
+ ROLE_ADMIN = "ROLE_ADMIN",
48
+ }
49
+
50
+ export enum serverComponentName {
51
+ NAME_UNSPECIFIED = "NAME_UNSPECIFIED",
52
+ VMINSERT = "VMINSERT",
53
+ VMALERT = "VMALERT",
54
+ VMALERTMANAGER = "VMALERTMANAGER",
55
+ VMSELECT = "VMSELECT",
56
+ VMSTORAGE = "VMSTORAGE",
57
+ GRAFANA = "GRAFANA",
58
+ JAEGER_COLLECTOR = "JAEGER_COLLECTOR",
59
+ JAEGER_QUERY = "JAEGER_QUERY",
60
+ OPENTELEMETRY_COLLECTOR = "OPENTELEMETRY_COLLECTOR",
61
+ ELASTICSEARCH = "ELASTICSEARCH",
62
+ }
63
+
64
+ export type ListClustersResponse = {
65
+ items?: Cluster[]
66
+ }
67
+
68
+ export type Cluster = {
69
+ name?: string
70
+ kubeSystemId?: string
71
+ phase?: ClusterPhase
72
+ role?: Role
73
+ }
74
+
75
+ export type ListClusterRequest = {
76
+ showAllCluster?: boolean
77
+ }
78
+
79
+ export type ListClusterSummaryRequest = {
80
+ name?: string
81
+ version?: string
82
+ phase?: ClusterPhase
83
+ showAllCluster?: boolean
84
+ page?: number
85
+ pageSize?: number
86
+ }
87
+
88
+ export type ListClusterSummaryResponse = {
89
+ items?: ClusterSummary[]
90
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
91
+ }
92
+
93
+ export type GetClusterRequest = {
94
+ name?: string
95
+ }
96
+
97
+ export type ClusterSummary = {
98
+ name?: string
99
+ kubeSystemId?: string
100
+ phase?: ClusterPhase
101
+ nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
102
+ insightAgentStatus?: insightAgentState
103
+ role?: Role
104
+ }
105
+
106
+ export type ClusterDetail = {
107
+ name?: string
108
+ kubeSystemId?: string
109
+ phase?: ClusterPhase
110
+ provider?: ClusterProvider
111
+ kubernetesVersion?: string
112
+ creationTimestamp?: string
113
+ nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
114
+ deploymentNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
115
+ statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
116
+ daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
117
+ podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
118
+ insightAgentStatus?: insightAgentState
119
+ }
120
+
121
+ export type insightAgentState = {
122
+ status?: InsightAgentStatus
123
+ version?: string
124
+ createTime?: string
125
+ traceStatus?: InsightAgentStatus
126
+ }
127
+
128
+ export type GetAgentSummaryRequest = {
129
+ cluster?: string
130
+ }
131
+
132
+ export type AgentSummary = {
133
+ insightAgentState?: insightAgentState
134
+ agentModuleStatus?: agentModuleStatus
135
+ }
136
+
137
+ export type agentModuleStatus = {
138
+ pods?: InsightIoApiResourceV1alpha1Pod.Pod[]
139
+ }
140
+
141
+ export type ServerComponentSummary = {
142
+ summary?: serverComponent[]
143
+ }
144
+
145
+ export type serverComponent = {
146
+ name?: serverComponentName
147
+ workloadName?: string
148
+ workloadNamespace?: string
149
+ workloadKind?: InsightIoApiResourceV1alpha1Workload.WorkloadKind
150
+ phase?: InsightIoApiResourceV1alpha1Workload.WorkloadPhase
151
+ availability?: boolean
152
+ message?: string
153
+ version?: string
154
+ podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
155
+ creationTimestamp?: string
156
+ }
@@ -0,0 +1,113 @@
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 JobState {
19
+ JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
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
+ }
26
+
27
+ export type ListJobsRequest = {
28
+ cluster?: string
29
+ namespace?: string
30
+ phase?: JobState
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
+ conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
56
+ }
57
+
58
+ export type CronJobSpec = {
59
+ schedule?: string
60
+ }
61
+
62
+ export type GetJobRequest = {
63
+ cluster?: string
64
+ namespace?: string
65
+ name?: string
66
+ }
67
+
68
+ export type ListJobsResponse = {
69
+ items?: JobSummary[]
70
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
71
+ }
72
+
73
+ export type JobSummary = {
74
+ name?: string
75
+ namespace?: string
76
+ status?: JobStatus
77
+ jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
78
+ }
79
+
80
+ export type JobStatus = {
81
+ active?: number
82
+ succeed?: number
83
+ failed?: number
84
+ phase?: JobState
85
+ }
86
+
87
+ export type Job = {
88
+ name?: string
89
+ cluster?: string
90
+ namespace?: string
91
+ status?: JobStatus
92
+ createTimestamp?: string
93
+ jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
94
+ conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
95
+ }
96
+
97
+ export type GetJobPodsRequest = {
98
+ cluster?: string
99
+ namespace?: string
100
+ name?: string
101
+ pod?: string
102
+ page?: number
103
+ pageSize?: number
104
+ }
105
+
106
+ export type GetCronjobPodsRequest = {
107
+ cluster?: string
108
+ namespace?: string
109
+ name?: string
110
+ pod?: string
111
+ page?: number
112
+ pageSize?: number
113
+ }
@@ -0,0 +1,43 @@
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 InsightIoApiResourceV1alpha1Cluster from "./cluster.pb"
8
+ import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
9
+
10
+ export enum NamespacePhase {
11
+ NAMESPACE_PHASE_UNSPECIFIED = "NAMESPACE_PHASE_UNSPECIFIED",
12
+ Active = "Active",
13
+ Terminating = "Terminating",
14
+ }
15
+
16
+ export type ListNamespacesRequest = {
17
+ cluster?: string
18
+ }
19
+
20
+ export type ListNamespacesResponse = {
21
+ namespaces?: Namespace[]
22
+ }
23
+
24
+ export type Namespace = {
25
+ name?: string
26
+ role?: InsightIoApiResourceV1alpha1Cluster.Role
27
+ }
28
+
29
+ export type GetNamespaceRequest = {
30
+ cluster?: string
31
+ name?: string
32
+ }
33
+
34
+ export type NamespaceDetail = {
35
+ name?: string
36
+ cluster?: string
37
+ phase?: NamespacePhase
38
+ creationTimestamp?: string
39
+ deploymentNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
40
+ statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
41
+ daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
42
+ podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
43
+ }
@@ -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 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
+ phase?: 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
+ gpuVendors?: string[]
35
+ }
36
+
37
+ export type GetNodeRequest = {
38
+ cluster?: string
39
+ name?: string
40
+ }
41
+
42
+ export type Node = {
43
+ name?: string
44
+ cluster?: string
45
+ operatingSystem?: string
46
+ address?: string
47
+ creationTimestamp?: string
48
+ nodeStatus?: NodeStatus
49
+ podSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
50
+ usage?: usage
51
+ }
52
+
53
+ export type NodeStatus = {
54
+ phase?: NodePhase
55
+ conditions?: NodeCondition[]
56
+ }
57
+
58
+ export type NodeCondition = {
59
+ type?: string
60
+ status?: InsightIoApiResourceV1alpha1Type.ConditionStatus
61
+ reason?: string
62
+ message?: string
63
+ }
64
+
65
+ export type usage = {
66
+ cpuCapacity?: string
67
+ cpuAllocated?: number
68
+ cpuUsage?: number
69
+ memoryCapacity?: string
70
+ memoryAllocated?: number
71
+ memoryUsage?: number
72
+ storageCapacity?: string
73
+ storageAllocated?: string
74
+ storageUsage?: number
75
+ }
76
+
77
+ export type GPUDashboardURL = {
78
+ vendor?: string
79
+ en?: string
80
+ zh?: string
81
+ }
82
+
83
+ export type GetGPUResponse = {
84
+ urls?: GPUDashboardURL[]
85
+ }
86
+
87
+ export type GetNodeGPUDashboardRequest = {
88
+ cluster?: string
89
+ name?: string
90
+ }
91
+
92
+ export type GetPodGPUDashboardRequest = {
93
+ cluster?: string
94
+ namespace?: string
95
+ name?: string
96
+ }
@@ -0,0 +1,112 @@
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 JVMType {
20
+ JMX = "JMX",
21
+ OTEL = "OTEL",
22
+ NONE = "NONE",
23
+ }
24
+
25
+ export enum ContainerPhase {
26
+ CONTAINER_PHASE_UNSPECIFIED = "CONTAINER_PHASE_UNSPECIFIED",
27
+ CONTAINER_PHASE_WAITING = "CONTAINER_PHASE_WAITING",
28
+ CONTAINER_PHASE_RUNNING = "CONTAINER_PHASE_RUNNING",
29
+ CONTAINER_PHASE_TERMINATED = "CONTAINER_PHASE_TERMINATED",
30
+ }
31
+
32
+ export type ListPodsRequest = {
33
+ cluster?: string
34
+ namespace?: string
35
+ phase?: PodPhase
36
+ name?: string
37
+ page?: number
38
+ pageSize?: number
39
+ }
40
+
41
+ export type ListPodsResponse = {
42
+ items?: PodSummary[]
43
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
44
+ }
45
+
46
+ export type PodSummary = {
47
+ name?: string
48
+ namespace?: string
49
+ phase?: PodPhase
50
+ containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
51
+ podIp?: string
52
+ nodeName?: string
53
+ restartCount?: number
54
+ cpuUsage?: number
55
+ memoryUsage?: number
56
+ startTime?: string
57
+ }
58
+
59
+ export type GetPodRequest = {
60
+ cluster?: string
61
+ namespace?: string
62
+ name?: string
63
+ }
64
+
65
+ export type GetPodJVMDashboardsRequest = {
66
+ cluster?: string
67
+ namespace?: string
68
+ name?: string
69
+ start?: string
70
+ end?: string
71
+ step?: number
72
+ }
73
+
74
+ export type Pod = {
75
+ name?: string
76
+ cluster?: string
77
+ namespace?: string
78
+ phase?: PodPhase
79
+ createTimestamp?: string
80
+ containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
81
+ podIp?: string
82
+ hostIp?: string
83
+ conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
84
+ }
85
+
86
+ export type GetPodJVMDashboardsResponse = {
87
+ type?: JVMType
88
+ urls?: JVMUrls
89
+ }
90
+
91
+ export type JVMUrls = {
92
+ en?: string
93
+ zh?: string
94
+ }
95
+
96
+ export type ListContainersRequest = {
97
+ cluster?: string
98
+ namespace?: string
99
+ name?: string
100
+ page?: number
101
+ pageSize?: number
102
+ }
103
+
104
+ export type ListContainersResponse = {
105
+ items?: ContainerSummary[]
106
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
107
+ }
108
+
109
+ export type ContainerSummary = {
110
+ name?: string
111
+ phase?: ContainerPhase
112
+ }
@@ -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
+
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
+ tracingEnabled?: boolean
41
+ }
42
+
43
+ export type Service = {
44
+ name?: string
45
+ cluster?: string
46
+ namespace?: string
47
+ createTimestamp?: string
48
+ serviceType?: ServiceType
49
+ clusterIp?: string
50
+ workloadData?: WorkloadSum[]
51
+ }
52
+
53
+ export type WorkloadSum = {
54
+ workloadKind?: WorkloadSumKind
55
+ name?: string
56
+ }
57
+
58
+ export type GetServiceRequest = {
59
+ cluster?: string
60
+ namespace?: string
61
+ name?: string
62
+ }