@daocloud-proto/mcamel-kafka 0.2.0-89 → 0.2.0-90
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 +63 -0
- 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,61 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
28
33
|
Install = "Install",
|
|
29
34
|
}
|
|
30
35
|
|
|
36
|
+
export type GetAllEventListReq = {
|
|
37
|
+
page?: number
|
|
38
|
+
pageSize?: number
|
|
39
|
+
sortDir?: GetAllEventListReqSortDir
|
|
40
|
+
sortBy?: string
|
|
41
|
+
searchKey?: string
|
|
42
|
+
cluster?: string
|
|
43
|
+
namespace?: string
|
|
44
|
+
name?: string
|
|
45
|
+
eventType?: EventType
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type GetAllEventListRespItemsSource = {
|
|
49
|
+
component?: string
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type GetAllEventListRespItemsMetadata = {
|
|
53
|
+
uid?: string
|
|
54
|
+
name?: string
|
|
55
|
+
namespace?: string
|
|
56
|
+
annotations?: {[key: string]: string}
|
|
57
|
+
resourceVersion?: string
|
|
58
|
+
creationTimestamp?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type GetAllEventListRespItemsInvolvedObject = {
|
|
62
|
+
uid?: string
|
|
63
|
+
kind?: string
|
|
64
|
+
name?: string
|
|
65
|
+
namespace?: string
|
|
66
|
+
apiVersion?: string
|
|
67
|
+
resourceVersion?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetAllEventListRespItems = {
|
|
71
|
+
kind?: string
|
|
72
|
+
type?: string
|
|
73
|
+
count?: number
|
|
74
|
+
reason?: string
|
|
75
|
+
source?: GetAllEventListRespItemsSource
|
|
76
|
+
message?: string
|
|
77
|
+
metadata?: GetAllEventListRespItemsMetadata
|
|
78
|
+
apiVersion?: string
|
|
79
|
+
lastTimestamp?: string
|
|
80
|
+
firstTimestamp?: string
|
|
81
|
+
involvedObject?: GetAllEventListRespItemsInvolvedObject
|
|
82
|
+
reportingInstance?: string
|
|
83
|
+
reportingComponent?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type GetAllEventListResp = {
|
|
87
|
+
items?: GetAllEventListRespItems[]
|
|
88
|
+
pagination?: CommonCommon.Pagination
|
|
89
|
+
}
|
|
90
|
+
|
|
31
91
|
export type GetClusterNodeLabelListReq = {
|
|
32
92
|
cluster?: string
|
|
33
93
|
}
|
|
@@ -170,6 +230,9 @@ export class Cluster {
|
|
|
170
230
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
171
231
|
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
172
232
|
}
|
|
233
|
+
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
234
|
+
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"})
|
|
235
|
+
}
|
|
173
236
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
174
237
|
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
175
238
|
}
|