@daocloud-proto/mcamel-kafka 0.3.0-2 → 0.5.0-1
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/cluster.pb.ts +75 -0
- package/common.pb.ts +7 -1
- package/insight.pb.ts +8 -12
- package/package.json +1 -1
package/cluster.pb.ts
CHANGED
|
@@ -13,6 +13,11 @@ export enum EventType {
|
|
|
13
13
|
Warning = "Warning",
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export enum GetAllEventListReqSortDir {
|
|
17
|
+
ASC = "ASC",
|
|
18
|
+
DESC = "DESC",
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
export enum GetEventListReqKind {
|
|
17
22
|
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
18
23
|
Pod = "Pod",
|
|
@@ -28,6 +33,70 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
28
33
|
Install = "Install",
|
|
29
34
|
}
|
|
30
35
|
|
|
36
|
+
export type GetAllEventKindsListResp = {
|
|
37
|
+
data?: string[]
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type GetAllEventKindsListReq = {
|
|
41
|
+
cluster?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type GetAllEventListReq = {
|
|
45
|
+
page?: number
|
|
46
|
+
pageSize?: number
|
|
47
|
+
sortDir?: GetAllEventListReqSortDir
|
|
48
|
+
sortBy?: string
|
|
49
|
+
searchKey?: string
|
|
50
|
+
cluster?: string
|
|
51
|
+
namespace?: string
|
|
52
|
+
name?: string
|
|
53
|
+
eventType?: EventType
|
|
54
|
+
kindName?: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type GetAllEventListRespItemsSource = {
|
|
58
|
+
component?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type GetAllEventListRespItemsMetadata = {
|
|
62
|
+
uid?: string
|
|
63
|
+
name?: string
|
|
64
|
+
namespace?: string
|
|
65
|
+
annotations?: {[key: string]: string}
|
|
66
|
+
resourceVersion?: string
|
|
67
|
+
creationTimestamp?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetAllEventListRespItemsInvolvedObject = {
|
|
71
|
+
uid?: string
|
|
72
|
+
kind?: string
|
|
73
|
+
name?: string
|
|
74
|
+
namespace?: string
|
|
75
|
+
apiVersion?: string
|
|
76
|
+
resourceVersion?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type GetAllEventListRespItems = {
|
|
80
|
+
kind?: string
|
|
81
|
+
type?: string
|
|
82
|
+
count?: number
|
|
83
|
+
reason?: string
|
|
84
|
+
source?: GetAllEventListRespItemsSource
|
|
85
|
+
message?: string
|
|
86
|
+
metadata?: GetAllEventListRespItemsMetadata
|
|
87
|
+
apiVersion?: string
|
|
88
|
+
lastTimestamp?: string
|
|
89
|
+
firstTimestamp?: string
|
|
90
|
+
involvedObject?: GetAllEventListRespItemsInvolvedObject
|
|
91
|
+
reportingInstance?: string
|
|
92
|
+
reportingComponent?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type GetAllEventListResp = {
|
|
96
|
+
items?: GetAllEventListRespItems[]
|
|
97
|
+
pagination?: CommonCommon.Pagination
|
|
98
|
+
}
|
|
99
|
+
|
|
31
100
|
export type GetClusterNodeLabelListReq = {
|
|
32
101
|
cluster?: string
|
|
33
102
|
}
|
|
@@ -170,6 +239,12 @@ export class Cluster {
|
|
|
170
239
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
171
240
|
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
172
241
|
}
|
|
242
|
+
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
243
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
244
|
+
}
|
|
245
|
+
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
246
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
247
|
+
}
|
|
173
248
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
174
249
|
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
175
250
|
}
|
package/common.pb.ts
CHANGED
|
@@ -10,7 +10,7 @@ export enum ExternalTrafficPolicy {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export enum LBTyp {
|
|
13
|
-
|
|
13
|
+
MetalLB = "MetalLB",
|
|
14
14
|
Others = "Others",
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -145,9 +145,12 @@ export type PodCommon = {
|
|
|
145
145
|
cpuLimit?: number
|
|
146
146
|
memoryUsage?: number
|
|
147
147
|
memoryLimit?: number
|
|
148
|
+
pvUsedInGb?: number
|
|
149
|
+
pvAllocatedInGb?: number
|
|
148
150
|
conditions?: PodCommonCondition[]
|
|
149
151
|
containersName?: string[]
|
|
150
152
|
ownerReference?: OwnerReference[]
|
|
153
|
+
initContainersName?: string[]
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
export type OwnerReference = {
|
|
@@ -161,4 +164,7 @@ export type CommonItemStatus = {
|
|
|
161
164
|
serviceAddresses?: string[]
|
|
162
165
|
webManagerAddress?: string
|
|
163
166
|
webLogAddress?: string
|
|
167
|
+
isHwameistorSc?: boolean
|
|
168
|
+
avgPvAllocatedInGb?: number
|
|
169
|
+
avgPvUsedInGb?: number
|
|
164
170
|
}
|
package/insight.pb.ts
CHANGED
|
@@ -20,27 +20,23 @@ export enum TargetType {
|
|
|
20
20
|
DEPLOYMENT = "DEPLOYMENT",
|
|
21
21
|
STATEFULSET = "STATEFULSET",
|
|
22
22
|
DAEMONSET = "DAEMONSET",
|
|
23
|
-
CRONJOB = "CRONJOB",
|
|
24
23
|
POD = "POD",
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
export enum AlertStatus {
|
|
28
|
-
ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
|
|
29
|
-
ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
|
|
30
|
-
ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
export type AlertSummary = {
|
|
34
|
-
|
|
27
|
+
id?: string
|
|
28
|
+
groupName?: string
|
|
29
|
+
groupId?: string
|
|
35
30
|
ruleName?: string
|
|
36
|
-
|
|
31
|
+
ruleId?: string
|
|
37
32
|
clusterName?: string
|
|
38
33
|
namespace?: string
|
|
39
34
|
targetType?: TargetType
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
target?: string
|
|
36
|
+
severity?: Severity
|
|
37
|
+
value?: string
|
|
38
|
+
notifyResponse?: string
|
|
42
39
|
description?: string
|
|
43
40
|
startAt?: string
|
|
44
41
|
updateAt?: string
|
|
45
|
-
notifyResponse?: string
|
|
46
42
|
}
|