@daocloud-proto/skoala 0.7.1-20 → 0.7.1-22
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/hosted/v1alpha1/nacos.pb.ts +10 -1
- package/api/skoala/v1alpha1/skoala.pb.ts +3 -0
- package/gogoproto/gogo.pb.ts +1 -0
- package/graph/v1alpha1/graph.pb.ts +111 -0
- package/insight/v1alpha1/alert.pb.ts +4 -7
- package/insight/v1alpha1/notify.pb.ts +11 -4
- package/log/v1alpha1/log.pb.ts +17 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +17 -4
- package/resource/v1alpha1/job.pb.ts +10 -8
- package/resource/v1alpha1/node.pb.ts +14 -2
- package/resource/v1alpha1/pod.pb.ts +3 -2
- package/resource/v1alpha1/service.pb.ts +2 -0
- package/resource/v1alpha1/type.pb.ts +17 -0
- package/resource/v1alpha1/workload.pb.ts +2 -1
- package/tracing/v1alpha1/model.pb.ts +86 -0
- package/tracing/v1alpha1/query.pb.ts +48 -0
- package/tracing/v1alpha1/tracing.pb.ts +2 -0
|
@@ -739,7 +739,16 @@ export type DeleteNacosConfigReq = {
|
|
|
739
739
|
nacosNamespace?: string
|
|
740
740
|
dataId?: string
|
|
741
741
|
group?: string
|
|
742
|
-
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export type DeleteNacosConfigBatchReq = {
|
|
745
|
+
workspaceId?: string
|
|
746
|
+
clusterName?: string
|
|
747
|
+
namespaceName?: string
|
|
748
|
+
nacosName?: string
|
|
749
|
+
nacosNamespace?: string
|
|
750
|
+
dataId?: string
|
|
751
|
+
group?: string
|
|
743
752
|
ids?: string
|
|
744
753
|
}
|
|
745
754
|
|
|
@@ -220,6 +220,9 @@ export class Nacos {
|
|
|
220
220
|
static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
221
221
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}`, {...initReq, method: "DELETE"})
|
|
222
222
|
}
|
|
223
|
+
static DeleteConfigBatch(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
224
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE"})
|
|
225
|
+
}
|
|
223
226
|
static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNodeRes> {
|
|
224
227
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
225
228
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
|
|
9
|
+
export enum NodeType {
|
|
10
|
+
NODE_TYPE_UNSPECIFIED = "NODE_TYPE_UNSPECIFIED",
|
|
11
|
+
CLUSTER = "CLUSTER",
|
|
12
|
+
NAMESPACE = "NAMESPACE",
|
|
13
|
+
SERVICE = "SERVICE",
|
|
14
|
+
WORKLOAD = "WORKLOAD",
|
|
15
|
+
INSTANCE = "INSTANCE",
|
|
16
|
+
NODE = "NODE",
|
|
17
|
+
CUSTOM = "CUSTOM",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum Layer {
|
|
21
|
+
LAYER_UNSPECIFIED = "LAYER_UNSPECIFIED",
|
|
22
|
+
KUBERNETES = "KUBERNETES",
|
|
23
|
+
MESH = "MESH",
|
|
24
|
+
OS_LINUX = "OS_LINUX",
|
|
25
|
+
VM = "VM",
|
|
26
|
+
INFRA = "INFRA",
|
|
27
|
+
GENERAL = "GENERAL",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum GraphType {
|
|
31
|
+
GRAPH_UNSPECIFIED = "GRAPH_UNSPECIFIED",
|
|
32
|
+
CLUSTER_SCOPE = "CLUSTER_SCOPE",
|
|
33
|
+
NAMESPACE_SCOPE = "NAMESPACE_SCOPE",
|
|
34
|
+
SERVICE_SCOPE = "SERVICE_SCOPE",
|
|
35
|
+
WORKLOAD_SCOPE = "WORKLOAD_SCOPE",
|
|
36
|
+
INSTANCE_SCOPE = "INSTANCE_SCOPE",
|
|
37
|
+
MIXED = "MIXED",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type Status = {
|
|
41
|
+
name?: string
|
|
42
|
+
value?: number
|
|
43
|
+
properties?: {[key: string]: string}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type NodeMetadata = {
|
|
47
|
+
cluster?: string
|
|
48
|
+
namespace?: string
|
|
49
|
+
service?: string
|
|
50
|
+
name?: string
|
|
51
|
+
layer?: Layer
|
|
52
|
+
properties?: {[key: string]: string}
|
|
53
|
+
clusterName?: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type NodePosition = {
|
|
57
|
+
x?: number
|
|
58
|
+
y?: number
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type Node = {
|
|
62
|
+
id?: string
|
|
63
|
+
parent?: string
|
|
64
|
+
type?: NodeType
|
|
65
|
+
metadata?: NodeMetadata
|
|
66
|
+
position?: NodePosition
|
|
67
|
+
statuses?: Status[]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type Edge = {
|
|
71
|
+
id?: string
|
|
72
|
+
source?: string
|
|
73
|
+
target?: string
|
|
74
|
+
statuses?: Status[]
|
|
75
|
+
properties?: {[key: string]: string}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type Graph = {
|
|
79
|
+
nodes?: Node[]
|
|
80
|
+
edges?: Edge[]
|
|
81
|
+
layer?: Layer
|
|
82
|
+
graphType?: GraphType
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type BaseGraphQuery = {
|
|
86
|
+
clusters?: string[]
|
|
87
|
+
namespaces?: string[]
|
|
88
|
+
services?: string[]
|
|
89
|
+
layer?: Layer
|
|
90
|
+
start?: string
|
|
91
|
+
end?: string
|
|
92
|
+
extensionFilters?: string
|
|
93
|
+
graphType?: GraphType
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type BaseMetricsQuery = {
|
|
97
|
+
cluster?: string
|
|
98
|
+
namespace?: string
|
|
99
|
+
service?: string
|
|
100
|
+
extensionFilters?: string
|
|
101
|
+
endTime?: string
|
|
102
|
+
lookback?: string
|
|
103
|
+
step?: string
|
|
104
|
+
ratePer?: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type NodeMetricResponse = {
|
|
108
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
109
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
110
|
+
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
111
|
+
}
|
|
@@ -17,6 +17,7 @@ export enum TargetType {
|
|
|
17
17
|
TARGET_TYPE_UNSPECIFIED = "TARGET_TYPE_UNSPECIFIED",
|
|
18
18
|
GLOBAL = "GLOBAL",
|
|
19
19
|
CLUSTER = "CLUSTER",
|
|
20
|
+
NAMESPACE = "NAMESPACE",
|
|
20
21
|
NODE = "NODE",
|
|
21
22
|
DEPLOYMENT = "DEPLOYMENT",
|
|
22
23
|
STATEFULSET = "STATEFULSET",
|
|
@@ -47,6 +48,8 @@ export enum AlertStatus {
|
|
|
47
48
|
export type ListRulesRequest = {
|
|
48
49
|
builtin?: boolean
|
|
49
50
|
name?: string
|
|
51
|
+
clusterName?: string
|
|
52
|
+
namespace?: string
|
|
50
53
|
severity?: Severity
|
|
51
54
|
status?: RuleStatus
|
|
52
55
|
page?: number
|
|
@@ -134,9 +137,6 @@ export type CreateRuleRequest = {
|
|
|
134
137
|
export type UpdateRuleRequest = {
|
|
135
138
|
id?: string
|
|
136
139
|
description?: string
|
|
137
|
-
clusterName?: string
|
|
138
|
-
namespace?: string
|
|
139
|
-
targetNames?: string[]
|
|
140
140
|
expr?: string
|
|
141
141
|
thresholdSymbol?: string
|
|
142
142
|
thresholdNum?: string
|
|
@@ -219,10 +219,6 @@ export type CountAlert = {
|
|
|
219
219
|
count?: {[key: string]: string}
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
export type ResolveAlertRequest = {
|
|
223
|
-
alertId?: string[]
|
|
224
|
-
}
|
|
225
|
-
|
|
226
222
|
export type AMHookRequest = {
|
|
227
223
|
version?: string
|
|
228
224
|
groupKey?: string
|
|
@@ -233,6 +229,7 @@ export type AMHookRequest = {
|
|
|
233
229
|
commonAnnotations?: {[key: string]: string}
|
|
234
230
|
externalURL?: string
|
|
235
231
|
alerts?: AmAlert[]
|
|
232
|
+
truncatedAlerts?: string
|
|
236
233
|
}
|
|
237
234
|
|
|
238
235
|
export type AmAlert = {
|
|
@@ -25,7 +25,6 @@ export enum ReceiverType {
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
type BaseReceiver = {
|
|
28
|
-
id?: string
|
|
29
28
|
name?: string
|
|
30
29
|
type?: ReceiverType
|
|
31
30
|
createAt?: string
|
|
@@ -33,7 +32,7 @@ type BaseReceiver = {
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
export type Receiver = BaseReceiver
|
|
36
|
-
& OneOf<{ webhook: WebhookConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
35
|
+
& OneOf<{ webhook: WebhookConfig; email: EmailConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
37
36
|
|
|
38
37
|
export type WebhookConfig = {
|
|
39
38
|
url?: string
|
|
@@ -48,6 +47,10 @@ export type DingtalkConfig = {
|
|
|
48
47
|
webhook?: string
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
export type EmailConfig = {
|
|
51
|
+
to?: string[]
|
|
52
|
+
}
|
|
53
|
+
|
|
51
54
|
export type ListReceiversRequest = {
|
|
52
55
|
type?: ReceiverType
|
|
53
56
|
page?: number
|
|
@@ -55,8 +58,12 @@ export type ListReceiversRequest = {
|
|
|
55
58
|
sorts?: string[]
|
|
56
59
|
}
|
|
57
60
|
|
|
58
|
-
export type
|
|
59
|
-
|
|
61
|
+
export type GetReceiversRequest = {
|
|
62
|
+
name?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type DeleteReceiversRequest = {
|
|
66
|
+
name?: string
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
export type ReceiverDataResponse = {
|
package/log/v1alpha1/log.pb.ts
CHANGED
|
@@ -14,6 +14,13 @@ type OneOf<T> =
|
|
|
14
14
|
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
15
15
|
: never)
|
|
16
16
|
: never);
|
|
17
|
+
|
|
18
|
+
export enum DownloadFileType {
|
|
19
|
+
TEXT = "TEXT",
|
|
20
|
+
CSV = "CSV",
|
|
21
|
+
JSON = "JSON",
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
export type SearchLogRequest = {
|
|
18
25
|
index?: string
|
|
19
26
|
query?: string
|
|
@@ -117,6 +124,16 @@ export type LogHistogramResult = {
|
|
|
117
124
|
count?: string
|
|
118
125
|
}
|
|
119
126
|
|
|
127
|
+
export type DownloadLogRequest = {
|
|
128
|
+
type?: DownloadFileType
|
|
129
|
+
queryLog?: QueryLogRequest
|
|
130
|
+
queryLogConext?: QueryLogContextRequest
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type DownloadLogResponse = {
|
|
134
|
+
url?: string
|
|
135
|
+
}
|
|
136
|
+
|
|
120
137
|
export type ListLogFilePathsResponse = {
|
|
121
138
|
paths?: string[]
|
|
122
139
|
}
|
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export enum ClusterPhase {
|
|
|
14
14
|
RUNNING = "RUNNING",
|
|
15
15
|
UPDATING = "UPDATING",
|
|
16
16
|
DELETING = "DELETING",
|
|
17
|
+
FAILED = "FAILED",
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export enum ClusterProvider {
|
|
@@ -34,6 +35,11 @@ export enum InsightAgentStatus {
|
|
|
34
35
|
UNHEALTHY = "UNHEALTHY",
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export enum Role {
|
|
39
|
+
NOT_ADMIN = "NOT_ADMIN",
|
|
40
|
+
ADMIN = "ADMIN",
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
export type ListClustersResponse = {
|
|
38
44
|
items?: Cluster[]
|
|
39
45
|
}
|
|
@@ -42,12 +48,13 @@ export type Cluster = {
|
|
|
42
48
|
name?: string
|
|
43
49
|
kubeSystemId?: string
|
|
44
50
|
phase?: ClusterPhase
|
|
51
|
+
role?: Role
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
export type ListClusterSummaryRequest = {
|
|
48
55
|
name?: string
|
|
49
56
|
version?: string
|
|
50
|
-
|
|
57
|
+
phase?: ClusterPhase
|
|
51
58
|
page?: number
|
|
52
59
|
pageSize?: number
|
|
53
60
|
}
|
|
@@ -66,8 +73,7 @@ export type ClusterSummary = {
|
|
|
66
73
|
kubeSystemId?: string
|
|
67
74
|
phase?: ClusterPhase
|
|
68
75
|
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
69
|
-
insightAgentStatus?:
|
|
70
|
-
insightAgentCreateTime?: string
|
|
76
|
+
insightAgentStatus?: insightAgentState
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export type ClusterDetail = {
|
|
@@ -82,7 +88,13 @@ export type ClusterDetail = {
|
|
|
82
88
|
statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
83
89
|
daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
84
90
|
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
85
|
-
insightAgentStatus?:
|
|
91
|
+
insightAgentStatus?: insightAgentState
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type insightAgentState = {
|
|
95
|
+
status?: InsightAgentStatus
|
|
96
|
+
version?: string
|
|
97
|
+
createTime?: string
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
export type ListNamespacesRequest = {
|
|
@@ -95,4 +107,5 @@ export type ListNamespacesResponse = {
|
|
|
95
107
|
|
|
96
108
|
export type Namespace = {
|
|
97
109
|
name?: string
|
|
110
|
+
role?: Role
|
|
98
111
|
}
|
|
@@ -15,19 +15,19 @@ export enum CronJobPhase {
|
|
|
15
15
|
CRONJOB_STATE_DELETING = "CRONJOB_STATE_DELETING",
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export enum
|
|
18
|
+
export enum JobState {
|
|
19
19
|
JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
JOB_STATE_WAITING = "JOB_STATE_WAITING",
|
|
21
|
+
JOB_STATE_RUNNING = "JOB_STATE_RUNNING",
|
|
22
|
+
JOB_STATE_COMPLETED = "JOB_STATE_COMPLETED",
|
|
23
|
+
JOB_STATE_DELETING = "JOB_STATE_DELETING",
|
|
24
|
+
JOB_STATE_FAILED = "JOB_STATE_FAILED",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export type ListJobsRequest = {
|
|
28
28
|
cluster?: string
|
|
29
29
|
namespace?: string
|
|
30
|
-
|
|
30
|
+
phase?: JobState
|
|
31
31
|
name?: string
|
|
32
32
|
page?: number
|
|
33
33
|
pageSize?: number
|
|
@@ -52,6 +52,7 @@ export type CronJob = {
|
|
|
52
52
|
phase?: CronJobPhase
|
|
53
53
|
createTimestamp?: string
|
|
54
54
|
jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
55
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
export type CronJobSpec = {
|
|
@@ -80,7 +81,7 @@ export type JobStatus = {
|
|
|
80
81
|
active?: number
|
|
81
82
|
succeed?: number
|
|
82
83
|
failed?: number
|
|
83
|
-
phase?:
|
|
84
|
+
phase?: JobState
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
export type Job = {
|
|
@@ -90,4 +91,5 @@ export type Job = {
|
|
|
90
91
|
status?: JobStatus
|
|
91
92
|
createTimestamp?: string
|
|
92
93
|
jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
94
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
93
95
|
}
|
|
@@ -16,7 +16,7 @@ export enum NodePhase {
|
|
|
16
16
|
|
|
17
17
|
export type ListNodesRequest = {
|
|
18
18
|
cluster?: string
|
|
19
|
-
|
|
19
|
+
phase?: NodePhase
|
|
20
20
|
name?: string
|
|
21
21
|
page?: number
|
|
22
22
|
pageSize?: number
|
|
@@ -44,11 +44,23 @@ export type Node = {
|
|
|
44
44
|
operatingSystem?: string
|
|
45
45
|
address?: string
|
|
46
46
|
creationTimestamp?: string
|
|
47
|
-
|
|
47
|
+
nodeStatus?: NodeStatus
|
|
48
48
|
podSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
49
49
|
usage?: usage
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export type NodeStatus = {
|
|
53
|
+
phase?: NodePhase
|
|
54
|
+
conditions?: NodeCondition[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type NodeCondition = {
|
|
58
|
+
type?: string
|
|
59
|
+
status?: InsightIoApiResourceV1alpha1Type.ConditionStatus
|
|
60
|
+
reason?: string
|
|
61
|
+
message?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
export type usage = {
|
|
53
65
|
cpuCapacity?: string
|
|
54
66
|
cpuAllocated?: number
|
|
@@ -26,7 +26,7 @@ export enum ContainerPhase {
|
|
|
26
26
|
export type ListPodsRequest = {
|
|
27
27
|
cluster?: string
|
|
28
28
|
namespace?: string
|
|
29
|
-
|
|
29
|
+
phase?: PodPhase
|
|
30
30
|
name?: string
|
|
31
31
|
page?: number
|
|
32
32
|
pageSize?: number
|
|
@@ -60,13 +60,14 @@ export type Pod = {
|
|
|
60
60
|
containerNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
61
61
|
podIp?: string
|
|
62
62
|
hostIp?: string
|
|
63
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export type ListContainersRequest = {
|
|
66
67
|
cluster?: string
|
|
67
68
|
namespace?: string
|
|
68
69
|
name?: string
|
|
69
|
-
|
|
70
|
+
phase?: ContainerPhase
|
|
70
71
|
page?: number
|
|
71
72
|
pageSize?: number
|
|
72
73
|
}
|
|
@@ -27,6 +27,7 @@ export type ListServicesRequest = {
|
|
|
27
27
|
name?: string
|
|
28
28
|
page?: number
|
|
29
29
|
pageSize?: number
|
|
30
|
+
tracingEnabled?: boolean
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export type ListServicesResponse = {
|
|
@@ -37,6 +38,7 @@ export type ListServicesResponse = {
|
|
|
37
38
|
export type serviceSummary = {
|
|
38
39
|
name?: string
|
|
39
40
|
namespace?: string
|
|
41
|
+
tracingEnabled?: boolean
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
export type Service = {
|
|
@@ -3,7 +3,24 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
export enum ConditionStatus {
|
|
8
|
+
CONDITION_STATUS_UNSPECIFIED = "CONDITION_STATUS_UNSPECIFIED",
|
|
9
|
+
True = "True",
|
|
10
|
+
False = "False",
|
|
11
|
+
Unknown = "Unknown",
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
export type ResourceNumSummary = {
|
|
7
15
|
totalNum?: number
|
|
8
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
|
|
9
26
|
}
|
|
@@ -26,7 +26,7 @@ export type ListWorkloadsRequest = {
|
|
|
26
26
|
cluster?: string
|
|
27
27
|
namespace?: string
|
|
28
28
|
name?: string
|
|
29
|
-
|
|
29
|
+
phase?: WorkloadPhase
|
|
30
30
|
page?: number
|
|
31
31
|
pageSize?: number
|
|
32
32
|
}
|
|
@@ -50,6 +50,7 @@ export type Workload = {
|
|
|
50
50
|
phase?: WorkloadPhase
|
|
51
51
|
createTimestamp?: string
|
|
52
52
|
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
53
|
+
conditions?: InsightIoApiResourceV1alpha1Type.Condition[]
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export type GetWorkloadRequest = {
|
|
@@ -0,0 +1,86 @@
|
|
|
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 type KeyValue = {
|
|
23
|
+
key?: string
|
|
24
|
+
vType?: ValueType
|
|
25
|
+
vStr?: string
|
|
26
|
+
vBool?: boolean
|
|
27
|
+
vInt64?: string
|
|
28
|
+
vFloat64?: number
|
|
29
|
+
vBinary?: Uint8Array
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type Log = {
|
|
33
|
+
time?: string
|
|
34
|
+
fields?: KeyValue[]
|
|
35
|
+
timestamp?: GoogleProtobufTimestamp.Timestamp
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type SpanRef = {
|
|
39
|
+
traceId?: string
|
|
40
|
+
spanId?: string
|
|
41
|
+
refType?: SpanRefType
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Process = {
|
|
45
|
+
serviceName?: string
|
|
46
|
+
tags?: KeyValue[]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type Span = {
|
|
50
|
+
traceId?: string
|
|
51
|
+
spanId?: string
|
|
52
|
+
operationName?: string
|
|
53
|
+
references?: SpanRef[]
|
|
54
|
+
flags?: number
|
|
55
|
+
startTime?: string
|
|
56
|
+
duration?: string
|
|
57
|
+
tags?: KeyValue[]
|
|
58
|
+
logs?: Log[]
|
|
59
|
+
process?: Process
|
|
60
|
+
processId?: string
|
|
61
|
+
warnings?: string[]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type TraceProcessMapping = {
|
|
65
|
+
processId?: string
|
|
66
|
+
process?: Process
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type Trace = {
|
|
70
|
+
spans?: Span[]
|
|
71
|
+
processMap?: TraceProcessMapping[]
|
|
72
|
+
warnings?: string[]
|
|
73
|
+
traceId?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type Batch = {
|
|
77
|
+
spans?: Span[]
|
|
78
|
+
process?: Process
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type DependencyLink = {
|
|
82
|
+
parent?: string
|
|
83
|
+
child?: string
|
|
84
|
+
callCount?: string
|
|
85
|
+
source?: string
|
|
86
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
export type TracesResponseChunk = {
|
|
9
|
+
traces?: InsightIoApiTracingV1alpha1Model.Trace[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type SpansResponseChunk = {
|
|
13
|
+
spans?: InsightIoApiTracingV1alpha1Model.Span[]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type TraceQueryParameters = {
|
|
17
|
+
serviceName?: string
|
|
18
|
+
operationName?: string
|
|
19
|
+
tags?: {[key: string]: string}
|
|
20
|
+
start?: string
|
|
21
|
+
end?: string
|
|
22
|
+
durationMin?: string
|
|
23
|
+
durationMax?: string
|
|
24
|
+
limit?: number
|
|
25
|
+
cluster?: string
|
|
26
|
+
namespace?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type FindTracesRequest = {
|
|
30
|
+
query?: TraceQueryParameters
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type GetOperationsRequest = {
|
|
34
|
+
service?: string
|
|
35
|
+
spanKind?: string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type Operation = {
|
|
39
|
+
name?: string
|
|
40
|
+
spanKind?: string
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type GetServicesRequest = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GetServicesResponse = {
|
|
47
|
+
services?: string[]
|
|
48
|
+
}
|