@daocloud-proto/insight 0.18.1 → 0.18.2-dev1
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.
|
@@ -8,8 +8,8 @@ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
|
8
8
|
|
|
9
9
|
export enum EventType {
|
|
10
10
|
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Normal = "Normal",
|
|
12
|
+
Warning = "Warning",
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export type QueryEventHistogramRequest = {
|
|
@@ -97,7 +97,7 @@ export type Event = {
|
|
|
97
97
|
source?: EventSource
|
|
98
98
|
reportingInstance?: string
|
|
99
99
|
metadata?: EventMetadata
|
|
100
|
-
type?:
|
|
100
|
+
type?: EventType
|
|
101
101
|
firstTimestamp?: string
|
|
102
102
|
involveObject?: EventInvolvedObject
|
|
103
103
|
clusterUuid?: string
|
|
@@ -331,7 +331,7 @@ export class Resource {
|
|
|
331
331
|
return fm.fetchReq<InsightIoApiResourceV1alpha1Pod.GetPodRequest, InsightIoApiResourceV1alpha1Pod.Pod>(`/apis/insight.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pods/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
332
332
|
}
|
|
333
333
|
static GetPodJVMInfo(req: InsightIoApiResourceV1alpha1Pod.PodJVMRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Pod.PodJVMInfo> {
|
|
334
|
-
return fm.fetchReq<InsightIoApiResourceV1alpha1Pod.PodJVMRequest, InsightIoApiResourceV1alpha1Pod.PodJVMInfo>(`/apis/insight.io/v1alpha1/
|
|
334
|
+
return fm.fetchReq<InsightIoApiResourceV1alpha1Pod.PodJVMRequest, InsightIoApiResourceV1alpha1Pod.PodJVMInfo>(`/apis/insight.io/v1alpha1/pods/${req["name"]}/jvm`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
335
335
|
}
|
|
336
336
|
static ListPodContainers(req: InsightIoApiResourceV1alpha1Pod.ListContainersRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Pod.ListContainersResponse> {
|
|
337
337
|
return fm.fetchReq<InsightIoApiResourceV1alpha1Pod.ListContainersRequest, InsightIoApiResourceV1alpha1Pod.ListContainersResponse>(`/apis/insight.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pods/${req["name"]}/containers?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
@@ -351,7 +351,7 @@ export class Resource {
|
|
|
351
351
|
}
|
|
352
352
|
export class Tracing {
|
|
353
353
|
static ListServiceNames(req: InsightIoApiTracingV1alpha1Tracing.ListServiceNamesRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Tracing.GetServiceNamesResponse> {
|
|
354
|
-
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.ListServiceNamesRequest, InsightIoApiTracingV1alpha1Tracing.GetServiceNamesResponse>(`/apis/insight.io/v1alpha1/traces/
|
|
354
|
+
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.ListServiceNamesRequest, InsightIoApiTracingV1alpha1Tracing.GetServiceNamesResponse>(`/apis/insight.io/v1alpha1/traces/service-names?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
355
355
|
}
|
|
356
356
|
static GetServices(req: InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesRequest, initReq?: fm.InitReq): Promise<InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesResponse> {
|
|
357
357
|
return fm.fetchReq<InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesRequest, InsightIoApiSpan_metricV1alpha1Span_metric.GetServicesResponse>(`/apis/insight.io/v1alpha1/traces/clusters/${req["clusterName"]}/services?${fm.renderURLSearchParams(req, ["clusterName"])}`, {...initReq, method: "GET"})
|
package/log/v1alpha1/log.pb.ts
CHANGED
|
@@ -80,6 +80,7 @@ export type LogContextResourceFilter = {
|
|
|
80
80
|
cluster?: string
|
|
81
81
|
pod?: string
|
|
82
82
|
container?: string
|
|
83
|
+
namespace?: string
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
export type LogContextSystemFilter = {
|
|
@@ -127,7 +128,7 @@ export type LogHistogramResult = {
|
|
|
127
128
|
export type DownloadLogRequest = {
|
|
128
129
|
type?: DownloadFileType
|
|
129
130
|
queryLog?: QueryLogRequest
|
|
130
|
-
|
|
131
|
+
queryLogContext?: QueryLogContextRequest
|
|
131
132
|
fields?: string[]
|
|
132
133
|
}
|
|
133
134
|
|
package/package.json
CHANGED
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
8
8
|
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
9
|
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
10
19
|
export enum PodPhase {
|
|
11
20
|
POD_PHASE_UNSPECIFIED = "POD_PHASE_UNSPECIFIED",
|
|
12
21
|
POD_PHASE_UNKNOWN = "POD_PHASE_UNKNOWN",
|
|
@@ -57,8 +66,8 @@ export type GetPodRequest = {
|
|
|
57
66
|
name?: string
|
|
58
67
|
}
|
|
59
68
|
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
|
|
70
|
+
type BasePodJVMRequest = {
|
|
62
71
|
namespace?: string
|
|
63
72
|
name?: string
|
|
64
73
|
start?: string
|
|
@@ -66,6 +75,9 @@ export type PodJVMRequest = {
|
|
|
66
75
|
step?: number
|
|
67
76
|
}
|
|
68
77
|
|
|
78
|
+
export type PodJVMRequest = BasePodJVMRequest
|
|
79
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
80
|
+
|
|
69
81
|
export type Pod = {
|
|
70
82
|
name?: string
|
|
71
83
|
cluster?: string
|
|
@@ -8,9 +8,10 @@ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
|
|
|
8
8
|
import * as InsightIoApiResourceV1alpha1Type from "./type.pb"
|
|
9
9
|
|
|
10
10
|
export enum WorkloadKind {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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",
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export enum WorkloadPhase {
|
|
@@ -51,11 +51,14 @@ type BaseTraceRequestById = {
|
|
|
51
51
|
export type TraceRequestById = BaseTraceRequestById
|
|
52
52
|
& OneOf<{ cluster: string; clusterName: string }>
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
|
|
55
|
+
type BaseListServiceNamesRequest = {
|
|
56
56
|
namespace?: string
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
export type ListServiceNamesRequest = BaseListServiceNamesRequest
|
|
60
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
61
|
+
|
|
59
62
|
export type GetServiceNamesResponse = {
|
|
60
63
|
services?: string[]
|
|
61
64
|
}
|