@daocloud-proto/skoala 0.3.3 → 0.4.1-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.
- package/api/general/v1alpha1/skoala.pb.ts +34 -7
- package/api/hosted/v1alpha1/api.pb.ts +260 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +112 -66
- package/api/hosted/v1alpha1/nacos.pb.ts +104 -2
- package/api/hosted/v1alpha1/sentinel.pb.ts +52 -10
- package/api/integrated/v1alpha1/insight.pb.ts +39 -4
- package/api/integrated/v1alpha1/instance.pb.ts +31 -19
- package/api/integrated/v1alpha1/registry.pb.ts +8 -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 +45 -20
- 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 +291 -0
- package/insight/v1alpha1/notify.pb.ts +84 -0
- package/log/v1alpha1/log.pb.ts +113 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +101 -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 +100 -0
- package/type/v1alpha1/page.pb.ts +11 -0
- package/validate/validate.pb.ts +266 -0
|
@@ -0,0 +1,291 @@
|
|
|
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 RuleSource {
|
|
10
|
+
RULE_SOURCE_UNSPECIFIED = "RULE_SOURCE_UNSPECIFIED",
|
|
11
|
+
METRIC_TPL = "METRIC_TPL",
|
|
12
|
+
PROMQL = "PROMQL",
|
|
13
|
+
LOG_TPL = "LOG_TPL",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export enum TargetType {
|
|
17
|
+
TARGET_TYPE_UNSPECIFIED = "TARGET_TYPE_UNSPECIFIED",
|
|
18
|
+
GLOBAL = "GLOBAL",
|
|
19
|
+
CLUSTER = "CLUSTER",
|
|
20
|
+
NODE = "NODE",
|
|
21
|
+
DEPLOYMENT = "DEPLOYMENT",
|
|
22
|
+
STATEFULSET = "STATEFULSET",
|
|
23
|
+
DAEMONSET = "DAEMONSET",
|
|
24
|
+
CRONJOB = "CRONJOB",
|
|
25
|
+
POD = "POD",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum Severity {
|
|
29
|
+
SEVERITY_UNSPECIFIED = "SEVERITY_UNSPECIFIED",
|
|
30
|
+
CRITICAL = "CRITICAL",
|
|
31
|
+
WARNING = "WARNING",
|
|
32
|
+
INFO = "INFO",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum RuleStatus {
|
|
36
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
37
|
+
FIRING = "FIRING",
|
|
38
|
+
ENABLED = "ENABLED",
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export enum AlertStatus {
|
|
42
|
+
ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
|
|
43
|
+
ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
|
|
44
|
+
ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ListRulesRequest = {
|
|
48
|
+
builtin?: boolean
|
|
49
|
+
name?: string
|
|
50
|
+
severity?: Severity
|
|
51
|
+
status?: RuleStatus
|
|
52
|
+
page?: number
|
|
53
|
+
pageSize?: number
|
|
54
|
+
sorts?: string[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ListRulesResponse = {
|
|
58
|
+
items?: RuleSummary[]
|
|
59
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type RuleSummary = {
|
|
63
|
+
ruleId?: string
|
|
64
|
+
ruleName?: string
|
|
65
|
+
severity?: Severity
|
|
66
|
+
clusterName?: string
|
|
67
|
+
namespace?: string
|
|
68
|
+
targetType?: TargetType
|
|
69
|
+
targetNames?: string[]
|
|
70
|
+
source?: RuleSource
|
|
71
|
+
expr?: string
|
|
72
|
+
thresholdSymbol?: string
|
|
73
|
+
thresholdNum?: string
|
|
74
|
+
duration?: number
|
|
75
|
+
status?: RuleStatus
|
|
76
|
+
builtin?: boolean
|
|
77
|
+
createAt?: string
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type RuleID = {
|
|
81
|
+
id?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type Rule = {
|
|
85
|
+
ruleId?: string
|
|
86
|
+
ruleName?: string
|
|
87
|
+
builtin?: boolean
|
|
88
|
+
clusterName?: string
|
|
89
|
+
namespace?: string
|
|
90
|
+
source?: RuleSource
|
|
91
|
+
targetType?: TargetType
|
|
92
|
+
targetNames?: string[]
|
|
93
|
+
expr?: string
|
|
94
|
+
thresholdSymbol?: string
|
|
95
|
+
thresholdNum?: string
|
|
96
|
+
duration?: number
|
|
97
|
+
severity?: Severity
|
|
98
|
+
status?: RuleStatus
|
|
99
|
+
labels?: {[key: string]: string}
|
|
100
|
+
description?: string
|
|
101
|
+
notificationTemplate?: string
|
|
102
|
+
annotation?: Annotation
|
|
103
|
+
createAt?: string
|
|
104
|
+
updateAt?: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type Annotation = {
|
|
108
|
+
promql?: string
|
|
109
|
+
receivers?: AnnotationReceiver[]
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type AnnotationReceiver = {
|
|
113
|
+
type?: string
|
|
114
|
+
names?: string[]
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type CreateRuleRequest = {
|
|
118
|
+
ruleName?: string
|
|
119
|
+
description?: string
|
|
120
|
+
clusterName?: string
|
|
121
|
+
namespace?: string
|
|
122
|
+
source?: RuleSource
|
|
123
|
+
targetType?: TargetType
|
|
124
|
+
targetNames?: string[]
|
|
125
|
+
expr?: string
|
|
126
|
+
thresholdSymbol?: string
|
|
127
|
+
thresholdNum?: string
|
|
128
|
+
duration?: number
|
|
129
|
+
severity?: Severity
|
|
130
|
+
notificationTemplate?: string
|
|
131
|
+
annotation?: Annotation
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type UpdateRuleRequest = {
|
|
135
|
+
id?: string
|
|
136
|
+
description?: string
|
|
137
|
+
clusterName?: string
|
|
138
|
+
namespace?: string
|
|
139
|
+
targetNames?: string[]
|
|
140
|
+
expr?: string
|
|
141
|
+
thresholdSymbol?: string
|
|
142
|
+
thresholdNum?: string
|
|
143
|
+
duration?: number
|
|
144
|
+
severity?: Severity
|
|
145
|
+
notificationTemplate?: string
|
|
146
|
+
annotation?: Annotation
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type ListAlertsRequest = {
|
|
150
|
+
resolved?: boolean
|
|
151
|
+
name?: string
|
|
152
|
+
clusterName?: string
|
|
153
|
+
namespace?: string
|
|
154
|
+
severity?: Severity
|
|
155
|
+
page?: number
|
|
156
|
+
pageSize?: number
|
|
157
|
+
sorts?: string[]
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type ListAlertsResponse = {
|
|
161
|
+
items?: AlertSummary[]
|
|
162
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type AlertSummary = {
|
|
166
|
+
alertId?: string
|
|
167
|
+
ruleName?: string
|
|
168
|
+
severity?: Severity
|
|
169
|
+
clusterName?: string
|
|
170
|
+
namespace?: string
|
|
171
|
+
targetType?: TargetType
|
|
172
|
+
targetName?: string
|
|
173
|
+
status?: AlertStatus
|
|
174
|
+
description?: string
|
|
175
|
+
startAt?: string
|
|
176
|
+
updateAt?: string
|
|
177
|
+
notifyResponse?: string
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type AlertInfo = {
|
|
181
|
+
alertId?: string
|
|
182
|
+
fingerprint?: string
|
|
183
|
+
ruleName?: string
|
|
184
|
+
ruleId?: string
|
|
185
|
+
clusterName?: string
|
|
186
|
+
namespace?: string
|
|
187
|
+
targetType?: TargetType
|
|
188
|
+
targetName?: string
|
|
189
|
+
severity?: Severity
|
|
190
|
+
labels?: {[key: string]: string}
|
|
191
|
+
description?: string
|
|
192
|
+
notifyResponse?: string
|
|
193
|
+
annotation?: string
|
|
194
|
+
source?: RuleSource
|
|
195
|
+
status?: AlertStatus
|
|
196
|
+
startAt?: string
|
|
197
|
+
updateAt?: string
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type CountAlertRequest = {
|
|
201
|
+
resolved?: boolean
|
|
202
|
+
clusterName?: string
|
|
203
|
+
namespace?: string
|
|
204
|
+
targetType?: TargetType
|
|
205
|
+
targetName?: string
|
|
206
|
+
severity?: Severity
|
|
207
|
+
start?: string
|
|
208
|
+
end?: string
|
|
209
|
+
step?: string
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export type CountAlertResponse = {
|
|
213
|
+
data?: CountAlert[]
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type CountAlert = {
|
|
217
|
+
start?: string
|
|
218
|
+
end?: string
|
|
219
|
+
count?: {[key: string]: string}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type ResolveAlertRequest = {
|
|
223
|
+
alertId?: string[]
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export type AMHookRequest = {
|
|
227
|
+
version?: string
|
|
228
|
+
groupKey?: string
|
|
229
|
+
status?: string
|
|
230
|
+
receiver?: string
|
|
231
|
+
groupLabels?: {[key: string]: string}
|
|
232
|
+
commonLabels?: {[key: string]: string}
|
|
233
|
+
commonAnnotations?: {[key: string]: string}
|
|
234
|
+
externalURL?: string
|
|
235
|
+
alerts?: AmAlert[]
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type AmAlert = {
|
|
239
|
+
status?: string
|
|
240
|
+
labels?: {[key: string]: string}
|
|
241
|
+
annotations?: {[key: string]: string}
|
|
242
|
+
startsAt?: string
|
|
243
|
+
endsAt?: string
|
|
244
|
+
generatorURL?: string
|
|
245
|
+
fingerprint?: string
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export type ListTemplatesRequest = {
|
|
249
|
+
name?: string
|
|
250
|
+
page?: number
|
|
251
|
+
pageSize?: number
|
|
252
|
+
sorts?: string[]
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export type ListTemplatesResponse = {
|
|
256
|
+
items?: TemplateSummary[]
|
|
257
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export type TemplateSummary = {
|
|
261
|
+
name?: string
|
|
262
|
+
description?: string
|
|
263
|
+
updateAt?: string
|
|
264
|
+
builtin?: boolean
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export type Template = {
|
|
268
|
+
name?: string
|
|
269
|
+
description?: string
|
|
270
|
+
body?: TemplateBody
|
|
271
|
+
builtin?: boolean
|
|
272
|
+
createAt?: string
|
|
273
|
+
updateAt?: string
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export type TemplateName = {
|
|
277
|
+
name?: string
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export type CreateTemplateRequest = {
|
|
281
|
+
name?: string
|
|
282
|
+
description?: string
|
|
283
|
+
body?: TemplateBody
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export type TemplateBody = {
|
|
287
|
+
email?: string
|
|
288
|
+
wecom?: string
|
|
289
|
+
dingtalk?: string
|
|
290
|
+
webhook?: string
|
|
291
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
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 ReceiverType {
|
|
19
|
+
RECEIVER_TYPE_UNSPECIFIED = "RECEIVER_TYPE_UNSPECIFIED",
|
|
20
|
+
webhook = "webhook",
|
|
21
|
+
email = "email",
|
|
22
|
+
dingtalk = "dingtalk",
|
|
23
|
+
wecom = "wecom",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
type BaseReceiver = {
|
|
28
|
+
id?: string
|
|
29
|
+
name?: string
|
|
30
|
+
type?: ReceiverType
|
|
31
|
+
createAt?: string
|
|
32
|
+
updateAt?: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Receiver = BaseReceiver
|
|
36
|
+
& OneOf<{ webhook: WebhookConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
37
|
+
|
|
38
|
+
export type WebhookConfig = {
|
|
39
|
+
url?: string
|
|
40
|
+
httpConfig?: HTTPConfig
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type WecomConfig = {
|
|
44
|
+
webhook?: string
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type DingtalkConfig = {
|
|
48
|
+
webhook?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type ListReceiversRequest = {
|
|
52
|
+
type?: ReceiverType
|
|
53
|
+
page?: number
|
|
54
|
+
pageSize?: number
|
|
55
|
+
sorts?: string[]
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type ReceiverId = {
|
|
59
|
+
id?: string
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type ReceiverDataResponse = {
|
|
63
|
+
data?: Receiver
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type ListReceiverResponse = {
|
|
67
|
+
items?: Receiver[]
|
|
68
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type HTTPConfig = {
|
|
72
|
+
basicAuth?: BasicAuth
|
|
73
|
+
bearerToken?: string
|
|
74
|
+
tlsConfig?: SafeTLSConfig
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type BasicAuth = {
|
|
78
|
+
username?: string
|
|
79
|
+
password?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type SafeTLSConfig = {
|
|
83
|
+
insecureSkipVerify?: boolean
|
|
84
|
+
}
|
|
@@ -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
|
+
|
|
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
|
+
export type LogQueryResourceFilter = {
|
|
18
|
+
logSearch?: string[]
|
|
19
|
+
clusterFilter?: string[]
|
|
20
|
+
namespaceFilter?: string[]
|
|
21
|
+
workloadSearch?: string[]
|
|
22
|
+
workloadFilter?: string[]
|
|
23
|
+
podSearch?: string[]
|
|
24
|
+
podFilter?: string[]
|
|
25
|
+
containerSearch?: string[]
|
|
26
|
+
containerFilter?: string[]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type LogQuerySystemFilter = {
|
|
30
|
+
logSearch?: string[]
|
|
31
|
+
clusterFilter?: string[]
|
|
32
|
+
nodeFilter?: string[]
|
|
33
|
+
fileFilter?: string[]
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type LogQueryEventFilter = {
|
|
37
|
+
logSearch?: string[]
|
|
38
|
+
clusterFilter?: string[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
type BaseQueryLogRequest = {
|
|
43
|
+
startTime?: string
|
|
44
|
+
endTime?: string
|
|
45
|
+
page?: number
|
|
46
|
+
pageSize?: number
|
|
47
|
+
sorts?: string[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type QueryLogRequest = BaseQueryLogRequest
|
|
51
|
+
& OneOf<{ resource: LogQueryResourceFilter; system: LogQuerySystemFilter; event: LogQueryEventFilter }>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
type BaseQueryLogHistogramRequest = {
|
|
55
|
+
startTime?: string
|
|
56
|
+
endTime?: string
|
|
57
|
+
interval?: string
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type QueryLogHistogramRequest = BaseQueryLogHistogramRequest
|
|
61
|
+
& OneOf<{ resource: LogQueryResourceFilter; system: LogQuerySystemFilter; event: LogQueryEventFilter }>
|
|
62
|
+
|
|
63
|
+
export type LogContextResourceFilter = {
|
|
64
|
+
cluster?: string
|
|
65
|
+
pod?: string
|
|
66
|
+
container?: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type LogContextSystemFilter = {
|
|
70
|
+
cluster?: string
|
|
71
|
+
node?: string
|
|
72
|
+
file?: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type LogContextEventFilter = {
|
|
76
|
+
cluster?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
type BaseQueryLogContextRequest = {
|
|
81
|
+
startTime?: string
|
|
82
|
+
endTime?: string
|
|
83
|
+
before?: number
|
|
84
|
+
after?: number
|
|
85
|
+
nanotimestamp?: string
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type QueryLogContextRequest = BaseQueryLogContextRequest
|
|
89
|
+
& OneOf<{ resource: LogContextResourceFilter; system: LogContextSystemFilter; event: LogContextEventFilter }>
|
|
90
|
+
|
|
91
|
+
export type LogQueryResult = {
|
|
92
|
+
log?: string
|
|
93
|
+
timestamp?: string
|
|
94
|
+
labels?: {[key: string]: string}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type QueryLogResponse = {
|
|
98
|
+
items?: LogQueryResult[]
|
|
99
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type QueryLogHistogramResponse = {
|
|
103
|
+
items?: LogHistogramResult[]
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type LogHistogramResult = {
|
|
107
|
+
timestamp?: string
|
|
108
|
+
count?: string
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type ListLogFilePathsResponse = {
|
|
112
|
+
paths?: string[]
|
|
113
|
+
}
|
|
@@ -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,101 @@
|
|
|
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 ClusterPhase {
|
|
11
|
+
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
12
|
+
UNKNOWN = "UNKNOWN",
|
|
13
|
+
CREATING = "CREATING",
|
|
14
|
+
RUNNING = "RUNNING",
|
|
15
|
+
UPDATING = "UPDATING",
|
|
16
|
+
DELETING = "DELETING",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export enum ClusterProvider {
|
|
20
|
+
GENERIC = "GENERIC",
|
|
21
|
+
DAOCLOUD_KUBESPRAY = "DAOCLOUD_KUBESPRAY",
|
|
22
|
+
DAOCLOUD_CLUSTER_API = "DAOCLOUD_CLUSTER_API",
|
|
23
|
+
DAOCLOUD_DCE4 = "DAOCLOUD_DCE4",
|
|
24
|
+
REDHAT_OPENSHIFT4 = "REDHAT_OPENSHIFT4",
|
|
25
|
+
SUSE_RANCHER = "SUSE_RANCHER",
|
|
26
|
+
VMWARE_TANZU = "VMWARE_TANZU",
|
|
27
|
+
AWS_EKS = "AWS_EKS",
|
|
28
|
+
ALIYUN_ACK = "ALIYUN_ACK",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum InsightAgentStatus {
|
|
32
|
+
NOT_INSTALLED = "NOT_INSTALLED",
|
|
33
|
+
HEALTHY = "HEALTHY",
|
|
34
|
+
UNHEALTHY = "UNHEALTHY",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type ListClustersResponse = {
|
|
38
|
+
items?: Cluster[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Cluster = {
|
|
42
|
+
name?: string
|
|
43
|
+
kubeSystemId?: string
|
|
44
|
+
phase?: ClusterPhase
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ListClusterSummaryRequest = {
|
|
48
|
+
name?: string
|
|
49
|
+
version?: string
|
|
50
|
+
phases?: ClusterPhase[]
|
|
51
|
+
page?: number
|
|
52
|
+
pageSize?: number
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type ListClusterSummaryResponse = {
|
|
56
|
+
items?: ClusterSummary[]
|
|
57
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type GetClusterRequest = {
|
|
61
|
+
name?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type ClusterSummary = {
|
|
65
|
+
name?: string
|
|
66
|
+
kubeSystemId?: 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
|
+
}
|
|
75
|
+
|
|
76
|
+
export type ClusterDetail = {
|
|
77
|
+
name?: string
|
|
78
|
+
kubeSystemId?: string
|
|
79
|
+
phase?: ClusterPhase
|
|
80
|
+
provider?: ClusterProvider
|
|
81
|
+
kubernetesVersion?: string
|
|
82
|
+
creationTimestamp?: string
|
|
83
|
+
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
84
|
+
deploymentNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
85
|
+
statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
86
|
+
daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
87
|
+
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
88
|
+
insightAgentStatus?: InsightAgentStatus
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type ListNamespacesRequest = {
|
|
92
|
+
cluster?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type ListNamespacesResponse = {
|
|
96
|
+
namespaces?: Namespace[]
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type Namespace = {
|
|
100
|
+
name?: string
|
|
101
|
+
}
|