@daocloud-proto/insight 0.18.2-dev1 → 0.19.0-rc1
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.
|
@@ -65,6 +65,7 @@ export type GlobalConfig = {
|
|
|
65
65
|
export type userinfo = {
|
|
66
66
|
name?: string
|
|
67
67
|
isAdmin?: boolean
|
|
68
|
+
isClusterAdmin?: boolean
|
|
68
69
|
canView?: boolean
|
|
69
70
|
resourceTypes?: resourceType[]
|
|
70
71
|
}
|
|
@@ -354,7 +355,7 @@ export class Tracing {
|
|
|
354
355
|
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.ListServiceNamesRequest, InsightIoApiTracingV1alpha1Tracing.GetServiceNamesResponse>(`/apis/insight.io/v1alpha1/traces/service-names?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
355
356
|
}
|
|
356
357
|
static GetServices(req: InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesRequest, initReq?: fm.InitReq): Promise<InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesResponse> {
|
|
357
|
-
return fm.fetchReq<InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesRequest, InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesResponse>(`/apis/insight.io/v1alpha1/traces/
|
|
358
|
+
return fm.fetchReq<InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesRequest, InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesResponse>(`/apis/insight.io/v1alpha1/traces/services?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
358
359
|
}
|
|
359
360
|
static QueryOperations(req: InsightIoApiTracingV1alpha1Tracing.QueryOperationsRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Tracing.QueryOperationsResponse> {
|
|
360
361
|
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.QueryOperationsRequest, InsightIoApiTracingV1alpha1Tracing.QueryOperationsResponse>(`/apis/insight.io/v1alpha1/traces/clusters/${req["clusterName"]}/operations?${fm.renderURLSearchParams(req, ["clusterName"])}`, {...initReq, method: "GET"})
|
package/log/v1alpha1/log.pb.ts
CHANGED
|
@@ -21,6 +21,17 @@ export enum DownloadFileType {
|
|
|
21
21
|
JSON = "JSON",
|
|
22
22
|
}
|
|
23
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
|
+
|
|
24
35
|
export type SearchLogRequest = {
|
|
25
36
|
index?: string
|
|
26
37
|
query?: string
|
|
@@ -129,7 +140,7 @@ export type DownloadLogRequest = {
|
|
|
129
140
|
type?: DownloadFileType
|
|
130
141
|
queryLog?: QueryLogRequest
|
|
131
142
|
queryLogContext?: QueryLogContextRequest
|
|
132
|
-
fields?:
|
|
143
|
+
fields?: LogField[]
|
|
133
144
|
}
|
|
134
145
|
|
|
135
146
|
export type DownloadLogResponse = {
|
package/package.json
CHANGED
|
@@ -41,8 +41,9 @@ export enum InsightAgentStatus {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export enum Role {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
ROLE_UNSPECIFIED = "ROLE_UNSPECIFIED",
|
|
45
|
+
ROLE_VIEWER = "ROLE_VIEWER",
|
|
46
|
+
ROLE_ADMIN = "ROLE_ADMIN",
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export enum serverComponentName {
|
|
@@ -98,6 +99,7 @@ export type ClusterSummary = {
|
|
|
98
99
|
phase?: ClusterPhase
|
|
99
100
|
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
100
101
|
insightAgentStatus?: insightAgentState
|
|
102
|
+
role?: Role
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
export type ClusterDetail = {
|
|
@@ -119,6 +121,7 @@ export type insightAgentState = {
|
|
|
119
121
|
status?: InsightAgentStatus
|
|
120
122
|
version?: string
|
|
121
123
|
createTime?: string
|
|
124
|
+
traceStatus?: InsightAgentStatus
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
export type ListNamespacesRequest = {
|
|
@@ -85,7 +85,8 @@ export type GetOperationDetailResponse = {
|
|
|
85
85
|
pagination?: InsightIoApiTypeV1alpha1Page.Pagination
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
|
|
89
|
+
type BaseGetServicesRequest = {
|
|
89
90
|
namespace?: string
|
|
90
91
|
extensionFilters?: string
|
|
91
92
|
endTime?: string
|
|
@@ -94,9 +95,11 @@ export type GetServicesRequest = {
|
|
|
94
95
|
page?: number
|
|
95
96
|
pageSize?: number
|
|
96
97
|
sort?: string
|
|
97
|
-
clusterName?: string
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
export type GetServicesRequest = BaseGetServicesRequest
|
|
101
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
102
|
+
|
|
100
103
|
export type ServiceItem = {
|
|
101
104
|
serviceName?: string
|
|
102
105
|
namespace?: string
|