@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,26 @@
|
|
|
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 ConditionStatus {
|
|
8
|
+
CONDITION_STATUS_UNSPECIFIED = "CONDITION_STATUS_UNSPECIFIED",
|
|
9
|
+
True = "True",
|
|
10
|
+
False = "False",
|
|
11
|
+
Unknown = "Unknown",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type ResourceNumSummary = {
|
|
15
|
+
totalNum?: number
|
|
16
|
+
readyNum?: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type Condition = {
|
|
20
|
+
lastTransitionTime?: string
|
|
21
|
+
lastUpdateTime?: string
|
|
22
|
+
message?: string
|
|
23
|
+
reason?: string
|
|
24
|
+
status?: string
|
|
25
|
+
type?: string
|
|
26
|
+
}
|
|
@@ -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
|
+
import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
|
+
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
|
+
|
|
10
|
+
export enum WorkloadKind {
|
|
11
|
+
WORKLOAD_KIND_UNKNOWN = "WORKLOAD_KIND_UNKNOWN",
|
|
12
|
+
WORKLOAD_KIND_DEPLOYMENT = "WORKLOAD_KIND_DEPLOYMENT",
|
|
13
|
+
WORKLOAD_KIND_STATEFULSET = "WORKLOAD_KIND_STATEFULSET",
|
|
14
|
+
WORKLOAD_KIND_DAEMONSET = "WORKLOAD_KIND_DAEMONSET",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum WorkloadPhase {
|
|
18
|
+
WORKLOAD_STATE_UNKNOWN = "WORKLOAD_STATE_UNKNOWN",
|
|
19
|
+
WORKLOAD_STATE_RUNNING = "WORKLOAD_STATE_RUNNING",
|
|
20
|
+
WORKLOAD_STATE_DELETING = "WORKLOAD_STATE_DELETING",
|
|
21
|
+
WORKLOAD_STATE_NOT_READY = "WORKLOAD_STATE_NOT_READY",
|
|
22
|
+
WORKLOAD_STATE_STOPPED = "WORKLOAD_STATE_STOPPED",
|
|
23
|
+
WORKLOAD_STATE_WAITING = "WORKLOAD_STATE_WAITING",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type ListWorkloadsRequest = {
|
|
27
|
+
cluster?: string
|
|
28
|
+
namespace?: string
|
|
29
|
+
name?: string
|
|
30
|
+
phase?: WorkloadPhase
|
|
31
|
+
page?: number
|
|
32
|
+
pageSize?: number
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type ListWorkloadsResponse = {
|
|
36
|
+
items?: workloadSummary[]
|
|
37
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type workloadSummary = {
|
|
41
|
+
name?: string
|
|
42
|
+
namespace?: string
|
|
43
|
+
phase?: WorkloadPhase
|
|
44
|
+
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type Workload = {
|
|
48
|
+
name?: string
|
|
49
|
+
cluster?: string
|
|
50
|
+
namespace?: string
|
|
51
|
+
phase?: WorkloadPhase
|
|
52
|
+
createTimestamp?: string
|
|
53
|
+
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
54
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type GetWorkloadRequest = {
|
|
58
|
+
cluster?: string
|
|
59
|
+
namespace?: string
|
|
60
|
+
name?: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type workloadUsage = {
|
|
64
|
+
cpuRequest?: string
|
|
65
|
+
cpuLimit?: string
|
|
66
|
+
cpuUsage?: string
|
|
67
|
+
memoryRequest?: string
|
|
68
|
+
memoryLimit?: string
|
|
69
|
+
memoryUsage?: string
|
|
70
|
+
networkUsage?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type GetDeploymentPodsRequest = {
|
|
74
|
+
cluster?: string
|
|
75
|
+
namespace?: string
|
|
76
|
+
name?: string
|
|
77
|
+
pod?: string
|
|
78
|
+
page?: number
|
|
79
|
+
pageSize?: number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type GetStatefulsetPodsRequest = {
|
|
83
|
+
cluster?: string
|
|
84
|
+
namespace?: string
|
|
85
|
+
name?: string
|
|
86
|
+
pod?: string
|
|
87
|
+
page?: number
|
|
88
|
+
pageSize?: number
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type GetDaemonsetPodsRequest = {
|
|
92
|
+
cluster?: string
|
|
93
|
+
namespace?: string
|
|
94
|
+
name?: string
|
|
95
|
+
pod?: string
|
|
96
|
+
page?: number
|
|
97
|
+
pageSize?: number
|
|
98
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 SpanKind {
|
|
8
|
+
SPAN_KIND_UNSPECIFIED = "SPAN_KIND_UNSPECIFIED",
|
|
9
|
+
SPAN_KIND_INTERNAL = "SPAN_KIND_INTERNAL",
|
|
10
|
+
SPAN_KIND_SERVER = "SPAN_KIND_SERVER",
|
|
11
|
+
SPAN_KIND_CLIENT = "SPAN_KIND_CLIENT",
|
|
12
|
+
SPAN_KIND_PRODUCER = "SPAN_KIND_PRODUCER",
|
|
13
|
+
SPAN_KIND_CONSUMER = "SPAN_KIND_CONSUMER",
|
|
14
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
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 InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
9
|
+
import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "./otelspankind.pb"
|
|
10
|
+
|
|
11
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
12
|
+
type OneOf<T> =
|
|
13
|
+
| { [k in keyof T]?: undefined }
|
|
14
|
+
| (
|
|
15
|
+
keyof T extends infer K ?
|
|
16
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
17
|
+
: never)
|
|
18
|
+
: never);
|
|
19
|
+
|
|
20
|
+
type BaseMetricsQueryBaseRequest = {
|
|
21
|
+
namespace?: string
|
|
22
|
+
instanceName?: string
|
|
23
|
+
extensionFilters?: string
|
|
24
|
+
serviceNames?: string[]
|
|
25
|
+
groupByOperation?: boolean
|
|
26
|
+
endTime?: string
|
|
27
|
+
lookback?: string
|
|
28
|
+
step?: string
|
|
29
|
+
ratePer?: string
|
|
30
|
+
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type MetricsQueryBaseRequest = BaseMetricsQueryBaseRequest
|
|
34
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
type BaseGetApdexRequest = {
|
|
38
|
+
namespace?: string
|
|
39
|
+
name?: string
|
|
40
|
+
apdexThreshold?: string
|
|
41
|
+
startTime?: string
|
|
42
|
+
endTime?: string
|
|
43
|
+
extensionFilters?: string
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GetApdexRequest = BaseGetApdexRequest
|
|
47
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
48
|
+
|
|
49
|
+
export type GetServiceDetailResponse = {
|
|
50
|
+
p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
51
|
+
p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
52
|
+
p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
53
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
54
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type GetOperationDetailRequest = {
|
|
58
|
+
clusterName?: string
|
|
59
|
+
namespace?: string
|
|
60
|
+
serviceName?: string
|
|
61
|
+
sort?: string
|
|
62
|
+
page?: number
|
|
63
|
+
pageSize?: number
|
|
64
|
+
extensionFilters?: string
|
|
65
|
+
endTime?: string
|
|
66
|
+
lookback?: string
|
|
67
|
+
step?: string
|
|
68
|
+
ratePer?: string
|
|
69
|
+
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type MetricsWithOperation = {
|
|
73
|
+
operationName?: string
|
|
74
|
+
metricsMap?: {[key: string]: MetricsEntity}
|
|
75
|
+
spanKind?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type MetricsEntity = {
|
|
79
|
+
metrics?: InsightIoApiMetricV1alpha1Metric.samplePair[]
|
|
80
|
+
metricsAvg?: number
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type GetOperationDetailResponse = {
|
|
84
|
+
metrics?: MetricsWithOperation[]
|
|
85
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
type BaseGetServicesRequest = {
|
|
90
|
+
namespace?: string
|
|
91
|
+
extensionFilters?: string
|
|
92
|
+
endTime?: string
|
|
93
|
+
lookback?: string
|
|
94
|
+
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
95
|
+
page?: number
|
|
96
|
+
pageSize?: number
|
|
97
|
+
sort?: string
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type GetServicesRequest = BaseGetServicesRequest
|
|
101
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
102
|
+
|
|
103
|
+
export type ServiceItem = {
|
|
104
|
+
serviceName?: string
|
|
105
|
+
namespace?: string
|
|
106
|
+
reqRate?: number
|
|
107
|
+
repLatency?: number
|
|
108
|
+
errorRate?: number
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type GetServicesResponse = {
|
|
112
|
+
items?: ServiceItem[]
|
|
113
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type GetServicePodsRequest = {
|
|
117
|
+
clusterName?: string
|
|
118
|
+
namespace?: string
|
|
119
|
+
name?: string
|
|
120
|
+
sort?: string
|
|
121
|
+
page?: number
|
|
122
|
+
pageSize?: number
|
|
123
|
+
extensionFilters?: string
|
|
124
|
+
endTime?: string
|
|
125
|
+
lookback?: string
|
|
126
|
+
step?: string
|
|
127
|
+
ratePer?: string
|
|
128
|
+
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type PodItem = {
|
|
132
|
+
podName?: string
|
|
133
|
+
clusterName?: string
|
|
134
|
+
namespace?: string
|
|
135
|
+
metricsMap?: {[key: string]: MetricsEntity}
|
|
136
|
+
reqPercentage?: number
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type GetServicePodsResponse = {
|
|
140
|
+
items?: PodItem[]
|
|
141
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
142
|
+
}
|
|
@@ -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 GoogleProtobufTimestamp from "../../google/protobuf/timestamp.pb"
|
|
8
|
+
|
|
9
|
+
export enum ValueType {
|
|
10
|
+
STRING = "STRING",
|
|
11
|
+
BOOL = "BOOL",
|
|
12
|
+
INT64 = "INT64",
|
|
13
|
+
FLOAT64 = "FLOAT64",
|
|
14
|
+
BINARY = "BINARY",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum SpanRefType {
|
|
18
|
+
CHILD_OF = "CHILD_OF",
|
|
19
|
+
FOLLOWS_FROM = "FOLLOWS_FROM",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum TraceTraceStatus {
|
|
23
|
+
UNHEALTHY = "UNHEALTHY",
|
|
24
|
+
HEALTHY = "HEALTHY",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type KeyValue = {
|
|
28
|
+
key?: string
|
|
29
|
+
vType?: ValueType
|
|
30
|
+
vStr?: string
|
|
31
|
+
vBool?: boolean
|
|
32
|
+
vInt64?: string
|
|
33
|
+
vFloat64?: number
|
|
34
|
+
vBinary?: Uint8Array
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Log = {
|
|
38
|
+
time?: string
|
|
39
|
+
fields?: KeyValue[]
|
|
40
|
+
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type SpanRef = {
|
|
44
|
+
traceId?: string
|
|
45
|
+
spanId?: string
|
|
46
|
+
refType?: SpanRefType
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type Process = {
|
|
50
|
+
serviceName?: string
|
|
51
|
+
tags?: KeyValue[]
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type Span = {
|
|
55
|
+
traceId?: string
|
|
56
|
+
spanId?: string
|
|
57
|
+
operationName?: string
|
|
58
|
+
references?: SpanRef[]
|
|
59
|
+
flags?: number
|
|
60
|
+
startTime?: GoogleProtobufTimestamp.Timestamp
|
|
61
|
+
duration?: string
|
|
62
|
+
tags?: KeyValue[]
|
|
63
|
+
logs?: Log[]
|
|
64
|
+
process?: Process
|
|
65
|
+
processId?: string
|
|
66
|
+
warnings?: string[]
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type TraceProcessMapping = {
|
|
70
|
+
processId?: string
|
|
71
|
+
process?: Process
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type Trace = {
|
|
75
|
+
operationName?: string
|
|
76
|
+
processMap?: TraceProcessMapping[]
|
|
77
|
+
warnings?: string[]
|
|
78
|
+
traceId?: string
|
|
79
|
+
status?: TraceTraceStatus
|
|
80
|
+
spanCount?: number
|
|
81
|
+
startTime?: string
|
|
82
|
+
duration?: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type Batch = {
|
|
86
|
+
spans?: Span[]
|
|
87
|
+
process?: Process
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type DependencyLink = {
|
|
91
|
+
parent?: string
|
|
92
|
+
child?: string
|
|
93
|
+
callCount?: string
|
|
94
|
+
source?: string
|
|
95
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 InsightIoApiTracingV1alpha1Model from "./model.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 TracesResponseChunk = {
|
|
18
|
+
traces?: InsightIoApiTracingV1alpha1Model.Trace[]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type SpansResponseChunk = {
|
|
22
|
+
spans?: InsightIoApiTracingV1alpha1Model.Span[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
type BaseTraceQueryParameters = {
|
|
27
|
+
serviceName?: string
|
|
28
|
+
operationName?: string
|
|
29
|
+
tags?: {[key: string]: string}
|
|
30
|
+
start?: string
|
|
31
|
+
end?: string
|
|
32
|
+
durationMin?: string
|
|
33
|
+
durationMax?: string
|
|
34
|
+
limit?: number
|
|
35
|
+
namespace?: string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type TraceQueryParameters = BaseTraceQueryParameters
|
|
39
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
40
|
+
|
|
41
|
+
export type FindTracesRequest = {
|
|
42
|
+
query?: TraceQueryParameters
|
|
43
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 InsightIoApiSpan_metricV1alpha1Otelspankind from "../../span_metric/v1alpha1/otelspankind.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
|
+
type BaseQueryBaseRequest = {
|
|
19
|
+
namespace?: string
|
|
20
|
+
serviceName?: string
|
|
21
|
+
spanKind?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
22
|
+
start?: string
|
|
23
|
+
end?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type QueryBaseRequest = BaseQueryBaseRequest
|
|
27
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
28
|
+
|
|
29
|
+
export type BatchQueryBaseRequest = {
|
|
30
|
+
cluster?: string
|
|
31
|
+
namespace?: string
|
|
32
|
+
serviceName?: string[]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type QueryOperationsRequest = {
|
|
36
|
+
clusterName?: string
|
|
37
|
+
namespace?: string
|
|
38
|
+
serviceName?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type QueryOperationsResponse = {
|
|
42
|
+
operations?: string[]
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
type BaseTraceRequestById = {
|
|
47
|
+
traceId?: string
|
|
48
|
+
namespace?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type TraceRequestById = BaseTraceRequestById
|
|
52
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
type BaseListServiceNamesRequest = {
|
|
56
|
+
namespace?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type ListServiceNamesRequest = BaseListServiceNamesRequest
|
|
60
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
61
|
+
|
|
62
|
+
export type GetServiceNamesResponse = {
|
|
63
|
+
services?: string[]
|
|
64
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 WorkloadState {
|
|
8
|
+
WORKLOAD_STATE_UNSPECIFIED = "WORKLOAD_STATE_UNSPECIFIED",
|
|
9
|
+
Running = "Running",
|
|
10
|
+
Deleting = "Deleting",
|
|
11
|
+
Not_Ready = "Not_Ready",
|
|
12
|
+
Stopped = "Stopped",
|
|
13
|
+
Waiting = "Waiting",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type OwnerReference = {
|
|
17
|
+
uid?: string
|
|
18
|
+
controller?: boolean
|
|
19
|
+
name?: string
|
|
20
|
+
kind?: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type ObjectMeta = {
|
|
24
|
+
name?: string
|
|
25
|
+
namespace?: string
|
|
26
|
+
uid?: string
|
|
27
|
+
resourceVersion?: string
|
|
28
|
+
creationTimestamp?: string
|
|
29
|
+
deletionTimestamp?: string
|
|
30
|
+
labels?: {[key: string]: string}
|
|
31
|
+
annotations?: {[key: string]: string}
|
|
32
|
+
ownerReferences?: OwnerReference[]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Selector = {
|
|
36
|
+
matchLabels?: {[key: string]: string}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type LabelSelector = {
|
|
40
|
+
matchLabels?: {[key: string]: string}
|
|
41
|
+
matchExpressions?: LabelSelectorRequirement[]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type LabelSelectorRequirement = {
|
|
45
|
+
key?: string
|
|
46
|
+
operator?: string
|
|
47
|
+
values?: string[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type RollingUpdate = {
|
|
51
|
+
maxSurge?: string
|
|
52
|
+
maxUnavailable?: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type UpdateStrategy = {
|
|
56
|
+
rollingUpdate?: RollingUpdate
|
|
57
|
+
type?: string
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type Condition = {
|
|
61
|
+
lastTransitionTime?: string
|
|
62
|
+
lastUpdateTime?: string
|
|
63
|
+
message?: string
|
|
64
|
+
reason?: string
|
|
65
|
+
status?: string
|
|
66
|
+
type?: string
|
|
67
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
export type ListUsersRequest = {
|
|
9
|
+
search?: string
|
|
10
|
+
pageSize?: number
|
|
11
|
+
page?: number
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type User = {
|
|
15
|
+
id?: string
|
|
16
|
+
name?: string
|
|
17
|
+
enabled?: boolean
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ListUsersResponse = {
|
|
21
|
+
items?: User[]
|
|
22
|
+
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
23
|
+
}
|