@daocloud-proto/insight 0.22.1 → 0.23.0-rc1

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.
@@ -397,12 +397,27 @@ export type RuleTemplate = {
397
397
  updateAt?: string
398
398
  }
399
399
 
400
+ export type RuleTemplateSummary = {
401
+ id?: string
402
+ name?: string
403
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
404
+ }
405
+
406
+ export type ListRuleTemplateSummaryRequest = {
407
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
408
+ }
409
+
410
+ export type ListRuleTemplateSummaryResponse = {
411
+ items?: RuleTemplateSummary[]
412
+ }
413
+
400
414
  export type ListRuleTemplatesRequest = {
401
415
  builtin?: boolean
402
416
  name?: string
403
417
  page?: number
404
418
  pageSize?: number
405
419
  sorts?: string[]
420
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
406
421
  }
407
422
 
408
423
  export type ListRuleTemplatesResponse = {
@@ -10,6 +10,7 @@ export enum FeatureGateIDEnum {
10
10
  TRACING = "TRACING",
11
11
  GRAPH_VIRTUAL_NODE = "GRAPH_VIRTUAL_NODE",
12
12
  LOG_ALERT = "LOG_ALERT",
13
+ NET_FLOW = "NET_FLOW",
13
14
  }
14
15
 
15
16
  export type FeatureGateID = {
@@ -13,6 +13,7 @@ import * as fm from "../../fetch.pb"
13
13
  import * as InsightIoApiGraphV1alpha1Graph from "../../graph/v1alpha1/graph.pb"
14
14
  import * as InsightIoApiLogV1alpha1Log from "../../log/v1alpha1/log.pb"
15
15
  import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
16
+ import * as InsightIoApiNet_flowV1alpha1Net_flow from "../../net_flow/v1alpha1/net_flow.pb"
16
17
  import * as InsightIoApiOverviewV1alpha1Overview from "../../overview/v1alpha1/overview.pb"
17
18
  import * as InsightIoApiProbesV1alpha1Probe from "../../probes/v1alpha1/probe.pb"
18
19
  import * as InsightIoApiResourceV1alpha1Cluster from "../../resource/v1alpha1/cluster.pb"
@@ -40,6 +41,7 @@ export enum resourceType {
40
41
  dataCollection = "dataCollection",
41
42
  systemComponents = "systemComponents",
42
43
  systemSettings = "systemSettings",
44
+ netFlow = "netFlow",
43
45
  }
44
46
 
45
47
  export type empty = {
@@ -232,6 +234,9 @@ export class Alert {
232
234
  static DeleteSilence(req: InsightIoApiAlertV1alpha1Alert.ID, initReq?: fm.InitReq): Promise<empty> {
233
235
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, empty>(`/apis/insight.io/v1alpha1/alert/silences/${req["id"]}`, {...initReq, method: "DELETE"})
234
236
  }
237
+ static ListRuleTemplateSummary(req: InsightIoApiAlertV1alpha1Alert.ListRuleTemplateSummaryRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.ListRuleTemplateSummaryResponse> {
238
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListRuleTemplateSummaryRequest, InsightIoApiAlertV1alpha1Alert.ListRuleTemplateSummaryResponse>(`/apis/insight.io/v1alpha1/alert/rule-template-summary?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
239
+ }
235
240
  static ListRuleTemplates(req: InsightIoApiAlertV1alpha1Alert.ListRuleTemplatesRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.ListRuleTemplatesResponse> {
236
241
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListRuleTemplatesRequest, InsightIoApiAlertV1alpha1Alert.ListRuleTemplatesResponse>(`/apis/insight.io/v1alpha1/alert/rule-templates?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
237
242
  }
@@ -461,4 +466,9 @@ export class Overview {
461
466
  static GetServicesMonitor(req: InsightIoApiOverviewV1alpha1Overview.GetServicesMonitorRequest, initReq?: fm.InitReq): Promise<InsightIoApiOverviewV1alpha1Overview.GetServicesMonitorResponse> {
462
467
  return fm.fetchReq<InsightIoApiOverviewV1alpha1Overview.GetServicesMonitorRequest, InsightIoApiOverviewV1alpha1Overview.GetServicesMonitorResponse>(`/apis/insight.io/v1alpha1/overview/services/monitor?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
463
468
  }
469
+ }
470
+ export class NetFlow {
471
+ static GetNetFlow(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiNet_flowV1alpha1Net_flow.GetConfigResponse> {
472
+ return fm.fetchReq<empty, InsightIoApiNet_flowV1alpha1Net_flow.GetConfigResponse>(`/apis/insight.io/v1alpha1/net_flow/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
473
+ }
464
474
  }
@@ -0,0 +1,8 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+ export type GetConfigResponse = {
7
+ grafanaUrl?: string
8
+ }
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
8
+ import * as InsightIoApiSpan_metricV1alpha1Otelspankind from "../../span_metric/v1alpha1/otelspankind.pb"
8
9
 
9
10
  export enum GetResourcesCountRequestResourcesFilter {
10
11
  RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
@@ -86,6 +87,7 @@ export type GetServicesMonitorRequest = {
86
87
  filters?: GetServicesMonitorRequestMonitorFilter[]
87
88
  limit?: number
88
89
  time?: string
90
+ spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
89
91
  }
90
92
 
91
93
  export type GetServicesMonitorResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.22.1",
3
+ "version":"0.23.0-rc1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {