@daocloud-proto/insight 0.18.0-dev1 → 0.18.0-rc1-2-gf732643

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.
@@ -123,6 +123,7 @@ export type RuleSummary = {
123
123
  createAt?: string
124
124
  logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
125
125
  logQueryString?: string
126
+ duration?: string
126
127
  }
127
128
 
128
129
  export type Rule = {
@@ -313,6 +314,12 @@ export type CleanAlertHistoryResponse = {
313
314
  num?: string
314
315
  }
315
316
 
317
+ export type PreviewRuleRequestParams = {
318
+ start?: string
319
+ end?: string
320
+ step?: number
321
+ }
322
+
316
323
  export type PreviewRuleRequestGroup = {
317
324
  clusterName?: string
318
325
  namespace?: string
@@ -320,16 +327,20 @@ export type PreviewRuleRequestGroup = {
320
327
  targets?: string[]
321
328
  }
322
329
 
323
- export type PreviewRuleRequestParam = {
324
- start?: string
325
- end?: string
326
- step?: number
330
+ export type PreviewRuleRequestAlertRule = {
331
+ source?: InsightIoApiAlertV1alpha1Type.RuleSource
332
+ expr?: string
333
+ thresholdSymbol?: string
334
+ thresholdNum?: number
335
+ duration?: string
336
+ logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
337
+ logQueryString?: string
327
338
  }
328
339
 
329
340
  export type PreviewRuleRequest = {
330
- param?: PreviewRuleRequestParam
341
+ params?: PreviewRuleRequestParams
331
342
  group?: PreviewRuleRequestGroup
332
- rule?: CreateGroupRule
343
+ rule?: PreviewRuleRequestAlertRule
333
344
  }
334
345
 
335
346
  export type PreviewRuleResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.18.0-dev1",
3
+ "version":"0.18.0-rc1-2-gf732643",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {