@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.
- package/alert/v1alpha1/alert.pb.ts +17 -6
- package/package.json +1 -1
|
@@ -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
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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
|
-
|
|
341
|
+
params?: PreviewRuleRequestParams
|
|
331
342
|
group?: PreviewRuleRequestGroup
|
|
332
|
-
rule?:
|
|
343
|
+
rule?: PreviewRuleRequestAlertRule
|
|
333
344
|
}
|
|
334
345
|
|
|
335
346
|
export type PreviewRuleResponse = {
|