@daocloud-proto/insight 0.14.0-dev-ab585502 → 0.14.0-dev-9d78d760

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.
@@ -8,6 +8,7 @@ export enum FeatureGateIDEnum {
8
8
  METRICS = "METRICS",
9
9
  LOGGING = "LOGGING",
10
10
  TRACING = "TRACING",
11
+ GRAPH_VIRTUAL_NODE = "GRAPH_VIRTUAL_NODE",
11
12
  }
12
13
 
13
14
  export type FeatureGateID = {
@@ -150,6 +150,7 @@ export type BaseGraphQuery = {
150
150
  graphType?: GraphType
151
151
  clusterNames?: string[]
152
152
  filters?: Filter
153
+ showVirtualNode?: boolean
153
154
  }
154
155
 
155
156
  export type BaseMetricsQuery = {
@@ -20,6 +20,7 @@ import * as InsightIoApiTracingV1alpha1Query from "../../tracing/v1alpha1/query.
20
20
  import * as InsightIoApiTracingV1alpha1Tracing from "../../tracing/v1alpha1/tracing.pb"
21
21
  import * as InsightIoApiInsightV1alpha1Alert from "./alert.pb"
22
22
  import * as InsightIoApiInsightV1alpha1Notify from "./notify.pb"
23
+ import * as InsightIoApiInsightV1alpha1Silence from "./silence.pb"
23
24
  export type empty = {
24
25
  }
25
26
 
@@ -151,6 +152,24 @@ export class Alert {
151
152
  static DeleteTemplate(req: InsightIoApiInsightV1alpha1Alert.TemplateName, initReq?: fm.InitReq): Promise<empty> {
152
153
  return fm.fetchReq<InsightIoApiInsightV1alpha1Alert.TemplateName, empty>(`/apis/insight.io/v1alpha1/alert/templates/${req["name"]}`, {...initReq, method: "DELETE"})
153
154
  }
155
+ static ListSilences(req: InsightIoApiInsightV1alpha1Silence.ListSilencesRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Silence.ListSilencesResponse> {
156
+ return fm.fetchReq<InsightIoApiInsightV1alpha1Silence.ListSilencesRequest, InsightIoApiInsightV1alpha1Silence.ListSilencesResponse>(`/apis/insight.io/v1alpha1/alert/silences?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
157
+ }
158
+ static GetSilence(req: InsightIoApiInsightV1alpha1Silence.SilenceName, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Silence.Silence> {
159
+ return fm.fetchReq<InsightIoApiInsightV1alpha1Silence.SilenceName, InsightIoApiInsightV1alpha1Silence.Silence>(`/apis/insight.io/v1alpha1/alert/silences/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
160
+ }
161
+ static CreateSilence(req: InsightIoApiInsightV1alpha1Silence.CreateSilenceRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Silence.Silence> {
162
+ return fm.fetchReq<InsightIoApiInsightV1alpha1Silence.CreateSilenceRequest, InsightIoApiInsightV1alpha1Silence.Silence>(`/apis/insight.io/v1alpha1/alert/silences`, {...initReq, method: "POST", body: JSON.stringify(req)})
163
+ }
164
+ static PreviewSilence(req: InsightIoApiInsightV1alpha1Silence.PreviewSilenceRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Silence.PreviewSilenceResponse> {
165
+ return fm.fetchReq<InsightIoApiInsightV1alpha1Silence.PreviewSilenceRequest, InsightIoApiInsightV1alpha1Silence.PreviewSilenceResponse>(`/apis/insight.io/v1alpha1/alert/silences/preview`, {...initReq, method: "POST", body: JSON.stringify(req)})
166
+ }
167
+ static UpdateSilence(req: InsightIoApiInsightV1alpha1Silence.UpdateSilenceRequest, initReq?: fm.InitReq): Promise<InsightIoApiInsightV1alpha1Silence.Silence> {
168
+ return fm.fetchReq<InsightIoApiInsightV1alpha1Silence.UpdateSilenceRequest, InsightIoApiInsightV1alpha1Silence.Silence>(`/apis/insight.io/v1alpha1/alert/silences/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
169
+ }
170
+ static DeleteSilence(req: InsightIoApiInsightV1alpha1Silence.SilenceName, initReq?: fm.InitReq): Promise<empty> {
171
+ return fm.fetchReq<InsightIoApiInsightV1alpha1Silence.SilenceName, empty>(`/apis/insight.io/v1alpha1/alert/silences/${req["name"]}`, {...initReq, method: "DELETE"})
172
+ }
154
173
  }
155
174
  export class Log {
156
175
  static SearchLog(req: InsightIoApiLogV1alpha1Log.SearchLogRequest, initReq?: fm.InitReq): Promise<InsightIoApiLogV1alpha1Log.SearchLogResponse> {
@@ -0,0 +1,78 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as InsightIoApiInsightV1alpha1Alert from "./alert.pb"
8
+
9
+ export enum matchType {
10
+ MATCH_TYPE_UNSPECIFIED = "MATCH_TYPE_UNSPECIFIED",
11
+ EQUAL = "EQUAL",
12
+ NOT_EQUAL = "NOT_EQUAL",
13
+ REGEXP = "REGEXP",
14
+ }
15
+
16
+ export type SilenceName = {
17
+ name?: string
18
+ }
19
+
20
+ export type CreateSilenceRequest = {
21
+ name?: string
22
+ clusterName?: string
23
+ namespace?: string
24
+ description?: string
25
+ matches?: match[]
26
+ activeTimeInterval?: timeInterval
27
+ }
28
+
29
+ export type Silence = {
30
+ name?: string
31
+ clusterName?: string
32
+ namespace?: string
33
+ description?: string
34
+ matches?: match[]
35
+ activeTimeInterval?: timeInterval
36
+ createAt?: string
37
+ updateAt?: string
38
+ }
39
+
40
+ export type UpdateSilenceRequest = {
41
+ name?: string
42
+ description?: string
43
+ matches?: match[]
44
+ activeTimeInterval?: timeInterval
45
+ }
46
+
47
+ export type match = {
48
+ type?: matchType
49
+ key?: string
50
+ value?: string
51
+ }
52
+
53
+ export type ListSilencesRequest = {
54
+ expired?: boolean
55
+ name?: string
56
+ clusterName?: string
57
+ namespace?: string
58
+ }
59
+
60
+ export type ListSilencesResponse = {
61
+ items?: Silence[]
62
+ }
63
+
64
+ export type PreviewSilenceRequest = {
65
+ clusterName?: string
66
+ namespace?: string
67
+ matches?: match[]
68
+ }
69
+
70
+ export type PreviewSilenceResponse = {
71
+ items?: InsightIoApiInsightV1alpha1Alert.AlertSummary[]
72
+ }
73
+
74
+ export type timeInterval = {
75
+ start?: string
76
+ end?: string
77
+ weekdayRange?: number[]
78
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.14.0-dev-ab585502",
3
+ "version":"0.14.0-dev-9d78d760",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {