@daocloud-proto/insight 0.8.1 → 0.8.2

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.
@@ -91,9 +91,9 @@ export type BaseGraphQuery = {
91
91
  }
92
92
 
93
93
  export type BaseMetricsQuery = {
94
- clusters?: string
95
- namespaces?: string
96
- services?: string
94
+ cluster?: string
95
+ namespace?: string
96
+ service?: string
97
97
  extensionFilters?: string
98
98
  endTime?: string
99
99
  lookback?: string
@@ -101,7 +101,7 @@ export type BaseMetricsQuery = {
101
101
  ratePer?: string
102
102
  }
103
103
 
104
- export type ServiceREDMetricResponse = {
104
+ export type NodeMetricResponse = {
105
105
  reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
106
106
  errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
107
107
  repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
@@ -273,9 +273,9 @@ export class Tracing {
273
273
  }
274
274
  export class GraphQueryService {
275
275
  static GetGraph(req: InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.Graph> {
276
- return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, InsightIoApiGraphV1alpha1Graph.Graph>(`/apis/insight.io/v1alpha1/service_graph/graph?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
276
+ return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, InsightIoApiGraphV1alpha1Graph.Graph>(`/apis/insight.io/v1alpha1/service-graph/graph?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
277
277
  }
278
- static GetREDMetrics(req: InsightIoApiGraphV1alpha1Graph.BaseMetricsQuery, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.ServiceREDMetricResponse> {
279
- return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseMetricsQuery, InsightIoApiGraphV1alpha1Graph.ServiceREDMetricResponse>(`/apis/insight.io/v1alpha1/service_graph/service-RED-metrics?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
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"})
280
280
  }
281
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.8.1",
3
+ "version":"0.8.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {