@daocloud-proto/insight 0.12.2-8 → 0.12.2-82
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/insight/v1alpha1/insight.pb.ts +3 -0
- package/metric/v1alpha1/metric.pb.ts +24 -6
- package/package.json +1 -1
- package/resource/v1alpha1/service.pb.ts +0 -1
- package/span_metric/v1alpha1/span_metric.pb.ts +20 -4
- package/tracing/v1alpha1/query.pb.ts +14 -12
- package/tracing/v1alpha1/tracing.pb.ts +39 -4
|
@@ -255,6 +255,9 @@ export class Resource {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
export class Tracing {
|
|
258
|
+
static ListServices(req: InsightIoApiTracingV1alpha1Tracing.ListServicesRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Query.GetServicesResponse> {
|
|
259
|
+
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.ListServicesRequest, InsightIoApiTracingV1alpha1Query.GetServicesResponse>(`/apis/insight.io/v1alpha1/traces/clusters/${req["cluster"]}/services?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
260
|
+
}
|
|
258
261
|
static QueryOperations(req: InsightIoApiTracingV1alpha1Tracing.QueryBaseRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Tracing.OperationsQueryResponse> {
|
|
259
262
|
return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.QueryBaseRequest, InsightIoApiTracingV1alpha1Tracing.OperationsQueryResponse>(`/apis/insight.io/v1alpha1/traces/operations?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
260
263
|
}
|
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
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
|
+
|
|
7
16
|
export enum requestStatus {
|
|
8
17
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
9
18
|
SUCCESS = "SUCCESS",
|
|
@@ -25,15 +34,18 @@ export type samplePair = {
|
|
|
25
34
|
value?: string
|
|
26
35
|
}
|
|
27
36
|
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
|
|
38
|
+
type BasePrometheusQueryRequest = {
|
|
30
39
|
namespace?: string
|
|
31
40
|
query?: string
|
|
32
41
|
time?: string
|
|
33
42
|
}
|
|
34
43
|
|
|
35
|
-
export type
|
|
36
|
-
cluster
|
|
44
|
+
export type PrometheusQueryRequest = BasePrometheusQueryRequest
|
|
45
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
type BasePrometheusQueryRangeRequest = {
|
|
37
49
|
namespace?: string
|
|
38
50
|
query?: string
|
|
39
51
|
start?: string
|
|
@@ -41,6 +53,9 @@ export type PrometheusQueryRangeRequest = {
|
|
|
41
53
|
step?: number
|
|
42
54
|
}
|
|
43
55
|
|
|
56
|
+
export type PrometheusQueryRangeRequest = BasePrometheusQueryRangeRequest
|
|
57
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
58
|
+
|
|
44
59
|
export type PrometheusQueryResult = {
|
|
45
60
|
vector?: Sample[]
|
|
46
61
|
}
|
|
@@ -59,12 +74,15 @@ export type BatchQueryRequestParam = {
|
|
|
59
74
|
time?: string
|
|
60
75
|
}
|
|
61
76
|
|
|
62
|
-
|
|
63
|
-
|
|
77
|
+
|
|
78
|
+
type BaseMatchLabel = {
|
|
64
79
|
namespace?: string
|
|
65
80
|
extraLabel?: {[key: string]: string}
|
|
66
81
|
}
|
|
67
82
|
|
|
83
|
+
export type MatchLabel = BaseMatchLabel
|
|
84
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
85
|
+
|
|
68
86
|
export type BatchQueryRequest = {
|
|
69
87
|
param?: BatchQueryRequestParam
|
|
70
88
|
matchLabel?: MatchLabel
|
package/package.json
CHANGED
|
@@ -6,8 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
8
8
|
import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "./otelspankind.pb"
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
|
|
19
|
+
type BaseMetricsQueryBaseRequest = {
|
|
11
20
|
namespace?: string
|
|
12
21
|
instanceName?: string
|
|
13
22
|
extensionFilters?: string
|
|
@@ -20,8 +29,11 @@ export type MetricsQueryBaseRequest = {
|
|
|
20
29
|
spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
21
30
|
}
|
|
22
31
|
|
|
23
|
-
export type
|
|
24
|
-
cluster
|
|
32
|
+
export type MetricsQueryBaseRequest = BaseMetricsQueryBaseRequest
|
|
33
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
type BaseGetApdexRequest = {
|
|
25
37
|
namespace?: string
|
|
26
38
|
name?: string
|
|
27
39
|
apdexThreshold?: string
|
|
@@ -30,8 +42,12 @@ export type GetApdexRequest = {
|
|
|
30
42
|
extensionFilters?: string
|
|
31
43
|
}
|
|
32
44
|
|
|
45
|
+
export type GetApdexRequest = BaseGetApdexRequest
|
|
46
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
47
|
+
|
|
33
48
|
export type MetricsWithOperation = {
|
|
34
49
|
operationName?: string
|
|
50
|
+
spanKind?: string
|
|
35
51
|
metricGroups?: MetricsGroup[]
|
|
36
52
|
}
|
|
37
53
|
|
|
@@ -5,6 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
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);
|
|
8
17
|
export type TracesResponseChunk = {
|
|
9
18
|
traces?: InsightIoApiTracingV1alpha1Model.Trace[]
|
|
10
19
|
}
|
|
@@ -13,7 +22,8 @@ export type SpansResponseChunk = {
|
|
|
13
22
|
spans?: InsightIoApiTracingV1alpha1Model.Span[]
|
|
14
23
|
}
|
|
15
24
|
|
|
16
|
-
|
|
25
|
+
|
|
26
|
+
type BaseTraceQueryParameters = {
|
|
17
27
|
serviceName?: string
|
|
18
28
|
operationName?: string
|
|
19
29
|
tags?: {[key: string]: string}
|
|
@@ -22,24 +32,16 @@ export type TraceQueryParameters = {
|
|
|
22
32
|
durationMin?: string
|
|
23
33
|
durationMax?: string
|
|
24
34
|
limit?: number
|
|
25
|
-
cluster?: string
|
|
26
35
|
namespace?: string
|
|
27
36
|
}
|
|
28
37
|
|
|
38
|
+
export type TraceQueryParameters = BaseTraceQueryParameters
|
|
39
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
40
|
+
|
|
29
41
|
export type FindTracesRequest = {
|
|
30
42
|
query?: TraceQueryParameters
|
|
31
43
|
}
|
|
32
44
|
|
|
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
45
|
export type GetServicesRequest = {
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -3,24 +3,59 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
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 = {
|
|
8
19
|
namespace?: string
|
|
9
20
|
serviceName?: string
|
|
21
|
+
spanKind?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
22
|
+
start?: string
|
|
23
|
+
end?: string
|
|
10
24
|
}
|
|
11
25
|
|
|
26
|
+
export type QueryBaseRequest = BaseQueryBaseRequest
|
|
27
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
28
|
+
|
|
12
29
|
export type BatchQueryBaseRequest = {
|
|
13
30
|
cluster?: string
|
|
14
31
|
namespace?: string
|
|
15
32
|
serviceName?: string[]
|
|
16
33
|
}
|
|
17
34
|
|
|
35
|
+
export type Operation = {
|
|
36
|
+
operation?: string
|
|
37
|
+
spanKind?: string
|
|
38
|
+
callsTotal?: number
|
|
39
|
+
}
|
|
40
|
+
|
|
18
41
|
export type OperationsQueryResponse = {
|
|
19
|
-
operations?:
|
|
42
|
+
operations?: Operation[]
|
|
20
43
|
}
|
|
21
44
|
|
|
22
|
-
|
|
45
|
+
|
|
46
|
+
type BaseTraceRequestById = {
|
|
23
47
|
traceId?: string
|
|
48
|
+
namespace?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type TraceRequestById = BaseTraceRequestById
|
|
52
|
+
& OneOf<{ cluster: string; clusterName: string }>
|
|
53
|
+
|
|
54
|
+
export type ListServicesRequest = {
|
|
24
55
|
cluster?: string
|
|
25
56
|
namespace?: string
|
|
57
|
+
serviceName?: string
|
|
58
|
+
spanKind?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
|
|
59
|
+
start?: string
|
|
60
|
+
end?: string
|
|
26
61
|
}
|