@daocloud-proto/skoala 0.3.1 → 0.3.3-101
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 +19 -7
- package/api/hosted/v1alpha1/gateway.pb.ts +112 -59
- package/api/hosted/v1alpha1/nacos.pb.ts +92 -2
- package/api/integrated/v1alpha1/insight.pb.ts +19 -4
- package/api/integrated/v1alpha1/instance.pb.ts +29 -19
- package/api/integrated/v1alpha1/registry.pb.ts +6 -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 +25 -13
- 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 +292 -0
- package/insight/v1alpha1/notify.pb.ts +84 -0
- package/log/v1alpha1/log.pb.ts +103 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +102 -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 +113 -0
- package/type/v1alpha1/page.pb.ts +11 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
8
|
+
type OneOf<T> =
|
|
9
|
+
| { [k in keyof T]?: undefined }
|
|
10
|
+
| (
|
|
11
|
+
keyof T extends infer K ?
|
|
12
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
13
|
+
: never)
|
|
14
|
+
: never);
|
|
15
|
+
|
|
16
|
+
export enum NullValue {
|
|
17
|
+
NULL_VALUE = "NULL_VALUE",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type Struct = {
|
|
21
|
+
fields?: {[key: string]: Value}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
type BaseValue = {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Value = BaseValue
|
|
29
|
+
& OneOf<{ nullValue: NullValue; numberValue: number; stringValue: string; boolValue: boolean; structValue: Struct; listValue: ListValue }>
|
|
30
|
+
|
|
31
|
+
export type ListValue = {
|
|
32
|
+
values?: Value[]
|
|
33
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 GoogleProtobufAny from "./any.pb"
|
|
8
|
+
import * as GoogleProtobufSource_context from "./source_context.pb"
|
|
9
|
+
|
|
10
|
+
export enum Syntax {
|
|
11
|
+
SYNTAX_PROTO2 = "SYNTAX_PROTO2",
|
|
12
|
+
SYNTAX_PROTO3 = "SYNTAX_PROTO3",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum FieldKind {
|
|
16
|
+
TYPE_UNKNOWN = "TYPE_UNKNOWN",
|
|
17
|
+
TYPE_DOUBLE = "TYPE_DOUBLE",
|
|
18
|
+
TYPE_FLOAT = "TYPE_FLOAT",
|
|
19
|
+
TYPE_INT64 = "TYPE_INT64",
|
|
20
|
+
TYPE_UINT64 = "TYPE_UINT64",
|
|
21
|
+
TYPE_INT32 = "TYPE_INT32",
|
|
22
|
+
TYPE_FIXED64 = "TYPE_FIXED64",
|
|
23
|
+
TYPE_FIXED32 = "TYPE_FIXED32",
|
|
24
|
+
TYPE_BOOL = "TYPE_BOOL",
|
|
25
|
+
TYPE_STRING = "TYPE_STRING",
|
|
26
|
+
TYPE_GROUP = "TYPE_GROUP",
|
|
27
|
+
TYPE_MESSAGE = "TYPE_MESSAGE",
|
|
28
|
+
TYPE_BYTES = "TYPE_BYTES",
|
|
29
|
+
TYPE_UINT32 = "TYPE_UINT32",
|
|
30
|
+
TYPE_ENUM = "TYPE_ENUM",
|
|
31
|
+
TYPE_SFIXED32 = "TYPE_SFIXED32",
|
|
32
|
+
TYPE_SFIXED64 = "TYPE_SFIXED64",
|
|
33
|
+
TYPE_SINT32 = "TYPE_SINT32",
|
|
34
|
+
TYPE_SINT64 = "TYPE_SINT64",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum FieldCardinality {
|
|
38
|
+
CARDINALITY_UNKNOWN = "CARDINALITY_UNKNOWN",
|
|
39
|
+
CARDINALITY_OPTIONAL = "CARDINALITY_OPTIONAL",
|
|
40
|
+
CARDINALITY_REQUIRED = "CARDINALITY_REQUIRED",
|
|
41
|
+
CARDINALITY_REPEATED = "CARDINALITY_REPEATED",
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Type = {
|
|
45
|
+
name?: string
|
|
46
|
+
fields?: Field[]
|
|
47
|
+
oneofs?: string[]
|
|
48
|
+
options?: Option[]
|
|
49
|
+
sourceContext?: GoogleProtobufSource_context.SourceContext
|
|
50
|
+
syntax?: Syntax
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type Field = {
|
|
54
|
+
kind?: FieldKind
|
|
55
|
+
cardinality?: FieldCardinality
|
|
56
|
+
number?: number
|
|
57
|
+
name?: string
|
|
58
|
+
typeUrl?: string
|
|
59
|
+
oneofIndex?: number
|
|
60
|
+
packed?: boolean
|
|
61
|
+
options?: Option[]
|
|
62
|
+
jsonName?: string
|
|
63
|
+
defaultValue?: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type Enum = {
|
|
67
|
+
name?: string
|
|
68
|
+
enumvalue?: EnumValue[]
|
|
69
|
+
options?: Option[]
|
|
70
|
+
sourceContext?: GoogleProtobufSource_context.SourceContext
|
|
71
|
+
syntax?: Syntax
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type EnumValue = {
|
|
75
|
+
name?: string
|
|
76
|
+
number?: number
|
|
77
|
+
options?: Option[]
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type Option = {
|
|
81
|
+
name?: string
|
|
82
|
+
value?: GoogleProtobufAny.Any
|
|
83
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
export type DoubleValue = {
|
|
7
|
+
value?: number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type FloatValue = {
|
|
11
|
+
value?: number
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type Int64Value = {
|
|
15
|
+
value?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type UInt64Value = {
|
|
19
|
+
value?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type Int32Value = {
|
|
23
|
+
value?: number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type UInt32Value = {
|
|
27
|
+
value?: number
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type BoolValue = {
|
|
31
|
+
value?: boolean
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type StringValue = {
|
|
35
|
+
value?: string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type BytesValue = {
|
|
39
|
+
value?: Uint8Array
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 GoogleProtobufAny from "../protobuf/any.pb"
|
|
8
|
+
export type Status = {
|
|
9
|
+
code?: number
|
|
10
|
+
message?: string
|
|
11
|
+
details?: GoogleProtobufAny.Any[]
|
|
12
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
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
|
+
cluster?: 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
|
+
ruleGroupName?: string
|
|
88
|
+
builtin?: boolean
|
|
89
|
+
cluster?: string
|
|
90
|
+
namespace?: string
|
|
91
|
+
source?: RuleSource
|
|
92
|
+
targetType?: TargetType
|
|
93
|
+
targetNames?: string[]
|
|
94
|
+
expr?: string
|
|
95
|
+
thresholdSymbol?: string
|
|
96
|
+
thresholdNum?: string
|
|
97
|
+
duration?: number
|
|
98
|
+
severity?: Severity
|
|
99
|
+
status?: RuleStatus
|
|
100
|
+
labels?: {[key: string]: string}
|
|
101
|
+
description?: string
|
|
102
|
+
notificationTemplate?: string
|
|
103
|
+
annotation?: Annotation
|
|
104
|
+
createAt?: string
|
|
105
|
+
updateAt?: string
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type Annotation = {
|
|
109
|
+
promql?: string
|
|
110
|
+
receivers?: AnnotationReceiver[]
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type AnnotationReceiver = {
|
|
114
|
+
type?: string
|
|
115
|
+
names?: string[]
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type CreateRuleRequest = {
|
|
119
|
+
ruleName?: string
|
|
120
|
+
description?: string
|
|
121
|
+
cluster?: string
|
|
122
|
+
namespace?: string
|
|
123
|
+
source?: RuleSource
|
|
124
|
+
targetType?: TargetType
|
|
125
|
+
targetNames?: string[]
|
|
126
|
+
expr?: string
|
|
127
|
+
thresholdSymbol?: string
|
|
128
|
+
thresholdNum?: string
|
|
129
|
+
duration?: number
|
|
130
|
+
severity?: Severity
|
|
131
|
+
notificationTemplate?: string
|
|
132
|
+
annotation?: Annotation
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type UpdateRuleRequest = {
|
|
136
|
+
id?: string
|
|
137
|
+
description?: string
|
|
138
|
+
cluster?: string
|
|
139
|
+
namespace?: string
|
|
140
|
+
targetNames?: string[]
|
|
141
|
+
expr?: string
|
|
142
|
+
thresholdSymbol?: string
|
|
143
|
+
thresholdNum?: string
|
|
144
|
+
duration?: number
|
|
145
|
+
severity?: Severity
|
|
146
|
+
notificationTemplate?: string
|
|
147
|
+
annotation?: Annotation
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type ListAlertsRequest = {
|
|
151
|
+
resolved?: boolean
|
|
152
|
+
name?: string
|
|
153
|
+
cluster?: string
|
|
154
|
+
namespace?: string
|
|
155
|
+
severity?: Severity
|
|
156
|
+
page?: number
|
|
157
|
+
pageSize?: number
|
|
158
|
+
sorts?: string[]
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type ListAlertsResponse = {
|
|
162
|
+
items?: AlertSummary[]
|
|
163
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type AlertSummary = {
|
|
167
|
+
alertId?: string
|
|
168
|
+
ruleName?: string
|
|
169
|
+
severity?: Severity
|
|
170
|
+
cluster?: string
|
|
171
|
+
namespace?: string
|
|
172
|
+
targetType?: TargetType
|
|
173
|
+
targetName?: string
|
|
174
|
+
status?: AlertStatus
|
|
175
|
+
description?: string
|
|
176
|
+
startAt?: string
|
|
177
|
+
updateAt?: string
|
|
178
|
+
notifyResponse?: string
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type AlertInfo = {
|
|
182
|
+
alertId?: string
|
|
183
|
+
fingerprint?: string
|
|
184
|
+
ruleName?: string
|
|
185
|
+
ruleId?: string
|
|
186
|
+
cluster?: string
|
|
187
|
+
namespace?: string
|
|
188
|
+
targetType?: TargetType
|
|
189
|
+
targetName?: string
|
|
190
|
+
severity?: Severity
|
|
191
|
+
labels?: {[key: string]: string}
|
|
192
|
+
description?: string
|
|
193
|
+
notifyResponse?: string
|
|
194
|
+
annotation?: string
|
|
195
|
+
source?: RuleSource
|
|
196
|
+
status?: AlertStatus
|
|
197
|
+
startAt?: string
|
|
198
|
+
updateAt?: string
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type CountAlertRequest = {
|
|
202
|
+
resolved?: boolean
|
|
203
|
+
cluster?: string
|
|
204
|
+
namespace?: string
|
|
205
|
+
targetType?: TargetType
|
|
206
|
+
targetName?: string
|
|
207
|
+
severity?: Severity
|
|
208
|
+
start?: string
|
|
209
|
+
end?: string
|
|
210
|
+
step?: string
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type CountAlertResponse = {
|
|
214
|
+
data?: CountAlert[]
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export type CountAlert = {
|
|
218
|
+
start?: string
|
|
219
|
+
end?: string
|
|
220
|
+
count?: {[key: string]: string}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type ResolveAlertRequest = {
|
|
224
|
+
alertId?: string[]
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type AMHookRequest = {
|
|
228
|
+
version?: string
|
|
229
|
+
groupKey?: string
|
|
230
|
+
status?: string
|
|
231
|
+
receiver?: string
|
|
232
|
+
groupLabels?: {[key: string]: string}
|
|
233
|
+
commonLabels?: {[key: string]: string}
|
|
234
|
+
commonAnnotations?: {[key: string]: string}
|
|
235
|
+
externalURL?: string
|
|
236
|
+
alerts?: AmAlert[]
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type AmAlert = {
|
|
240
|
+
status?: string
|
|
241
|
+
labels?: {[key: string]: string}
|
|
242
|
+
annotations?: {[key: string]: string}
|
|
243
|
+
startsAt?: string
|
|
244
|
+
endsAt?: string
|
|
245
|
+
generatorURL?: string
|
|
246
|
+
fingerprint?: string
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export type ListTemplatesRequest = {
|
|
250
|
+
name?: string
|
|
251
|
+
page?: number
|
|
252
|
+
pageSize?: number
|
|
253
|
+
sorts?: string[]
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export type ListTemplatesResponse = {
|
|
257
|
+
items?: TemplateSummary[]
|
|
258
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type TemplateSummary = {
|
|
262
|
+
name?: string
|
|
263
|
+
description?: string
|
|
264
|
+
updateAt?: string
|
|
265
|
+
builtin?: boolean
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export type Template = {
|
|
269
|
+
name?: string
|
|
270
|
+
description?: string
|
|
271
|
+
body?: TemplateBody
|
|
272
|
+
builtin?: boolean
|
|
273
|
+
createAt?: string
|
|
274
|
+
updateAt?: string
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export type TemplateName = {
|
|
278
|
+
name?: string
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export type CreateTemplateRequest = {
|
|
282
|
+
name?: string
|
|
283
|
+
description?: string
|
|
284
|
+
body?: TemplateBody
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export type TemplateBody = {
|
|
288
|
+
email?: string
|
|
289
|
+
wecom?: string
|
|
290
|
+
dingtalk?: string
|
|
291
|
+
webhook?: string
|
|
292
|
+
}
|
|
@@ -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,103 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
8
|
+
type OneOf<T> =
|
|
9
|
+
| { [k in keyof T]?: undefined }
|
|
10
|
+
| (
|
|
11
|
+
keyof T extends infer K ?
|
|
12
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
13
|
+
: never)
|
|
14
|
+
: never);
|
|
15
|
+
export type LogQueryResourceFilter = {
|
|
16
|
+
logSearch?: string[]
|
|
17
|
+
clusterFilter?: string[]
|
|
18
|
+
namespaceFilter?: string[]
|
|
19
|
+
workloadSearch?: string[]
|
|
20
|
+
workloadFilter?: string[]
|
|
21
|
+
podSearch?: string[]
|
|
22
|
+
podFilter?: string[]
|
|
23
|
+
containerSearch?: string[]
|
|
24
|
+
containerFilter?: string[]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type LogQuerySystemFilter = {
|
|
28
|
+
logSearch?: string[]
|
|
29
|
+
clusterFilter?: string[]
|
|
30
|
+
nodeFilter?: string[]
|
|
31
|
+
fileFilter?: string[]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type LogQueryEventFilter = {
|
|
35
|
+
logSearch?: string[]
|
|
36
|
+
clusterFilter?: string[]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
type BaseLogQueryRequest = {
|
|
41
|
+
startTime?: string
|
|
42
|
+
endTime?: string
|
|
43
|
+
from?: number
|
|
44
|
+
size?: number
|
|
45
|
+
sort?: string
|
|
46
|
+
interval?: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type LogQueryRequest = BaseLogQueryRequest
|
|
50
|
+
& OneOf<{ resource: LogQueryResourceFilter; system: LogQuerySystemFilter; event: LogQueryEventFilter }>
|
|
51
|
+
|
|
52
|
+
export type LogContextResourceFilter = {
|
|
53
|
+
cluster?: string
|
|
54
|
+
pod?: string
|
|
55
|
+
container?: string
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type LogContextSystemFilter = {
|
|
59
|
+
cluster?: string
|
|
60
|
+
node?: string
|
|
61
|
+
file?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type LogContextEventFilter = {
|
|
65
|
+
cluster?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
type BaseLogContextRequest = {
|
|
70
|
+
startTime?: string
|
|
71
|
+
endTime?: string
|
|
72
|
+
before?: number
|
|
73
|
+
after?: number
|
|
74
|
+
nanotimestamp?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type LogContextRequest = BaseLogContextRequest
|
|
78
|
+
& OneOf<{ resource: LogContextResourceFilter; system: LogContextSystemFilter; event: LogContextEventFilter }>
|
|
79
|
+
|
|
80
|
+
export type LogQueryResult = {
|
|
81
|
+
log?: string
|
|
82
|
+
timestamp?: string
|
|
83
|
+
labels?: {[key: string]: string}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type LogQueryResponse = {
|
|
87
|
+
total?: string
|
|
88
|
+
data?: LogQueryResult[]
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type LogHistogramResponse = {
|
|
92
|
+
total?: string
|
|
93
|
+
data?: LogHistogramResult[]
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type LogHistogramResult = {
|
|
97
|
+
timestamp?: string
|
|
98
|
+
count?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ListLogFilePathsResponse = {
|
|
102
|
+
paths?: string[]
|
|
103
|
+
}
|