@daocloud-proto/insight 0.17.0-rc5 → 0.17.0

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.
@@ -120,6 +120,8 @@ export type RuleSummary = {
120
120
  status?: InsightIoApiAlertV1alpha1Type.RuleStatus
121
121
  description?: string
122
122
  createAt?: string
123
+ logFilterCondition?: string
124
+ logQueryString?: string
123
125
  }
124
126
 
125
127
  export type Rule = {
@@ -140,6 +142,8 @@ export type Rule = {
140
142
  description?: string
141
143
  createAt?: string
142
144
  updateAt?: string
145
+ logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
146
+ logQueryString?: string
143
147
  }
144
148
 
145
149
  export type AddGroupRuleRequest = {
@@ -158,6 +162,8 @@ export type CreateGroupRule = {
158
162
  severity?: InsightIoApiAlertV1alpha1Type.Severity
159
163
  labels?: {[key: string]: string}
160
164
  annotations?: {[key: string]: string}
165
+ logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
166
+ logQueryString?: string
161
167
  }
162
168
 
163
169
  export type UpdateRuleRequest = {
@@ -171,6 +177,8 @@ export type UpdateRuleRequest = {
171
177
  severity?: InsightIoApiAlertV1alpha1Type.Severity
172
178
  labels?: {[key: string]: string}
173
179
  annotations?: {[key: string]: string}
180
+ logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
181
+ logQueryString?: string
174
182
  }
175
183
 
176
184
  export type GroupRule = {
@@ -40,4 +40,13 @@ export enum AlertStatus {
40
40
  ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
41
41
  ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
42
42
  ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
43
+ }
44
+
45
+ export enum RuleFilterCondition {
46
+ FILTER_CONDITION_UNSPECIFIED = "FILTER_CONDITION_UNSPECIFIED",
47
+ AND = "AND",
48
+ OR = "OR",
49
+ REG = "REG",
50
+ FUZZINESS = "FUZZINESS",
51
+ WILD_CARD = "WILD_CARD",
43
52
  }
@@ -9,6 +9,7 @@ export enum FeatureGateIDEnum {
9
9
  LOGGING = "LOGGING",
10
10
  TRACING = "TRACING",
11
11
  GRAPH_VIRTUAL_NODE = "GRAPH_VIRTUAL_NODE",
12
+ LOG_ALERT = "LOG_ALERT",
12
13
  }
13
14
 
14
15
  export type FeatureGateID = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.17.0-rc5",
3
+ "version":"0.17.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {