@daocloud-proto/insight 0.41.4-2-g3f73d56 → 0.41.4

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.
@@ -269,9 +269,6 @@ export type AlertSummary = {
269
269
  value?: string
270
270
  notifyResponse?: string
271
271
  description?: string
272
- promQL?: string
273
- labels?: {[key: string]: string}
274
- annotations?: {[key: string]: string}
275
272
  startAt?: string
276
273
  updateAt?: string
277
274
  lastSent?: string
@@ -310,8 +307,6 @@ export type Alert = {
310
307
  startAt?: string
311
308
  updateAt?: string
312
309
  lastSent?: string
313
- builtin?: boolean
314
- status?: InsightIoApiAlertV1alpha1Type.AlertStatus
315
310
  notifyStatus?: NotifyStatus
316
311
  }
317
312
 
@@ -429,37 +424,4 @@ export type UpdateRuleTemplateRequest = {
429
424
  id?: string
430
425
  description?: string
431
426
  rules?: CreateGroupRule[]
432
- }
433
-
434
- export type ListFiringRulesRequest = {
435
- expandAlerts?: boolean
436
- groupName?: string
437
- groupId?: string
438
- ruleName?: string
439
- ruleId?: string
440
- clusterName?: string
441
- namespace?: string
442
- severity?: InsightIoApiAlertV1alpha1Type.Severity
443
- targetType?: InsightIoApiAlertV1alpha1Type.TargetType
444
- target?: string
445
- page?: number
446
- pageSize?: number
447
- sorts?: string[]
448
- }
449
-
450
- export type ListFiringRulesResponse = {
451
- items?: FiringRule[]
452
- pagination?: InsightIoApiTypeV1alpha1Page.Pagination
453
- }
454
-
455
- export type FiringRule = {
456
- groupId?: string
457
- groupName?: string
458
- builtin?: boolean
459
- ruleId?: string
460
- ruleName?: string
461
- severity?: InsightIoApiAlertV1alpha1Type.Severity
462
- alertCount?: number
463
- latestStartAt?: string
464
- alerts?: Alert[]
465
427
  }
package/fetch.pb.ts CHANGED
@@ -4,119 +4,10 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- /**
8
- * base64 encoder and decoder
9
- * Copied and adapted from https://github.com/protobufjs/protobuf.js/blob/master/lib/base64/index.js
10
- */
11
- // Base64 encoding table
12
- const b64 = new Array(64);
13
-
14
- // Base64 decoding table
15
- const s64 = new Array(123);
16
-
17
- // 65..90, 97..122, 48..57, 43, 47
18
- for (let i = 0; i < 64;)
19
- s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
20
-
21
- export function b64Encode(buffer: Uint8Array, start: number, end: number): string {
22
- let parts: string[] = null;
23
- const chunk = [];
24
- let i = 0, // output index
25
- j = 0, // goto index
26
- t; // temporary
27
- while (start < end) {
28
- const b = buffer[start++];
29
- switch (j) {
30
- case 0:
31
- chunk[i++] = b64[b >> 2];
32
- t = (b & 3) << 4;
33
- j = 1;
34
- break;
35
- case 1:
36
- chunk[i++] = b64[t | b >> 4];
37
- t = (b & 15) << 2;
38
- j = 2;
39
- break;
40
- case 2:
41
- chunk[i++] = b64[t | b >> 6];
42
- chunk[i++] = b64[b & 63];
43
- j = 0;
44
- break;
45
- }
46
- if (i > 8191) {
47
- (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
48
- i = 0;
49
- }
50
- }
51
- if (j) {
52
- chunk[i++] = b64[t];
53
- chunk[i++] = 61;
54
- if (j === 1)
55
- chunk[i++] = 61;
56
- }
57
- if (parts) {
58
- if (i)
59
- parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
60
- return parts.join("");
61
- }
62
- return String.fromCharCode.apply(String, chunk.slice(0, i));
63
- }
64
-
65
- const invalidEncoding = "invalid encoding";
66
-
67
- export function b64Decode(s: string): Uint8Array {
68
- const buffer = [];
69
- let offset = 0;
70
- let j = 0, // goto index
71
- t; // temporary
72
- for (let i = 0; i < s.length;) {
73
- let c = s.charCodeAt(i++);
74
- if (c === 61 && j > 1)
75
- break;
76
- if ((c = s64[c]) === undefined)
77
- throw Error(invalidEncoding);
78
- switch (j) {
79
- case 0:
80
- t = c;
81
- j = 1;
82
- break;
83
- case 1:
84
- buffer[offset++] = t << 2 | (c & 48) >> 4;
85
- t = c;
86
- j = 2;
87
- break;
88
- case 2:
89
- buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
90
- t = c;
91
- j = 3;
92
- break;
93
- case 3:
94
- buffer[offset++] = (t & 3) << 6 | c;
95
- j = 0;
96
- break;
97
- }
98
- }
99
- if (j === 1)
100
- throw Error(invalidEncoding);
101
- return new Uint8Array(buffer);
102
- }
103
-
104
- function b64Test(s: string): boolean {
105
- return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(s);
106
- }
107
-
108
7
  export interface InitReq extends RequestInit {
109
8
  pathPrefix?: string
110
9
  }
111
10
 
112
- export function replacer(key: any, value: any): any {
113
- if(value && value.constructor === Uint8Array) {
114
- return b64Encode(value, 0, value.length);
115
- }
116
-
117
- return value;
118
- }
119
-
120
11
  export function fetchReq<I, O>(path: string, init?: InitReq): Promise<O> {
121
12
  const {pathPrefix, ...req} = init || {}
122
13
 
@@ -96,13 +96,6 @@ export type helmInstallConfigResponse = {
96
96
  values?: string
97
97
  }
98
98
 
99
- export type PreferenceConfig = {
100
- traceApdexThreshold?: string
101
- errorRateThresholds?: number[]
102
- latencyThresholds?: number[]
103
- slowSqlThreshold?: number
104
- }
105
-
106
99
  export class Insight {
107
100
  static GetVersion(req: empty, initReq?: fm.InitReq): Promise<VersionInfo> {
108
101
  return fm.fetchReq<empty, VersionInfo>(`/apis/insight.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -110,17 +103,14 @@ export class Insight {
110
103
  static GetGlobalConfig(req: empty, initReq?: fm.InitReq): Promise<GlobalConfig> {
111
104
  return fm.fetchReq<empty, GlobalConfig>(`/apis/insight.io/v1alpha1/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
112
105
  }
113
- static GetPreferenceConfig(req: empty, initReq?: fm.InitReq): Promise<PreferenceConfig> {
114
- return fm.fetchReq<empty, PreferenceConfig>(`/apis/insight.io/v1alpha1/config/preference?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
115
- }
116
106
  static UpdateGlobalConfig(req: GlobalConfig, initReq?: fm.InitReq): Promise<GlobalConfig> {
117
- return fm.fetchReq<GlobalConfig, GlobalConfig>(`/apis/insight.io/v1alpha1/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
107
+ return fm.fetchReq<GlobalConfig, GlobalConfig>(`/apis/insight.io/v1alpha1/config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
118
108
  }
119
109
  static GetUserinfo(req: empty, initReq?: fm.InitReq): Promise<userinfo> {
120
110
  return fm.fetchReq<empty, userinfo>(`/apis/insight.io/v1alpha1/userinfo?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
121
111
  }
122
112
  static GetHelmInstallConfig(req: helmInstallConfigRequest, initReq?: fm.InitReq): Promise<helmInstallConfigResponse> {
123
- return fm.fetchReq<helmInstallConfigRequest, helmInstallConfigResponse>(`/apis/insight.io/v1alpha1/agentinstallparam`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
113
+ return fm.fetchReq<helmInstallConfigRequest, helmInstallConfigResponse>(`/apis/insight.io/v1alpha1/agentinstallparam`, {...initReq, method: "POST", body: JSON.stringify(req)})
124
114
  }
125
115
  }
126
116
  export class FeatureGate {
@@ -136,19 +126,19 @@ export class Alert {
136
126
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListGroupsRequest, InsightIoApiAlertV1alpha1Alert.ListGroupsResponse>(`/apis/insight.io/v1alpha1/alert/groups?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
137
127
  }
138
128
  static CreateGroup(req: InsightIoApiAlertV1alpha1Alert.CreateGroupRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.Group> {
139
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.CreateGroupRequest, InsightIoApiAlertV1alpha1Alert.Group>(`/apis/insight.io/v1alpha1/alert/groups`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
129
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.CreateGroupRequest, InsightIoApiAlertV1alpha1Alert.Group>(`/apis/insight.io/v1alpha1/alert/groups`, {...initReq, method: "POST", body: JSON.stringify(req)})
140
130
  }
141
131
  static ValidateGroup(req: InsightIoApiAlertV1alpha1Alert.ValidateGroupRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.ValidateGroupResponse> {
142
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ValidateGroupRequest, InsightIoApiAlertV1alpha1Alert.ValidateGroupResponse>(`/apis/insight.io/v1alpha1/alert/groups/validate`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
132
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ValidateGroupRequest, InsightIoApiAlertV1alpha1Alert.ValidateGroupResponse>(`/apis/insight.io/v1alpha1/alert/groups/validate`, {...initReq, method: "POST", body: JSON.stringify(req)})
143
133
  }
144
134
  static PreviewRule(req: InsightIoApiAlertV1alpha1Alert.PreviewRuleRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.PreviewRuleResponse> {
145
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.PreviewRuleRequest, InsightIoApiAlertV1alpha1Alert.PreviewRuleResponse>(`/apis/insight.io/v1alpha1/alert/rules/preview`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
135
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.PreviewRuleRequest, InsightIoApiAlertV1alpha1Alert.PreviewRuleResponse>(`/apis/insight.io/v1alpha1/alert/rules/preview`, {...initReq, method: "POST", body: JSON.stringify(req)})
146
136
  }
147
137
  static GetGroup(req: InsightIoApiAlertV1alpha1Alert.ID, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.Group> {
148
138
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, InsightIoApiAlertV1alpha1Alert.Group>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
149
139
  }
150
140
  static UpdateGroup(req: InsightIoApiAlertV1alpha1Alert.UpdateGroupRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.Group> {
151
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.UpdateGroupRequest, InsightIoApiAlertV1alpha1Alert.Group>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
141
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.UpdateGroupRequest, InsightIoApiAlertV1alpha1Alert.Group>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
152
142
  }
153
143
  static DeleteGroup(req: InsightIoApiAlertV1alpha1Alert.ID, initReq?: fm.InitReq): Promise<empty> {
154
144
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, empty>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}`, {...initReq, method: "DELETE"})
@@ -157,7 +147,7 @@ export class Alert {
157
147
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListGroupRulesRequest, InsightIoApiAlertV1alpha1Alert.ListRulesResponse>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
158
148
  }
159
149
  static AddGroupRule(req: InsightIoApiAlertV1alpha1Alert.AddGroupRuleRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.Rule> {
160
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.AddGroupRuleRequest, InsightIoApiAlertV1alpha1Alert.Rule>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
150
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.AddGroupRuleRequest, InsightIoApiAlertV1alpha1Alert.Rule>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules`, {...initReq, method: "POST", body: JSON.stringify(req)})
161
151
  }
162
152
  static GetGroupRule(req: InsightIoApiAlertV1alpha1Alert.GroupRule, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.Rule> {
163
153
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.GroupRule, InsightIoApiAlertV1alpha1Alert.Rule>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules/${req["name"]}?${fm.renderURLSearchParams(req, ["id", "name"])}`, {...initReq, method: "GET"})
@@ -166,7 +156,7 @@ export class Alert {
166
156
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.GroupRule, empty>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules/${req["name"]}`, {...initReq, method: "DELETE"})
167
157
  }
168
158
  static UpdateGroupRule(req: InsightIoApiAlertV1alpha1Alert.UpdateRuleRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.Rule> {
169
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.UpdateRuleRequest, InsightIoApiAlertV1alpha1Alert.Rule>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
159
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.UpdateRuleRequest, InsightIoApiAlertV1alpha1Alert.Rule>(`/apis/insight.io/v1alpha1/alert/groups/${req["id"]}/rules/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
170
160
  }
171
161
  static ListAlerts(req: InsightIoApiAlertV1alpha1Alert.ListAlertsRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.ListAlertsResponse> {
172
162
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListAlertsRequest, InsightIoApiAlertV1alpha1Alert.ListAlertsResponse>(`/apis/insight.io/v1alpha1/alert/alerts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -177,11 +167,8 @@ export class Alert {
177
167
  static CountAlert(req: InsightIoApiAlertV1alpha1Alert.CountAlertRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.CountAlertResponse> {
178
168
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.CountAlertRequest, InsightIoApiAlertV1alpha1Alert.CountAlertResponse>(`/apis/insight.io/v1alpha1/alert/alertcount?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
179
169
  }
180
- static ListFiringRules(req: InsightIoApiAlertV1alpha1Alert.ListFiringRulesRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.ListFiringRulesResponse> {
181
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ListFiringRulesRequest, InsightIoApiAlertV1alpha1Alert.ListFiringRulesResponse>(`/apis/insight.io/v1alpha1/alert/alerts/firing-rules?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
182
- }
183
170
  static AlertHook(req: InsightIoApiAlertV1alpha1Type.AMHookRequest, initReq?: fm.InitReq): Promise<empty> {
184
- return fm.fetchReq<InsightIoApiAlertV1alpha1Type.AMHookRequest, empty>(`/apis/insight.io/v1alpha1/alert/hook`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
171
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Type.AMHookRequest, empty>(`/apis/insight.io/v1alpha1/alert/hook`, {...initReq, method: "POST", body: JSON.stringify(req)})
185
172
  }
186
173
  static CleanAlertHistory(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.CleanAlertHistoryResponse> {
187
174
  return fm.fetchReq<empty, InsightIoApiAlertV1alpha1Alert.CleanAlertHistoryResponse>(`/apis/insight.io/v1alpha1/alert/history/clean`, {...initReq, method: "PUT"})
@@ -193,13 +180,13 @@ export class Alert {
193
180
  return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.GetReceiversRequest, InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse>(`/apis/insight.io/v1alpha1/alert/receivers/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
194
181
  }
195
182
  static TestReceiver(req: InsightIoApiAlertV1alpha1Notify.Receiver, initReq?: fm.InitReq): Promise<empty> {
196
- return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Receiver, empty>(`/apis/insight.io/v1alpha1/alert/receivers/test`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
183
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Receiver, empty>(`/apis/insight.io/v1alpha1/alert/receivers/test`, {...initReq, method: "POST", body: JSON.stringify(req)})
197
184
  }
198
185
  static CreateReceiver(req: InsightIoApiAlertV1alpha1Notify.Receiver, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse> {
199
- return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Receiver, InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse>(`/apis/insight.io/v1alpha1/alert/receivers`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
186
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Receiver, InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse>(`/apis/insight.io/v1alpha1/alert/receivers`, {...initReq, method: "POST", body: JSON.stringify(req)})
200
187
  }
201
188
  static UpdateReceiver(req: InsightIoApiAlertV1alpha1Notify.Receiver, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse> {
202
- return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Receiver, InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse>(`/apis/insight.io/v1alpha1/alert/receivers/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
189
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Receiver, InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse>(`/apis/insight.io/v1alpha1/alert/receivers/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
203
190
  }
204
191
  static DeleteReceiver(req: InsightIoApiAlertV1alpha1Notify.DeleteReceiversRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse> {
205
192
  return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.DeleteReceiversRequest, InsightIoApiAlertV1alpha1Notify.ReceiverDataResponse>(`/apis/insight.io/v1alpha1/alert/receivers/${req["name"]}`, {...initReq, method: "DELETE"})
@@ -214,10 +201,10 @@ export class Alert {
214
201
  return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.GetProvidersRequest, InsightIoApiAlertV1alpha1Notify.ProviderDataResponse>(`/apis/insight.io/v1alpha1/alert/providers/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
215
202
  }
216
203
  static CreateProvider(req: InsightIoApiAlertV1alpha1Notify.Provider, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.ProviderDataResponse> {
217
- return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Provider, InsightIoApiAlertV1alpha1Notify.ProviderDataResponse>(`/apis/insight.io/v1alpha1/alert/providers`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
204
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Provider, InsightIoApiAlertV1alpha1Notify.ProviderDataResponse>(`/apis/insight.io/v1alpha1/alert/providers`, {...initReq, method: "POST", body: JSON.stringify(req)})
218
205
  }
219
206
  static UpdateProvider(req: InsightIoApiAlertV1alpha1Notify.Provider, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.ProviderDataResponse> {
220
- return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Provider, InsightIoApiAlertV1alpha1Notify.ProviderDataResponse>(`/apis/insight.io/v1alpha1/alert/providers/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
207
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.Provider, InsightIoApiAlertV1alpha1Notify.ProviderDataResponse>(`/apis/insight.io/v1alpha1/alert/providers/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
221
208
  }
222
209
  static DeleteProvider(req: InsightIoApiAlertV1alpha1Notify.DeleteProvidersRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.ProviderDataResponse> {
223
210
  return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.DeleteProvidersRequest, InsightIoApiAlertV1alpha1Notify.ProviderDataResponse>(`/apis/insight.io/v1alpha1/alert/providers/${req["name"]}`, {...initReq, method: "DELETE"})
@@ -232,16 +219,16 @@ export class Alert {
232
219
  return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.TemplateName, InsightIoApiAlertV1alpha1Notify.Template>(`/apis/insight.io/v1alpha1/alert/templates/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
233
220
  }
234
221
  static CreateTemplate(req: InsightIoApiAlertV1alpha1Notify.CreateTemplateRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.Template> {
235
- return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.CreateTemplateRequest, InsightIoApiAlertV1alpha1Notify.Template>(`/apis/insight.io/v1alpha1/alert/templates`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
222
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.CreateTemplateRequest, InsightIoApiAlertV1alpha1Notify.Template>(`/apis/insight.io/v1alpha1/alert/templates`, {...initReq, method: "POST", body: JSON.stringify(req)})
236
223
  }
237
224
  static UpdateTemplate(req: InsightIoApiAlertV1alpha1Notify.CreateTemplateRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.Template> {
238
- return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.CreateTemplateRequest, InsightIoApiAlertV1alpha1Notify.Template>(`/apis/insight.io/v1alpha1/alert/templates/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
225
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.CreateTemplateRequest, InsightIoApiAlertV1alpha1Notify.Template>(`/apis/insight.io/v1alpha1/alert/templates/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
239
226
  }
240
227
  static DeleteTemplate(req: InsightIoApiAlertV1alpha1Notify.TemplateName, initReq?: fm.InitReq): Promise<empty> {
241
228
  return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.TemplateName, empty>(`/apis/insight.io/v1alpha1/alert/templates/${req["name"]}`, {...initReq, method: "DELETE"})
242
229
  }
243
230
  static PreviewTemplate(req: InsightIoApiAlertV1alpha1Notify.PreviewTemplateRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Notify.PreviewTemplateResponse> {
244
- return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.PreviewTemplateRequest, InsightIoApiAlertV1alpha1Notify.PreviewTemplateResponse>(`/apis/insight.io/v1alpha1/alert/templates/preview`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
231
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Notify.PreviewTemplateRequest, InsightIoApiAlertV1alpha1Notify.PreviewTemplateResponse>(`/apis/insight.io/v1alpha1/alert/templates/preview`, {...initReq, method: "POST", body: JSON.stringify(req)})
245
232
  }
246
233
  static ListSilences(req: InsightIoApiAlertV1alpha1Silence.ListSilencesRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Silence.ListSilencesResponse> {
247
234
  return fm.fetchReq<InsightIoApiAlertV1alpha1Silence.ListSilencesRequest, InsightIoApiAlertV1alpha1Silence.ListSilencesResponse>(`/apis/insight.io/v1alpha1/alert/silences?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -250,13 +237,13 @@ export class Alert {
250
237
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, InsightIoApiAlertV1alpha1Silence.Silence>(`/apis/insight.io/v1alpha1/alert/silences/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
251
238
  }
252
239
  static CreateSilence(req: InsightIoApiAlertV1alpha1Silence.CreateSilenceRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Silence.Silence> {
253
- return fm.fetchReq<InsightIoApiAlertV1alpha1Silence.CreateSilenceRequest, InsightIoApiAlertV1alpha1Silence.Silence>(`/apis/insight.io/v1alpha1/alert/silences`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
240
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Silence.CreateSilenceRequest, InsightIoApiAlertV1alpha1Silence.Silence>(`/apis/insight.io/v1alpha1/alert/silences`, {...initReq, method: "POST", body: JSON.stringify(req)})
254
241
  }
255
242
  static PreviewSilence(req: InsightIoApiAlertV1alpha1Silence.PreviewSilenceRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Silence.PreviewSilenceResponse> {
256
- return fm.fetchReq<InsightIoApiAlertV1alpha1Silence.PreviewSilenceRequest, InsightIoApiAlertV1alpha1Silence.PreviewSilenceResponse>(`/apis/insight.io/v1alpha1/alert/silences/preview`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
243
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Silence.PreviewSilenceRequest, InsightIoApiAlertV1alpha1Silence.PreviewSilenceResponse>(`/apis/insight.io/v1alpha1/alert/silences/preview`, {...initReq, method: "POST", body: JSON.stringify(req)})
257
244
  }
258
245
  static UpdateSilence(req: InsightIoApiAlertV1alpha1Silence.UpdateSilenceRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Silence.Silence> {
259
- return fm.fetchReq<InsightIoApiAlertV1alpha1Silence.UpdateSilenceRequest, InsightIoApiAlertV1alpha1Silence.Silence>(`/apis/insight.io/v1alpha1/alert/silences/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
246
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Silence.UpdateSilenceRequest, InsightIoApiAlertV1alpha1Silence.Silence>(`/apis/insight.io/v1alpha1/alert/silences/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
260
247
  }
261
248
  static DeleteSilence(req: InsightIoApiAlertV1alpha1Alert.ID, initReq?: fm.InitReq): Promise<empty> {
262
249
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, empty>(`/apis/insight.io/v1alpha1/alert/silences/${req["id"]}`, {...initReq, method: "DELETE"})
@@ -271,10 +258,10 @@ export class Alert {
271
258
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, InsightIoApiAlertV1alpha1Alert.RuleTemplate>(`/apis/insight.io/v1alpha1/alert/rule-templates/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
272
259
  }
273
260
  static CreateRuleTemplate(req: InsightIoApiAlertV1alpha1Alert.CreateRuleTemplateRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.RuleTemplate> {
274
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.CreateRuleTemplateRequest, InsightIoApiAlertV1alpha1Alert.RuleTemplate>(`/apis/insight.io/v1alpha1/alert/rule-templates`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
261
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.CreateRuleTemplateRequest, InsightIoApiAlertV1alpha1Alert.RuleTemplate>(`/apis/insight.io/v1alpha1/alert/rule-templates`, {...initReq, method: "POST", body: JSON.stringify(req)})
275
262
  }
276
263
  static UpdateRuleTemplate(req: InsightIoApiAlertV1alpha1Alert.UpdateRuleTemplateRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.RuleTemplate> {
277
- return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.UpdateRuleTemplateRequest, InsightIoApiAlertV1alpha1Alert.RuleTemplate>(`/apis/insight.io/v1alpha1/alert/rule-templates/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
264
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.UpdateRuleTemplateRequest, InsightIoApiAlertV1alpha1Alert.RuleTemplate>(`/apis/insight.io/v1alpha1/alert/rule-templates/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
278
265
  }
279
266
  static DeleteRuleTemplate(req: InsightIoApiAlertV1alpha1Alert.ID, initReq?: fm.InitReq): Promise<empty> {
280
267
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, empty>(`/apis/insight.io/v1alpha1/alert/rule-templates/${req["id"]}`, {...initReq, method: "DELETE"})
@@ -286,10 +273,10 @@ export class Alert {
286
273
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, InsightIoApiAlertV1alpha1Inhibition.Inhibition>(`/apis/insight.io/v1alpha1/alert/inhibitions/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
287
274
  }
288
275
  static CreateInhibition(req: InsightIoApiAlertV1alpha1Inhibition.CreateInhibitionRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Inhibition.Inhibition> {
289
- return fm.fetchReq<InsightIoApiAlertV1alpha1Inhibition.CreateInhibitionRequest, InsightIoApiAlertV1alpha1Inhibition.Inhibition>(`/apis/insight.io/v1alpha1/alert/inhibitions`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
276
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Inhibition.CreateInhibitionRequest, InsightIoApiAlertV1alpha1Inhibition.Inhibition>(`/apis/insight.io/v1alpha1/alert/inhibitions`, {...initReq, method: "POST", body: JSON.stringify(req)})
290
277
  }
291
278
  static UpdateInhibition(req: InsightIoApiAlertV1alpha1Inhibition.UpdateInhibitionRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Inhibition.Inhibition> {
292
- return fm.fetchReq<InsightIoApiAlertV1alpha1Inhibition.UpdateInhibitionRequest, InsightIoApiAlertV1alpha1Inhibition.Inhibition>(`/apis/insight.io/v1alpha1/alert/inhibitions/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
279
+ return fm.fetchReq<InsightIoApiAlertV1alpha1Inhibition.UpdateInhibitionRequest, InsightIoApiAlertV1alpha1Inhibition.Inhibition>(`/apis/insight.io/v1alpha1/alert/inhibitions/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
293
280
  }
294
281
  static DeleteInhibition(req: InsightIoApiAlertV1alpha1Alert.ID, initReq?: fm.InitReq): Promise<empty> {
295
282
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.ID, empty>(`/apis/insight.io/v1alpha1/alert/inhibitions/${req["id"]}`, {...initReq, method: "DELETE"})
@@ -300,16 +287,16 @@ export class Log {
300
287
  return fm.fetchReq<InsightIoApiLogV1alpha1Log.SearchLogRequest, InsightIoApiLogV1alpha1Log.SearchLogResponse>(`/apis/insight.io/v1alpha1/log/search?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
301
288
  }
302
289
  static QueryLog(req: InsightIoApiLogV1alpha1Log.QueryLogRequest, initReq?: fm.InitReq): Promise<InsightIoApiLogV1alpha1Log.QueryLogResponse> {
303
- return fm.fetchReq<InsightIoApiLogV1alpha1Log.QueryLogRequest, InsightIoApiLogV1alpha1Log.QueryLogResponse>(`/apis/insight.io/v1alpha1/log/query`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
290
+ return fm.fetchReq<InsightIoApiLogV1alpha1Log.QueryLogRequest, InsightIoApiLogV1alpha1Log.QueryLogResponse>(`/apis/insight.io/v1alpha1/log/query`, {...initReq, method: "POST", body: JSON.stringify(req)})
304
291
  }
305
292
  static QueryLogHistogram(req: InsightIoApiLogV1alpha1Log.QueryLogHistogramRequest, initReq?: fm.InitReq): Promise<InsightIoApiLogV1alpha1Log.QueryLogHistogramResponse> {
306
- return fm.fetchReq<InsightIoApiLogV1alpha1Log.QueryLogHistogramRequest, InsightIoApiLogV1alpha1Log.QueryLogHistogramResponse>(`/apis/insight.io/v1alpha1/log/histogram`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
293
+ return fm.fetchReq<InsightIoApiLogV1alpha1Log.QueryLogHistogramRequest, InsightIoApiLogV1alpha1Log.QueryLogHistogramResponse>(`/apis/insight.io/v1alpha1/log/histogram`, {...initReq, method: "POST", body: JSON.stringify(req)})
307
294
  }
308
295
  static QueryLogContext(req: InsightIoApiLogV1alpha1Log.QueryLogContextRequest, initReq?: fm.InitReq): Promise<InsightIoApiLogV1alpha1Log.QueryLogResponse> {
309
- return fm.fetchReq<InsightIoApiLogV1alpha1Log.QueryLogContextRequest, InsightIoApiLogV1alpha1Log.QueryLogResponse>(`/apis/insight.io/v1alpha1/log/context`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
296
+ return fm.fetchReq<InsightIoApiLogV1alpha1Log.QueryLogContextRequest, InsightIoApiLogV1alpha1Log.QueryLogResponse>(`/apis/insight.io/v1alpha1/log/context`, {...initReq, method: "POST", body: JSON.stringify(req)})
310
297
  }
311
298
  static DownloadLog(req: InsightIoApiLogV1alpha1Log.DownloadLogRequest, initReq?: fm.InitReq): Promise<InsightIoApiLogV1alpha1Log.DownloadLogResponse> {
312
- return fm.fetchReq<InsightIoApiLogV1alpha1Log.DownloadLogRequest, InsightIoApiLogV1alpha1Log.DownloadLogResponse>(`/apis/insight.io/v1alpha1/log/export`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
299
+ return fm.fetchReq<InsightIoApiLogV1alpha1Log.DownloadLogRequest, InsightIoApiLogV1alpha1Log.DownloadLogResponse>(`/apis/insight.io/v1alpha1/log/export`, {...initReq, method: "POST", body: JSON.stringify(req)})
313
300
  }
314
301
  static ListLogFilePaths(req: InsightIoApiLogV1alpha1Log.ListLogFilePathsRequest, initReq?: fm.InitReq): Promise<InsightIoApiLogV1alpha1Log.ListLogFilePathsResponse> {
315
302
  return fm.fetchReq<InsightIoApiLogV1alpha1Log.ListLogFilePathsRequest, InsightIoApiLogV1alpha1Log.ListLogFilePathsResponse>(`/apis/insight.io/v1alpha1/log/filepaths?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -323,13 +310,13 @@ export class Metric {
323
310
  return fm.fetchReq<InsightIoApiMetricV1alpha1Metric.PrometheusQueryRangeRequest, InsightIoApiMetricV1alpha1Metric.PrometheusQueryRangeResult>(`/apis/insight.io/v1alpha1/metric/queryrange?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
324
311
  }
325
312
  static BatchQueryMetric(req: InsightIoApiMetricV1alpha1Metric.BatchQueryRequest, initReq?: fm.InitReq): Promise<InsightIoApiMetricV1alpha1Metric.BatchQueryResponse> {
326
- return fm.fetchReq<InsightIoApiMetricV1alpha1Metric.BatchQueryRequest, InsightIoApiMetricV1alpha1Metric.BatchQueryResponse>(`/apis/insight.io/v1alpha1/metric/query`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
313
+ return fm.fetchReq<InsightIoApiMetricV1alpha1Metric.BatchQueryRequest, InsightIoApiMetricV1alpha1Metric.BatchQueryResponse>(`/apis/insight.io/v1alpha1/metric/query`, {...initReq, method: "POST", body: JSON.stringify(req)})
327
314
  }
328
315
  static BatchQueryRangeMetric(req: InsightIoApiMetricV1alpha1Metric.BatchQueryRangeRequest, initReq?: fm.InitReq): Promise<InsightIoApiMetricV1alpha1Metric.BatchQueryRangeResponse> {
329
- return fm.fetchReq<InsightIoApiMetricV1alpha1Metric.BatchQueryRangeRequest, InsightIoApiMetricV1alpha1Metric.BatchQueryRangeResponse>(`/apis/insight.io/v1alpha1/metric/queryrange`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
316
+ return fm.fetchReq<InsightIoApiMetricV1alpha1Metric.BatchQueryRangeRequest, InsightIoApiMetricV1alpha1Metric.BatchQueryRangeResponse>(`/apis/insight.io/v1alpha1/metric/queryrange`, {...initReq, method: "POST", body: JSON.stringify(req)})
330
317
  }
331
318
  static FormatQuery(req: InsightIoApiMetricV1alpha1Metric.FormatQueryRequest, initReq?: fm.InitReq): Promise<InsightIoApiMetricV1alpha1Metric.FormatQueryResponse> {
332
- return fm.fetchReq<InsightIoApiMetricV1alpha1Metric.FormatQueryRequest, InsightIoApiMetricV1alpha1Metric.FormatQueryResponse>(`/apis/insight.io/v1alpha1/metric/format_query`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
319
+ return fm.fetchReq<InsightIoApiMetricV1alpha1Metric.FormatQueryRequest, InsightIoApiMetricV1alpha1Metric.FormatQueryResponse>(`/apis/insight.io/v1alpha1/metric/format_query`, {...initReq, method: "POST", body: JSON.stringify(req)})
333
320
  }
334
321
  }
335
322
  export class Resource {
@@ -438,13 +425,10 @@ export class Tracing {
438
425
  return fm.fetchReq<InsightIoApiTracingV1alpha1Query.TraceQueryParameters, InsightIoApiTracingV1alpha1Query.TracesResponseChunk>(`/apis/insight.io/v1alpha1/jaeger/v2/traces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
439
426
  }
440
427
  static QuerySpans(req: InsightIoApiTracingV1alpha1Query.SpanQueryParameters, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Query.SpansResponseChunk> {
441
- return fm.fetchReq<InsightIoApiTracingV1alpha1Query.SpanQueryParameters, InsightIoApiTracingV1alpha1Query.SpansResponseChunk>(`/apis/insight.io/v1alpha1/jaeger/v2/spans`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
442
- }
443
- static SearchSpans(req: InsightIoApiTracingV1alpha1Query.SpanQueryParameters, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Query.SearchResponse> {
444
- return fm.fetchReq<InsightIoApiTracingV1alpha1Query.SpanQueryParameters, InsightIoApiTracingV1alpha1Query.SearchResponse>(`/apis/insight.io/v1alpha1/spans/search`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
428
+ return fm.fetchReq<InsightIoApiTracingV1alpha1Query.SpanQueryParameters, InsightIoApiTracingV1alpha1Query.SpansResponseChunk>(`/apis/insight.io/v1alpha1/jaeger/v2/spans`, {...initReq, method: "POST", body: JSON.stringify(req)})
445
429
  }
446
430
  static QuerySpanHistogram(req: InsightIoApiTracingV1alpha1Query.SpanQueryParameters, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Query.QuerySpanHistogramResponse> {
447
- return fm.fetchReq<InsightIoApiTracingV1alpha1Query.SpanQueryParameters, InsightIoApiTracingV1alpha1Query.QuerySpanHistogramResponse>(`/apis/insight.io/v1alpha1/jaeger/v2/spans/histogram`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
431
+ return fm.fetchReq<InsightIoApiTracingV1alpha1Query.SpanQueryParameters, InsightIoApiTracingV1alpha1Query.QuerySpanHistogramResponse>(`/apis/insight.io/v1alpha1/jaeger/v2/spans/histogram`, {...initReq, method: "POST", body: JSON.stringify(req)})
448
432
  }
449
433
  static FindJaegerTrace(req: InsightIoApiTracingV1alpha1Tracing.TraceRequestById, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Query.TracesResponseChunk> {
450
434
  return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.TraceRequestById, InsightIoApiTracingV1alpha1Query.TracesResponseChunk>(`/apis/insight.io/v1alpha1/jaeger/v2/traces/${req["traceId"]}?${fm.renderURLSearchParams(req, ["traceId"])}`, {...initReq, method: "GET"})
@@ -477,21 +461,21 @@ export class Tracing {
477
461
  return fm.fetchReq<InsightIoApiTracingV1alpha1Tracing.GetTagValuesRequest, InsightIoApiTracingV1alpha1Tracing.GetTagValuesResponse>(`/apis/insight.io/v1alpha1/traces/tags/${req["name"]}/values?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
478
462
  }
479
463
  static QueryMetadata(req: InsightIoApiTracingV1alpha1Statement_analysis.MetadataRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Statement_analysis.MetadataResponse> {
480
- return fm.fetchReq<InsightIoApiTracingV1alpha1Statement_analysis.MetadataRequest, InsightIoApiTracingV1alpha1Statement_analysis.MetadataResponse>(`/apis/insight.io/v1alpha1/traces/slow-sql/clusters/${req["clusterName"]}/type/${req["type"]}/metadata`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
464
+ return fm.fetchReq<InsightIoApiTracingV1alpha1Statement_analysis.MetadataRequest, InsightIoApiTracingV1alpha1Statement_analysis.MetadataResponse>(`/apis/insight.io/v1alpha1/traces/slow-sql/clusters/${req["clusterName"]}/type/${req["type"]}/metadata`, {...initReq, method: "POST", body: JSON.stringify(req)})
481
465
  }
482
466
  static StatementHistogram(req: InsightIoApiTracingV1alpha1Statement_analysis.StatementRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Statement_analysis.StatementHistogramResponse> {
483
- return fm.fetchReq<InsightIoApiTracingV1alpha1Statement_analysis.StatementRequest, InsightIoApiTracingV1alpha1Statement_analysis.StatementHistogramResponse>(`/apis/insight.io/v1alpha1/traces/slow-sql/clusters/${req["clusterName"]}/statement/histogram`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
467
+ return fm.fetchReq<InsightIoApiTracingV1alpha1Statement_analysis.StatementRequest, InsightIoApiTracingV1alpha1Statement_analysis.StatementHistogramResponse>(`/apis/insight.io/v1alpha1/traces/slow-sql/clusters/${req["clusterName"]}/statement/histogram`, {...initReq, method: "POST", body: JSON.stringify(req)})
484
468
  }
485
469
  static StatementTopK(req: InsightIoApiTracingV1alpha1Statement_analysis.StatementRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Statement_analysis.StatementTopKResponse> {
486
- return fm.fetchReq<InsightIoApiTracingV1alpha1Statement_analysis.StatementRequest, InsightIoApiTracingV1alpha1Statement_analysis.StatementTopKResponse>(`/apis/insight.io/v1alpha1/traces/slow-sql/clusters/${req["clusterName"]}/statement/topk`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
470
+ return fm.fetchReq<InsightIoApiTracingV1alpha1Statement_analysis.StatementRequest, InsightIoApiTracingV1alpha1Statement_analysis.StatementTopKResponse>(`/apis/insight.io/v1alpha1/traces/slow-sql/clusters/${req["clusterName"]}/statement/topk`, {...initReq, method: "POST", body: JSON.stringify(req)})
487
471
  }
488
472
  static GetSlowSQLSpans(req: InsightIoApiTracingV1alpha1Statement_analysis.SpansRequest, initReq?: fm.InitReq): Promise<InsightIoApiTracingV1alpha1Statement_analysis.SpansResponse> {
489
- return fm.fetchReq<InsightIoApiTracingV1alpha1Statement_analysis.SpansRequest, InsightIoApiTracingV1alpha1Statement_analysis.SpansResponse>(`/apis/insight.io/v1alpha1/traces/slow-sql/clusters/${req["clusterName"]}/spans`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
473
+ return fm.fetchReq<InsightIoApiTracingV1alpha1Statement_analysis.SpansRequest, InsightIoApiTracingV1alpha1Statement_analysis.SpansResponse>(`/apis/insight.io/v1alpha1/traces/slow-sql/clusters/${req["clusterName"]}/spans`, {...initReq, method: "POST", body: JSON.stringify(req)})
490
474
  }
491
475
  }
492
476
  export class ServiceGraph {
493
477
  static GetGraph(req: InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.Graph> {
494
- return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, InsightIoApiGraphV1alpha1Graph.Graph>(`/apis/insight.io/v1alpha1/service-graph/graph`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
478
+ return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseGraphQuery, InsightIoApiGraphV1alpha1Graph.Graph>(`/apis/insight.io/v1alpha1/service-graph/graph`, {...initReq, method: "POST", body: JSON.stringify(req)})
495
479
  }
496
480
  static GetNodeMetrics(req: InsightIoApiGraphV1alpha1Graph.BaseMetricsQuery, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.NodeMetricResponse> {
497
481
  return fm.fetchReq<InsightIoApiGraphV1alpha1Graph.BaseMetricsQuery, InsightIoApiGraphV1alpha1Graph.NodeMetricResponse>(`/apis/insight.io/v1alpha1/service-graph/node-metrics?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -502,7 +486,7 @@ export class Event {
502
486
  return fm.fetchReq<InsightIoApiEventV1alpha1Event.QueryEventHistogramRequest, InsightIoApiEventV1alpha1Event.QueryEventHistogramResponse>(`/apis/insight.io/v1alpha1/event/cluster/${req["clusterName"]}/events/histogram?${fm.renderURLSearchParams(req, ["clusterName"])}`, {...initReq, method: "GET"})
503
487
  }
504
488
  static QueryEventCount(req: InsightIoApiEventV1alpha1Event.QueryEventCountRequest, initReq?: fm.InitReq): Promise<InsightIoApiEventV1alpha1Event.QueryEventCountResponse> {
505
- return fm.fetchReq<InsightIoApiEventV1alpha1Event.QueryEventCountRequest, InsightIoApiEventV1alpha1Event.QueryEventCountResponse>(`/apis/insight.io/v1alpha1/event/cluster/${req["clusterName"]}/events/count`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
489
+ return fm.fetchReq<InsightIoApiEventV1alpha1Event.QueryEventCountRequest, InsightIoApiEventV1alpha1Event.QueryEventCountResponse>(`/apis/insight.io/v1alpha1/event/cluster/${req["clusterName"]}/events/count`, {...initReq, method: "POST", body: JSON.stringify(req)})
506
490
  }
507
491
  static QueryEventFilterOptions(req: InsightIoApiEventV1alpha1Event.QueryEventFilterOptionsRequest, initReq?: fm.InitReq): Promise<InsightIoApiEventV1alpha1Event.QueryEventFilterOptionsResponse> {
508
492
  return fm.fetchReq<InsightIoApiEventV1alpha1Event.QueryEventFilterOptionsRequest, InsightIoApiEventV1alpha1Event.QueryEventFilterOptionsResponse>(`/apis/insight.io/v1alpha1/event/cluster/${req["clusterName"]}/events/filter-options?${fm.renderURLSearchParams(req, ["clusterName"])}`, {...initReq, method: "GET"})
@@ -522,7 +506,7 @@ export class Probe {
522
506
  return fm.fetchReq<InsightIoApiProbesV1alpha1Probe.ListProbesRequest, InsightIoApiProbesV1alpha1Probe.ListProbesResponse>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/probes?${fm.renderURLSearchParams(req, ["clusterName", "namespace"])}`, {...initReq, method: "GET"})
523
507
  }
524
508
  static AddProbe(req: InsightIoApiProbesV1alpha1Probe.CreateProbeRequest, initReq?: fm.InitReq): Promise<InsightIoApiProbesV1alpha1Probe.Probe> {
525
- return fm.fetchReq<InsightIoApiProbesV1alpha1Probe.CreateProbeRequest, InsightIoApiProbesV1alpha1Probe.Probe>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/probes`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
509
+ return fm.fetchReq<InsightIoApiProbesV1alpha1Probe.CreateProbeRequest, InsightIoApiProbesV1alpha1Probe.Probe>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/probes`, {...initReq, method: "POST", body: JSON.stringify(req)})
526
510
  }
527
511
  static GetProbe(req: InsightIoApiProbesV1alpha1Probe.BaseProbeRequest, initReq?: fm.InitReq): Promise<InsightIoApiProbesV1alpha1Probe.Probe> {
528
512
  return fm.fetchReq<InsightIoApiProbesV1alpha1Probe.BaseProbeRequest, InsightIoApiProbesV1alpha1Probe.Probe>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/probes/${req["jobName"]}?${fm.renderURLSearchParams(req, ["clusterName", "namespace", "jobName"])}`, {...initReq, method: "GET"})
@@ -531,7 +515,7 @@ export class Probe {
531
515
  return fm.fetchReq<InsightIoApiProbesV1alpha1Probe.BaseProbeRequest, empty>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/probes/${req["jobName"]}`, {...initReq, method: "DELETE"})
532
516
  }
533
517
  static UpdateProbe(req: InsightIoApiProbesV1alpha1Probe.UpdateProbeRequest, initReq?: fm.InitReq): Promise<empty> {
534
- return fm.fetchReq<InsightIoApiProbesV1alpha1Probe.UpdateProbeRequest, empty>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/probes/${req["jobName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
518
+ return fm.fetchReq<InsightIoApiProbesV1alpha1Probe.UpdateProbeRequest, empty>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/probes/${req["jobName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
535
519
  }
536
520
  static ListProbers(req: InsightIoApiProbesV1alpha1Probe.GetProbersRequest, initReq?: fm.InitReq): Promise<InsightIoApiProbesV1alpha1Probe.ClusterProbersResponse> {
537
521
  return fm.fetchReq<InsightIoApiProbesV1alpha1Probe.GetProbersRequest, InsightIoApiProbesV1alpha1Probe.ClusterProbersResponse>(`/apis/insight.io/v1alpha1/clusters/${req["clusterName"]}/probers?${fm.renderURLSearchParams(req, ["clusterName"])}`, {...initReq, method: "GET"})
@@ -23,8 +23,6 @@ export enum GetResourcesCountRequestResourcesFilter {
23
23
  JOB_TOTAL = "JOB_TOTAL",
24
24
  POD_NORMAL_TOTAL = "POD_NORMAL_TOTAL",
25
25
  POD_TOTAL = "POD_TOTAL",
26
- GPU_COUNT = "GPU_COUNT",
27
- GPU_ALLOCATED_COUNT = "GPU_ALLOCATED_COUNT",
28
26
  LOG_TOTAL = "LOG_TOTAL",
29
27
  TRACE_TOTAL = "TRACE_TOTAL",
30
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.41.4-2-g3f73d56",
3
+ "version":"0.41.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -124,7 +124,6 @@ export type ClusterDetail = {
124
124
  statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
125
125
  daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
126
126
  podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
127
- gpuNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
128
127
  insightAgentStatus?: insightAgentState
129
128
  }
130
129
 
@@ -71,16 +71,11 @@ type BaseSpanQueryParameters = {
71
71
  spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
72
72
  sort?: string
73
73
  onlyErrorSpans?: boolean
74
- onlyRootSpans?: boolean
75
74
  }
76
75
 
77
76
  export type SpanQueryParameters = BaseSpanQueryParameters
78
77
  & OneOf<{ cluster: string; clusterName: string }>
79
78
 
80
- export type SearchResponse = {
81
- response?: string
82
- }
83
-
84
79
  export type SpanDurationHistogram = {
85
80
  timestamp?: string
86
81
  p75Duration?: string