@daocloud-proto/insight 0.42.0-rc2 → 0.42.0-rc3

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.
@@ -183,7 +183,7 @@ export type Rule = {
183
183
  severity?: InsightIoApiAlertV1alpha1Type.Severity
184
184
  source?: InsightIoApiAlertV1alpha1Type.RuleSource
185
185
  status?: InsightIoApiAlertV1alpha1Type.RuleStatus
186
- promQl?: string
186
+ promQL?: string
187
187
  labels?: {[key: string]: string}
188
188
  annotations?: {[key: string]: string}
189
189
  description?: string
@@ -269,7 +269,7 @@ export type AlertSummary = {
269
269
  value?: string
270
270
  notifyResponse?: string
271
271
  description?: string
272
- promQl?: string
272
+ promQL?: string
273
273
  labels?: {[key: string]: string}
274
274
  annotations?: {[key: string]: string}
275
275
  startAt?: string
@@ -304,7 +304,7 @@ export type Alert = {
304
304
  value?: string
305
305
  notifyResponse?: string
306
306
  description?: string
307
- promQl?: string
307
+ promQL?: string
308
308
  labels?: {[key: string]: string}
309
309
  annotations?: {[key: string]: string}
310
310
  startAt?: string
@@ -372,7 +372,7 @@ export type PreviewRuleRequest = {
372
372
 
373
373
  export type PreviewRuleResponse = {
374
374
  matrix?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
375
- promQl?: string
375
+ promQL?: string
376
376
  }
377
377
 
378
378
  export type GetSMTPStatusResponse = {
@@ -429,4 +429,37 @@ export type UpdateRuleTemplateRequest = {
429
429
  id?: string
430
430
  description?: string
431
431
  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[]
432
465
  }
@@ -62,7 +62,7 @@ export type AMHookRequest = {
62
62
  groupLabels?: {[key: string]: string}
63
63
  commonLabels?: {[key: string]: string}
64
64
  commonAnnotations?: {[key: string]: string}
65
- externalUrl?: string
65
+ externalURL?: string
66
66
  alerts?: AmAlert[]
67
67
  truncatedAlerts?: string
68
68
  }
@@ -73,6 +73,6 @@ export type AmAlert = {
73
73
  annotations?: {[key: string]: string}
74
74
  startsAt?: string
75
75
  endsAt?: string
76
- generatorUrl?: string
76
+ generatorURL?: string
77
77
  fingerprint?: string
78
78
  }
@@ -177,6 +177,9 @@ export class Alert {
177
177
  static CountAlert(req: InsightIoApiAlertV1alpha1Alert.CountAlertRequest, initReq?: fm.InitReq): Promise<InsightIoApiAlertV1alpha1Alert.CountAlertResponse> {
178
178
  return fm.fetchReq<InsightIoApiAlertV1alpha1Alert.CountAlertRequest, InsightIoApiAlertV1alpha1Alert.CountAlertResponse>(`/apis/insight.io/v1alpha1/alert/alertcount?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
179
179
  }
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
+ }
180
183
  static AlertHook(req: InsightIoApiAlertV1alpha1Type.AMHookRequest, initReq?: fm.InitReq): Promise<empty> {
181
184
  return fm.fetchReq<InsightIoApiAlertV1alpha1Type.AMHookRequest, empty>(`/apis/insight.io/v1alpha1/alert/hook`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
182
185
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.42.0-rc2",
3
+ "version":"0.42.0-rc3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -71,6 +71,7 @@ type BaseSpanQueryParameters = {
71
71
  spanKinds?: InsightIoApiSpan_metricV1alpha1Otelspankind.SpanKind[]
72
72
  sort?: string
73
73
  onlyErrorSpans?: boolean
74
+ onlyRootSpans?: boolean
74
75
  }
75
76
 
76
77
  export type SpanQueryParameters = BaseSpanQueryParameters