@daocloud-proto/skoala 0.49.0-26 → 0.49.0-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/alert/v1alpha1/alert.pb.ts +433 -0
- package/alert/v1alpha1/inhibition.pb.ts +56 -0
- package/alert/v1alpha1/notify.pb.ts +250 -0
- package/alert/v1alpha1/silence.pb.ts +85 -0
- package/alert/v1alpha1/type.pb.ts +55 -0
- package/api/hosted/v1alpha3/ai_gateway.pb.ts +0 -32
- package/event/v1alpha1/event.pb.ts +137 -0
- package/feature_gate/v1alpha1/feature_gate.pb.ts +31 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/gogoproto/gogo.pb.ts +1 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/api/httpbody.pb.ts +12 -0
- package/{api/crds/version.pb.ts → google/protobuf/any.pb.ts} +3 -5
- 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/graph/v1alpha1/graph.pb.ts +175 -0
- package/log/v1alpha1/log.pb.ts +163 -0
- package/metric/v1alpha1/metric.pb.ts +116 -0
- package/net_flow/v1alpha1/net_flow.pb.ts +8 -0
- package/openapi/annotations.pb.ts +1 -0
- package/openapi/openapiv2.pb.ts +193 -0
- package/overview/v1alpha1/overview.pb.ts +95 -0
- package/package.json +3 -3
- package/probes/v1alpha1/probe.pb.ts +132 -0
- package/resource/v1alpha1/cluster.pb.ts +156 -0
- package/resource/v1alpha1/job.pb.ts +113 -0
- package/resource/v1alpha1/namespace.pb.ts +43 -0
- package/resource/v1alpha1/node.pb.ts +96 -0
- package/resource/v1alpha1/pod.pb.ts +112 -0
- package/resource/v1alpha1/service.pb.ts +62 -0
- package/resource/v1alpha1/type.pb.ts +26 -0
- package/resource/v1alpha1/workload.pb.ts +98 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +142 -0
- package/tracing/v1alpha1/model.pb.ts +95 -0
- package/tracing/v1alpha1/query.pb.ts +43 -0
- package/tracing/v1alpha1/tracing.pb.ts +64 -0
- package/type/v1alpha1/objectmeta.pb.ts +67 -0
- package/type/v1alpha1/page.pb.ts +11 -0
- package/user/v1alpha1/user.pb.ts +23 -0
- package/validate/validate.pb.ts +266 -0
- package/api/hosted/v1alpha3/gateway_api.pb.ts +0 -412
|
@@ -0,0 +1,163 @@
|
|
|
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 DownloadFileType {
|
|
19
|
+
TEXT = "TEXT",
|
|
20
|
+
CSV = "CSV",
|
|
21
|
+
JSON = "JSON",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export enum LogField {
|
|
25
|
+
LOG_FIELD_UNSPECIFIED = "LOG_FIELD_UNSPECIFIED",
|
|
26
|
+
Timestamp = "Timestamp",
|
|
27
|
+
Cluster = "Cluster",
|
|
28
|
+
Namespace = "Namespace",
|
|
29
|
+
Pod = "Pod",
|
|
30
|
+
Container = "Container",
|
|
31
|
+
Node = "Node",
|
|
32
|
+
File = "File",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type SearchLogRequest = {
|
|
36
|
+
index?: string
|
|
37
|
+
query?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type SearchLogResponse = {
|
|
41
|
+
response?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type LogQueryResourceFilter = {
|
|
45
|
+
logSearch?: string[]
|
|
46
|
+
clusterFilter?: string[]
|
|
47
|
+
namespaceFilter?: string[]
|
|
48
|
+
workloadSearch?: string[]
|
|
49
|
+
workloadFilter?: string[]
|
|
50
|
+
podSearch?: string[]
|
|
51
|
+
podFilter?: string[]
|
|
52
|
+
containerSearch?: string[]
|
|
53
|
+
containerFilter?: string[]
|
|
54
|
+
traceIdSearch?: string
|
|
55
|
+
luceneFilter?: string
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type LogQuerySystemFilter = {
|
|
59
|
+
logSearch?: string[]
|
|
60
|
+
clusterFilter?: string[]
|
|
61
|
+
nodeFilter?: string[]
|
|
62
|
+
fileFilter?: string[]
|
|
63
|
+
luceneFilter?: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type LogQueryEventFilter = {
|
|
67
|
+
logSearch?: string[]
|
|
68
|
+
clusterFilter?: string[]
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
type BaseQueryLogRequest = {
|
|
73
|
+
startTime?: string
|
|
74
|
+
endTime?: string
|
|
75
|
+
page?: number
|
|
76
|
+
pageSize?: number
|
|
77
|
+
sorts?: string[]
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type QueryLogRequest = BaseQueryLogRequest
|
|
81
|
+
& OneOf<{ resource: LogQueryResourceFilter; system: LogQuerySystemFilter; event: LogQueryEventFilter }>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
type BaseQueryLogHistogramRequest = {
|
|
85
|
+
startTime?: string
|
|
86
|
+
endTime?: string
|
|
87
|
+
interval?: string
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type QueryLogHistogramRequest = BaseQueryLogHistogramRequest
|
|
91
|
+
& OneOf<{ resource: LogQueryResourceFilter; system: LogQuerySystemFilter; event: LogQueryEventFilter }>
|
|
92
|
+
|
|
93
|
+
export type LogContextResourceFilter = {
|
|
94
|
+
cluster?: string
|
|
95
|
+
pod?: string
|
|
96
|
+
container?: string
|
|
97
|
+
namespace?: string
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type LogContextSystemFilter = {
|
|
101
|
+
cluster?: string
|
|
102
|
+
node?: string
|
|
103
|
+
file?: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type LogContextEventFilter = {
|
|
107
|
+
cluster?: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
type BaseQueryLogContextRequest = {
|
|
112
|
+
startTime?: string
|
|
113
|
+
endTime?: string
|
|
114
|
+
before?: number
|
|
115
|
+
after?: number
|
|
116
|
+
nanotimestamp?: string
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type QueryLogContextRequest = BaseQueryLogContextRequest
|
|
120
|
+
& OneOf<{ resource: LogContextResourceFilter; system: LogContextSystemFilter; event: LogContextEventFilter }>
|
|
121
|
+
|
|
122
|
+
export type LogQueryResult = {
|
|
123
|
+
log?: string
|
|
124
|
+
timestamp?: string
|
|
125
|
+
labels?: {[key: string]: string}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type QueryLogResponse = {
|
|
129
|
+
items?: LogQueryResult[]
|
|
130
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type QueryLogHistogramResponse = {
|
|
134
|
+
items?: LogHistogramResult[]
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type LogHistogramResult = {
|
|
138
|
+
timestamp?: string
|
|
139
|
+
count?: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type DownloadLogRequest = {
|
|
143
|
+
type?: DownloadFileType
|
|
144
|
+
queryLog?: QueryLogRequest
|
|
145
|
+
queryLogContext?: QueryLogContextRequest
|
|
146
|
+
fields?: LogField[]
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type DownloadLogResponse = {
|
|
150
|
+
url?: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
type BaseListLogFilePathsRequest = {
|
|
155
|
+
node?: string
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type ListLogFilePathsRequest = BaseListLogFilePathsRequest
|
|
159
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
160
|
+
|
|
161
|
+
export type ListLogFilePathsResponse = {
|
|
162
|
+
paths?: string[]
|
|
163
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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 requestStatus {
|
|
17
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
18
|
+
SUCCESS = "SUCCESS",
|
|
19
|
+
FAIL = "FAIL",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type Sample = {
|
|
23
|
+
metric?: {[key: string]: string}
|
|
24
|
+
values?: samplePair
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type SampleStream = {
|
|
28
|
+
metric?: {[key: string]: string}
|
|
29
|
+
values?: samplePair[]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type samplePair = {
|
|
33
|
+
timestamp?: string
|
|
34
|
+
value?: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
type BasePrometheusQueryRequest = {
|
|
39
|
+
namespace?: string
|
|
40
|
+
query?: string
|
|
41
|
+
time?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type PrometheusQueryRequest = BasePrometheusQueryRequest
|
|
45
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
type BasePrometheusQueryRangeRequest = {
|
|
49
|
+
namespace?: string
|
|
50
|
+
query?: string
|
|
51
|
+
start?: string
|
|
52
|
+
end?: string
|
|
53
|
+
step?: number
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type PrometheusQueryRangeRequest = BasePrometheusQueryRangeRequest
|
|
57
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
58
|
+
|
|
59
|
+
export type PrometheusQueryResult = {
|
|
60
|
+
vector?: Sample[]
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type PrometheusQueryRangeResult = {
|
|
64
|
+
matrix?: SampleStream[]
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type BatchQueryRangeRequestParam = {
|
|
68
|
+
start?: string
|
|
69
|
+
end?: string
|
|
70
|
+
step?: number
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type BatchQueryRequestParam = {
|
|
74
|
+
time?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
type BaseMatchLabel = {
|
|
79
|
+
namespace?: string
|
|
80
|
+
extraLabel?: {[key: string]: string}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type MatchLabel = BaseMatchLabel
|
|
84
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
85
|
+
|
|
86
|
+
export type BatchQueryRequest = {
|
|
87
|
+
param?: BatchQueryRequestParam
|
|
88
|
+
matchLabel?: MatchLabel
|
|
89
|
+
queryList?: string[]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type BatchQueryResponse = {
|
|
93
|
+
data?: BatchQueryResult[]
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type BatchQueryResult = {
|
|
97
|
+
data?: PrometheusQueryResult
|
|
98
|
+
status?: requestStatus
|
|
99
|
+
errorMessage?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type BatchQueryRangeRequest = {
|
|
103
|
+
param?: BatchQueryRangeRequestParam
|
|
104
|
+
matchLabel?: MatchLabel
|
|
105
|
+
queryList?: string[]
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type BatchQueryRangeResponse = {
|
|
109
|
+
data?: BatchQueryRangeResult[]
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type BatchQueryRangeResult = {
|
|
113
|
+
data?: PrometheusQueryRangeResult
|
|
114
|
+
status?: requestStatus
|
|
115
|
+
errorMessage?: string
|
|
116
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1,193 @@
|
|
|
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 GoogleProtobufStruct from "../google/protobuf/struct.pb"
|
|
8
|
+
|
|
9
|
+
export enum Scheme {
|
|
10
|
+
UNKNOWN = "UNKNOWN",
|
|
11
|
+
HTTP = "HTTP",
|
|
12
|
+
HTTPS = "HTTPS",
|
|
13
|
+
WS = "WS",
|
|
14
|
+
WSS = "WSS",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum JSONSchemaJSONSchemaSimpleTypes {
|
|
18
|
+
UNKNOWN = "UNKNOWN",
|
|
19
|
+
ARRAY = "ARRAY",
|
|
20
|
+
BOOLEAN = "BOOLEAN",
|
|
21
|
+
INTEGER = "INTEGER",
|
|
22
|
+
NULL = "NULL",
|
|
23
|
+
NUMBER = "NUMBER",
|
|
24
|
+
OBJECT = "OBJECT",
|
|
25
|
+
STRING = "STRING",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum SecuritySchemeType {
|
|
29
|
+
TYPE_INVALID = "TYPE_INVALID",
|
|
30
|
+
TYPE_BASIC = "TYPE_BASIC",
|
|
31
|
+
TYPE_API_KEY = "TYPE_API_KEY",
|
|
32
|
+
TYPE_OAUTH2 = "TYPE_OAUTH2",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum SecuritySchemeIn {
|
|
36
|
+
IN_INVALID = "IN_INVALID",
|
|
37
|
+
IN_QUERY = "IN_QUERY",
|
|
38
|
+
IN_HEADER = "IN_HEADER",
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export enum SecuritySchemeFlow {
|
|
42
|
+
FLOW_INVALID = "FLOW_INVALID",
|
|
43
|
+
FLOW_IMPLICIT = "FLOW_IMPLICIT",
|
|
44
|
+
FLOW_PASSWORD = "FLOW_PASSWORD",
|
|
45
|
+
FLOW_APPLICATION = "FLOW_APPLICATION",
|
|
46
|
+
FLOW_ACCESS_CODE = "FLOW_ACCESS_CODE",
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type Swagger = {
|
|
50
|
+
swagger?: string
|
|
51
|
+
info?: Info
|
|
52
|
+
host?: string
|
|
53
|
+
basePath?: string
|
|
54
|
+
schemes?: Scheme[]
|
|
55
|
+
consumes?: string[]
|
|
56
|
+
produces?: string[]
|
|
57
|
+
responses?: {[key: string]: Response}
|
|
58
|
+
securityDefinitions?: SecurityDefinitions
|
|
59
|
+
security?: SecurityRequirement[]
|
|
60
|
+
externalDocs?: ExternalDocumentation
|
|
61
|
+
extensions?: {[key: string]: GoogleProtobufStruct.Value}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type Operation = {
|
|
65
|
+
tags?: string[]
|
|
66
|
+
summary?: string
|
|
67
|
+
description?: string
|
|
68
|
+
externalDocs?: ExternalDocumentation
|
|
69
|
+
operationId?: string
|
|
70
|
+
consumes?: string[]
|
|
71
|
+
produces?: string[]
|
|
72
|
+
responses?: {[key: string]: Response}
|
|
73
|
+
schemes?: Scheme[]
|
|
74
|
+
deprecated?: boolean
|
|
75
|
+
security?: SecurityRequirement[]
|
|
76
|
+
extensions?: {[key: string]: GoogleProtobufStruct.Value}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type Header = {
|
|
80
|
+
description?: string
|
|
81
|
+
type?: string
|
|
82
|
+
format?: string
|
|
83
|
+
default?: string
|
|
84
|
+
pattern?: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type Response = {
|
|
88
|
+
description?: string
|
|
89
|
+
schema?: Schema
|
|
90
|
+
headers?: {[key: string]: Header}
|
|
91
|
+
examples?: {[key: string]: string}
|
|
92
|
+
extensions?: {[key: string]: GoogleProtobufStruct.Value}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type Info = {
|
|
96
|
+
title?: string
|
|
97
|
+
description?: string
|
|
98
|
+
termsOfService?: string
|
|
99
|
+
contact?: Contact
|
|
100
|
+
license?: License
|
|
101
|
+
version?: string
|
|
102
|
+
extensions?: {[key: string]: GoogleProtobufStruct.Value}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type Contact = {
|
|
106
|
+
name?: string
|
|
107
|
+
url?: string
|
|
108
|
+
email?: string
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type License = {
|
|
112
|
+
name?: string
|
|
113
|
+
url?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type ExternalDocumentation = {
|
|
117
|
+
description?: string
|
|
118
|
+
url?: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type Schema = {
|
|
122
|
+
jsonSchema?: JSONSchema
|
|
123
|
+
discriminator?: string
|
|
124
|
+
readOnly?: boolean
|
|
125
|
+
externalDocs?: ExternalDocumentation
|
|
126
|
+
example?: string
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type JSONSchemaFieldConfiguration = {
|
|
130
|
+
pathParamName?: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type JSONSchema = {
|
|
134
|
+
ref?: string
|
|
135
|
+
title?: string
|
|
136
|
+
description?: string
|
|
137
|
+
default?: string
|
|
138
|
+
readOnly?: boolean
|
|
139
|
+
example?: string
|
|
140
|
+
multipleOf?: number
|
|
141
|
+
maximum?: number
|
|
142
|
+
exclusiveMaximum?: boolean
|
|
143
|
+
minimum?: number
|
|
144
|
+
exclusiveMinimum?: boolean
|
|
145
|
+
maxLength?: string
|
|
146
|
+
minLength?: string
|
|
147
|
+
pattern?: string
|
|
148
|
+
maxItems?: string
|
|
149
|
+
minItems?: string
|
|
150
|
+
uniqueItems?: boolean
|
|
151
|
+
maxProperties?: string
|
|
152
|
+
minProperties?: string
|
|
153
|
+
required?: string[]
|
|
154
|
+
array?: string[]
|
|
155
|
+
type?: JSONSchemaJSONSchemaSimpleTypes[]
|
|
156
|
+
format?: string
|
|
157
|
+
enum?: string[]
|
|
158
|
+
fieldConfiguration?: JSONSchemaFieldConfiguration
|
|
159
|
+
extensions?: {[key: string]: GoogleProtobufStruct.Value}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export type Tag = {
|
|
163
|
+
description?: string
|
|
164
|
+
externalDocs?: ExternalDocumentation
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export type SecurityDefinitions = {
|
|
168
|
+
security?: {[key: string]: SecurityScheme}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export type SecurityScheme = {
|
|
172
|
+
type?: SecuritySchemeType
|
|
173
|
+
description?: string
|
|
174
|
+
name?: string
|
|
175
|
+
in?: SecuritySchemeIn
|
|
176
|
+
flow?: SecuritySchemeFlow
|
|
177
|
+
authorizationUrl?: string
|
|
178
|
+
tokenUrl?: string
|
|
179
|
+
scopes?: Scopes
|
|
180
|
+
extensions?: {[key: string]: GoogleProtobufStruct.Value}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type SecurityRequirementSecurityRequirementValue = {
|
|
184
|
+
scope?: string[]
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type SecurityRequirement = {
|
|
188
|
+
securityRequirement?: {[key: string]: SecurityRequirementSecurityRequirementValue}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type Scopes = {
|
|
192
|
+
scope?: {[key: string]: string}
|
|
193
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
8
|
+
import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "../../span_metric/v1alpha1/otelspankind.pb"
|
|
9
|
+
|
|
10
|
+
export enum GetResourcesCountRequestResourcesFilter {
|
|
11
|
+
RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
|
|
12
|
+
CLUSTER_NORMAL_TOTAL = "CLUSTER_NORMAL_TOTAL",
|
|
13
|
+
CLUSTER_TOTAL = "CLUSTER_TOTAL",
|
|
14
|
+
NODE_NORMAL_TOTAL = "NODE_NORMAL_TOTAL",
|
|
15
|
+
NODE_TOTAL = "NODE_TOTAL",
|
|
16
|
+
DEPLOYMENT_NORMAL_TOTAL = "DEPLOYMENT_NORMAL_TOTAL",
|
|
17
|
+
DEPLOYMENT_TOTAL = "DEPLOYMENT_TOTAL",
|
|
18
|
+
STATEFULSET_NORMAL_TOTAL = "STATEFULSET_NORMAL_TOTAL",
|
|
19
|
+
STATEFULSET_TOTAL = "STATEFULSET_TOTAL",
|
|
20
|
+
DAEMONSET_NORMAL_TOTAL = "DAEMONSET_NORMAL_TOTAL",
|
|
21
|
+
DAEMONSET_TOTAL = "DAEMONSET_TOTAL",
|
|
22
|
+
JOB_NORMAL_TOTAL = "JOB_NORMAL_TOTAL",
|
|
23
|
+
JOB_TOTAL = "JOB_TOTAL",
|
|
24
|
+
POD_NORMAL_TOTAL = "POD_NORMAL_TOTAL",
|
|
25
|
+
POD_TOTAL = "POD_TOTAL",
|
|
26
|
+
LOG_TOTAL = "LOG_TOTAL",
|
|
27
|
+
TRACE_TOTAL = "TRACE_TOTAL",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum GetResourcesRangeRequestResourceFilter {
|
|
31
|
+
RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
|
|
32
|
+
NODE_TOTAL = "NODE_TOTAL",
|
|
33
|
+
POD_TOTAL = "POD_TOTAL",
|
|
34
|
+
POD_ABNORMAL_TOTAL = "POD_ABNORMAL_TOTAL",
|
|
35
|
+
POD_NORMAL_TOTAL = "POD_NORMAL_TOTAL",
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export enum GetResourcesUsageRequestResourceFilters {
|
|
39
|
+
RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
|
|
40
|
+
CLUSTER_CPU_USAGE = "CLUSTER_CPU_USAGE",
|
|
41
|
+
CLUSTER_MEM_USAGE = "CLUSTER_MEM_USAGE",
|
|
42
|
+
CLUSTER_DISK_USAGE = "CLUSTER_DISK_USAGE",
|
|
43
|
+
NODE_CPU_USAGE = "NODE_CPU_USAGE",
|
|
44
|
+
NODE_MEM_USAGE = "NODE_MEM_USAGE",
|
|
45
|
+
NODE_DISK_USAGE = "NODE_DISK_USAGE",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export enum GetServicesMonitorRequestMonitorFilter {
|
|
49
|
+
MONITOR_TYPE_UNSPECIFIED = "MONITOR_TYPE_UNSPECIFIED",
|
|
50
|
+
AVG_LATENCY = "AVG_LATENCY",
|
|
51
|
+
ERR_RATE = "ERR_RATE",
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type GetResourcesCountRequest = {
|
|
55
|
+
time?: string
|
|
56
|
+
filters?: GetResourcesCountRequestResourcesFilter[]
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type GetResourcesCountResponse = {
|
|
60
|
+
data?: InsightIoApiMetricV1alpha1Metric.BatchQueryResult[]
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type GetResourcesRangeRequest = {
|
|
64
|
+
filters?: GetResourcesRangeRequestResourceFilter[]
|
|
65
|
+
start?: string
|
|
66
|
+
end?: string
|
|
67
|
+
step?: number
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetResourcesRangeResponse = {
|
|
71
|
+
data?: InsightIoApiMetricV1alpha1Metric.BatchQueryRangeResult[]
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type GetResourcesUsageRequest = {
|
|
75
|
+
filters?: GetResourcesUsageRequestResourceFilters[]
|
|
76
|
+
limit?: number
|
|
77
|
+
start?: string
|
|
78
|
+
end?: string
|
|
79
|
+
step?: number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type GetResourcesUsageResponse = {
|
|
83
|
+
data?: InsightIoApiMetricV1alpha1Metric.BatchQueryRangeResult[]
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type GetServicesMonitorRequest = {
|
|
87
|
+
filters?: GetServicesMonitorRequestMonitorFilter[]
|
|
88
|
+
limit?: number
|
|
89
|
+
time?: string
|
|
90
|
+
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type GetServicesMonitorResponse = {
|
|
94
|
+
data?: InsightIoApiMetricV1alpha1Metric.BatchQueryResult[]
|
|
95
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daocloud-proto/skoala",
|
|
3
|
-
"version": "0.49.0-
|
|
3
|
+
"version": "0.49.0-4",
|
|
4
|
+
"description": "",
|
|
4
5
|
"main": "index.js",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
8
|
},
|
|
8
9
|
"keywords": [],
|
|
9
10
|
"author": "",
|
|
10
|
-
"license": "ISC"
|
|
11
|
-
"description": ""
|
|
11
|
+
"license": "ISC"
|
|
12
12
|
}
|