@daocloud-proto/insight 0.12.2-72 → 0.12.2-76
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/metric/v1alpha1/metric.pb.ts +24 -6
- package/package.json +1 -1
|
@@ -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
|