@daocloud-proto/insight 0.7.8-2 → 0.7.8-8

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,8 +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
-
9
7
  export enum NodeType {
10
8
  NODE_TYPE_UNSPECIFIED = "NODE_TYPE_UNSPECIFIED",
11
9
  CLUSTER = "CLUSTER",
@@ -88,10 +86,4 @@ export type BaseGraphQuery = {
88
86
  start?: string
89
87
  end?: string
90
88
  extensionFilters?: string
91
- }
92
-
93
- export class GraphQueryService {
94
- static GetGraph(req: BaseGraphQuery, initReq?: fm.InitReq): Promise<Graph> {
95
- return fm.fetchReq<BaseGraphQuery, Graph>(`/apis/insight.io/v1alpha1/service_graph/graph?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
96
- }
97
89
  }
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as InsightIoApiFeature_gateV1alpha1Feature_gate from "../../feature_gate/v1alpha1/feature_gate.pb"
8
8
  import * as fm from "../../fetch.pb"
9
+ import * as InsightIoApiGraphV1alpha1Graph from "../../graph/v1alpha1/graph.pb"
9
10
  import * as InsightIoApiLogV1alpha1Log from "../../log/v1alpha1/log.pb"
10
11
  import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
11
12
  import * as InsightIoApiResourceV1alpha1Cluster from "../../resource/v1alpha1/cluster.pb"
@@ -42,6 +43,11 @@ export type GlobalConfig = {
42
43
  traceApdexThreshold?: string
43
44
  }
44
45
 
46
+ export type userinfo = {
47
+ name?: string
48
+ isAdmin?: boolean
49
+ }
50
+
45
51
  export class Insight {
46
52
  static GetVersion(req: empty, initReq?: fm.InitReq): Promise<VersionInfo> {
47
53
  return fm.fetchReq<empty, VersionInfo>(`/apis/insight.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -49,6 +55,9 @@ export class Insight {
49
55
  static GetGlobalConfig(req: empty, initReq?: fm.InitReq): Promise<GlobalConfig> {
50
56
  return fm.fetchReq<empty, GlobalConfig>(`/apis/insight.io/v1alpha1/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
51
57
  }
58
+ static GetUserinfo(req: empty, initReq?: fm.InitReq): Promise<userinfo> {
59
+ return fm.fetchReq<empty, userinfo>(`/apis/insight.io/v1alpha1/userinfo?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
60
+ }
52
61
  }
53
62
  export class FeatureGatesService {
54
63
  static GetFeatureGates(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiFeature_gateV1alpha1Feature_gate.FeatureGatesResp> {
@@ -247,4 +256,9 @@ export class Tracing {
247
256
  static GetOperationDetail(req: InsightIoApiSpan_metricV1alpha1Span_metric.MetricsQueryBaseRequest, initReq?: fm.InitReq): Promise<InsightIoApiSpan_metricV1alpha1Span_metric.GetOperationDetailResponse> {
248
257
  return fm.fetchReq<InsightIoApiSpan_metricV1alpha1Span_metric.MetricsQueryBaseRequest, InsightIoApiSpan_metricV1alpha1Span_metric.GetOperationDetailResponse>(`/apis/insight.io/v1alpha1/traces/operation-detail?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
249
258
  }
259
+ }
260
+ export class GraphQueryService {
261
+ static GetGraph(req: InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.Graph> {
262
+ return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, InsightIoApiGraphV1alpha1Graph.Graph>(`/apis/insight.io/v1alpha1/service_graph/graph?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
263
+ }
250
264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.7.8-2",
3
+ "version":"0.7.8-8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {