@daocloud-proto/mcamel-minio 0.1.2-3 → 0.1.2-32
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/common.pb.ts +5 -0
- package/insight.pb.ts +46 -0
- package/metric.pb.ts +25 -0
- package/minio.pb.ts +6 -0
- package/package.json +1 -1
package/common.pb.ts
CHANGED
package/insight.pb.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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 Severity {
|
|
8
|
+
SEVERITY_UNSPECIFIED = "SEVERITY_UNSPECIFIED",
|
|
9
|
+
CRITICAL = "CRITICAL",
|
|
10
|
+
WARNING = "WARNING",
|
|
11
|
+
INFO = "INFO",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum TargetType {
|
|
15
|
+
TARGET_TYPE_UNSPECIFIED = "TARGET_TYPE_UNSPECIFIED",
|
|
16
|
+
GLOBAL = "GLOBAL",
|
|
17
|
+
CLUSTER = "CLUSTER",
|
|
18
|
+
NAMESPACE = "NAMESPACE",
|
|
19
|
+
NODE = "NODE",
|
|
20
|
+
DEPLOYMENT = "DEPLOYMENT",
|
|
21
|
+
STATEFULSET = "STATEFULSET",
|
|
22
|
+
DAEMONSET = "DAEMONSET",
|
|
23
|
+
CRONJOB = "CRONJOB",
|
|
24
|
+
POD = "POD",
|
|
25
|
+
}
|
|
26
|
+
|
|
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
|
+
export type AlertSummary = {
|
|
34
|
+
alertId?: string
|
|
35
|
+
ruleName?: string
|
|
36
|
+
severity?: Severity
|
|
37
|
+
clusterName?: string
|
|
38
|
+
namespace?: string
|
|
39
|
+
targetType?: TargetType
|
|
40
|
+
targetName?: string
|
|
41
|
+
status?: AlertStatus
|
|
42
|
+
description?: string
|
|
43
|
+
startAt?: string
|
|
44
|
+
updateAt?: string
|
|
45
|
+
notifyResponse?: string
|
|
46
|
+
}
|
package/metric.pb.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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 CommonCommon from "./common.pb"
|
|
8
|
+
import * as fm from "./fetch.pb"
|
|
9
|
+
import * as InsightIoApiInsightV1alpha1Insight from "./insight.pb"
|
|
10
|
+
export type GetAlertsListReq = {
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
name?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type GetAlertsListResp = {
|
|
17
|
+
items?: InsightIoApiInsightV1alpha1Insight.AlertSummary[]
|
|
18
|
+
pagination?: CommonCommon.Pagination
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class Metric {
|
|
22
|
+
static GetAlertsList(req: GetAlertsListReq, initReq?: fm.InitReq): Promise<GetAlertsListResp> {
|
|
23
|
+
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/metrics?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
24
|
+
}
|
|
25
|
+
}
|
package/minio.pb.ts
CHANGED
|
@@ -113,6 +113,10 @@ export type CreateMinioReqPorts = {
|
|
|
113
113
|
nodePort?: number
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
export type CreateMinioReqBucket = {
|
|
117
|
+
name?: string
|
|
118
|
+
}
|
|
119
|
+
|
|
116
120
|
export type CreateMinioReq = {
|
|
117
121
|
workspaceId?: number
|
|
118
122
|
cluster?: string
|
|
@@ -139,6 +143,7 @@ export type CreateMinioReq = {
|
|
|
139
143
|
consoleServiceAnnotations?: {[key: string]: string}
|
|
140
144
|
minioRootUser?: string
|
|
141
145
|
minioRootPassword?: string
|
|
146
|
+
buckets?: CreateMinioReqBucket[]
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
export type UpdateMinioConfReq = {
|
|
@@ -305,6 +310,7 @@ export type TenantItemStatus = {
|
|
|
305
310
|
webManagerAddr?: string
|
|
306
311
|
clusterIPs?: string[]
|
|
307
312
|
serviceAddr?: string
|
|
313
|
+
common?: CommonCommon.CommonItemStatus
|
|
308
314
|
}
|
|
309
315
|
|
|
310
316
|
export type TenantItemMetadata = {
|