@daocloud-proto/insight 0.8.0-7 → 0.8.1-11
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.
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as fm from "../../fetch.pb"
|
|
8
7
|
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
9
8
|
|
|
10
9
|
export enum NodeType {
|
|
@@ -92,9 +91,9 @@ export type BaseGraphQuery = {
|
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
export type BaseMetricsQuery = {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
cluster?: string
|
|
95
|
+
namespace?: string
|
|
96
|
+
service?: string
|
|
98
97
|
extensionFilters?: string
|
|
99
98
|
endTime?: string
|
|
100
99
|
lookback?: string
|
|
@@ -102,17 +101,8 @@ export type BaseMetricsQuery = {
|
|
|
102
101
|
ratePer?: string
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
export type
|
|
104
|
+
export type NodeMetricResponse = {
|
|
106
105
|
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
107
106
|
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
108
107
|
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export class GraphQueryService {
|
|
112
|
-
static GetGraph(req: BaseGraphQuery, initReq?: fm.InitReq): Promise<Graph> {
|
|
113
|
-
return fm.fetchReq<BaseGraphQuery, Graph>(`/apis/insight.io/v1alpha1/service_graph/graph?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
114
|
-
}
|
|
115
|
-
static GetREDMetrics(req: BaseMetricsQuery, initReq?: fm.InitReq): Promise<ServiceREDMetricResponse> {
|
|
116
|
-
return fm.fetchReq<BaseMetricsQuery, ServiceREDMetricResponse>(`/apis/insight.io/v1alpha1/service_graph/service-RED-metrics?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
117
|
-
}
|
|
118
108
|
}
|
|
@@ -48,6 +48,14 @@ export type userinfo = {
|
|
|
48
48
|
isAdmin?: boolean
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
export type helmInstallConfigRequest = {
|
|
52
|
+
version?: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type helmInstallConfigResponse = {
|
|
56
|
+
values?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
51
59
|
export class Insight {
|
|
52
60
|
static GetVersion(req: empty, initReq?: fm.InitReq): Promise<VersionInfo> {
|
|
53
61
|
return fm.fetchReq<empty, VersionInfo>(`/apis/insight.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -58,6 +66,9 @@ export class Insight {
|
|
|
58
66
|
static GetUserinfo(req: empty, initReq?: fm.InitReq): Promise<userinfo> {
|
|
59
67
|
return fm.fetchReq<empty, userinfo>(`/apis/insight.io/v1alpha1/userinfo?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
60
68
|
}
|
|
69
|
+
static GetHelmInstallConfig(req: helmInstallConfigRequest, initReq?: fm.InitReq): Promise<helmInstallConfigResponse> {
|
|
70
|
+
return fm.fetchReq<helmInstallConfigRequest, helmInstallConfigResponse>(`/apis/insight.io/v1alpha1/agentinstallparam?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
71
|
+
}
|
|
61
72
|
}
|
|
62
73
|
export class FeatureGatesService {
|
|
63
74
|
static GetFeatureGates(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiFeature_gateV1alpha1Feature_gate.FeatureGatesResp> {
|
|
@@ -262,6 +273,9 @@ export class Tracing {
|
|
|
262
273
|
}
|
|
263
274
|
export class GraphQueryService {
|
|
264
275
|
static GetGraph(req: InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.Graph> {
|
|
265
|
-
return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, InsightIoApiGraphV1alpha1Graph.Graph>(`/apis/insight.io/v1alpha1/
|
|
276
|
+
return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, InsightIoApiGraphV1alpha1Graph.Graph>(`/apis/insight.io/v1alpha1/service-graph/graph?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
277
|
+
}
|
|
278
|
+
static GetNodeMetrics(req: InsightIoApiGraphV1alpha1Graph.BaseMetricsQuery, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.NodeMetricResponse> {
|
|
279
|
+
return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseMetricsQuery, InsightIoApiGraphV1alpha1Graph.NodeMetricResponse>(`/apis/insight.io/v1alpha1/service-graph/node-metrics?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
266
280
|
}
|
|
267
281
|
}
|