tencentcloud-sdk-nodejs 4.0.682 → 4.0.684

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.
Files changed (120) hide show
  1. package/CHANGELOG.md +337 -0
  2. package/SERVICE_CHANGELOG.md +369 -166
  3. package/package.json +1 -1
  4. package/products.md +17 -17
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/ams/index.ts +2 -2
  7. package/src/services/bma/index.ts +2 -2
  8. package/src/services/btoe/index.ts +2 -2
  9. package/src/services/cbs/v20170312/cbs_client.ts +2 -2
  10. package/src/services/ccc/v20200210/ccc_client.ts +2 -1
  11. package/src/services/ccc/v20200210/ccc_models.ts +21 -2
  12. package/src/services/cdwch/v20200915/cdwch_client.ts +27 -15
  13. package/src/services/cdwch/v20200915/cdwch_models.ts +70 -46
  14. package/src/services/cfw/v20190904/cfw_client.ts +711 -456
  15. package/src/services/cfw/v20190904/cfw_models.ts +1815 -305
  16. package/src/services/cii/index.ts +2 -2
  17. package/src/services/cloudstudio/index.ts +2 -2
  18. package/src/services/dts/index.ts +2 -2
  19. package/src/services/eb/v20210416/eb_client.ts +110 -59
  20. package/src/services/eb/v20210416/eb_models.ts +917 -780
  21. package/src/services/ess/v20201111/ess_client.ts +64 -30
  22. package/src/services/ess/v20201111/ess_models.ts +381 -214
  23. package/src/services/essbasic/index.ts +2 -2
  24. package/src/services/facefusion/v20181201/facefusion_client.ts +4 -2
  25. package/src/services/iai/index.ts +2 -2
  26. package/src/services/iai/v20180301/iai_models.ts +21 -25
  27. package/src/services/iai/v20200303/iai_models.ts +23 -27
  28. package/src/services/ims/index.ts +2 -2
  29. package/src/services/iotcloud/index.ts +2 -2
  30. package/src/services/iotvideo/index.ts +4 -4
  31. package/src/services/mgobe/index.ts +2 -2
  32. package/src/services/mrs/v20200910/mrs_models.ts +48 -25
  33. package/src/services/tem/index.ts +2 -2
  34. package/src/services/thpc/index.ts +4 -4
  35. package/src/services/thpc/v20230321/thpc_models.ts +17 -0
  36. package/src/services/tione/index.ts +2 -2
  37. package/src/services/tms/index.ts +2 -2
  38. package/src/services/trocket/v20230308/trocket_client.ts +68 -17
  39. package/src/services/trocket/v20230308/trocket_models.ts +371 -35
  40. package/src/services/trtc/v20190722/trtc_models.ts +1 -1
  41. package/src/services/tsw/index.ts +2 -2
  42. package/src/services/vm/index.ts +2 -2
  43. package/src/services/waf/v20180125/waf_client.ts +37 -38
  44. package/src/services/waf/v20180125/waf_models.ts +73 -73
  45. package/src/services/yunsou/index.ts +2 -2
  46. package/tencentcloud/common/sdk_version.d.ts +1 -1
  47. package/tencentcloud/common/sdk_version.js +1 -1
  48. package/tencentcloud/services/ams/index.d.ts +4 -4
  49. package/tencentcloud/services/ams/index.js +2 -2
  50. package/tencentcloud/services/bma/index.d.ts +4 -4
  51. package/tencentcloud/services/bma/index.js +2 -2
  52. package/tencentcloud/services/btoe/index.d.ts +4 -4
  53. package/tencentcloud/services/btoe/index.js +2 -2
  54. package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +2 -2
  55. package/tencentcloud/services/cbs/v20170312/cbs_client.js +2 -2
  56. package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +1 -1
  57. package/tencentcloud/services/ccc/v20200210/ccc_client.js +1 -1
  58. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +20 -2
  59. package/tencentcloud/services/cdwch/v20200915/cdwch_client.d.ts +9 -5
  60. package/tencentcloud/services/cdwch/v20200915/cdwch_client.js +12 -6
  61. package/tencentcloud/services/cdwch/v20200915/cdwch_models.d.ts +68 -46
  62. package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +227 -147
  63. package/tencentcloud/services/cfw/v20190904/cfw_client.js +336 -216
  64. package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1815 -360
  65. package/tencentcloud/services/cii/index.d.ts +4 -4
  66. package/tencentcloud/services/cii/index.js +2 -2
  67. package/tencentcloud/services/cloudstudio/index.d.ts +4 -4
  68. package/tencentcloud/services/cloudstudio/index.js +2 -2
  69. package/tencentcloud/services/dts/index.d.ts +4 -4
  70. package/tencentcloud/services/dts/index.js +2 -2
  71. package/tencentcloud/services/eb/v20210416/eb_client.d.ts +17 -1
  72. package/tencentcloud/services/eb/v20210416/eb_client.js +24 -0
  73. package/tencentcloud/services/eb/v20210416/eb_models.d.ts +896 -770
  74. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +56 -22
  75. package/tencentcloud/services/ess/v20201111/ess_client.js +56 -22
  76. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +381 -214
  77. package/tencentcloud/services/essbasic/index.d.ts +4 -4
  78. package/tencentcloud/services/essbasic/index.js +2 -2
  79. package/tencentcloud/services/facefusion/v20181201/facefusion_client.d.ts +3 -1
  80. package/tencentcloud/services/facefusion/v20181201/facefusion_client.js +3 -1
  81. package/tencentcloud/services/iai/index.d.ts +4 -4
  82. package/tencentcloud/services/iai/index.js +2 -2
  83. package/tencentcloud/services/iai/v20180301/iai_models.d.ts +21 -25
  84. package/tencentcloud/services/iai/v20200303/iai_models.d.ts +23 -27
  85. package/tencentcloud/services/ims/index.d.ts +4 -4
  86. package/tencentcloud/services/ims/index.js +2 -2
  87. package/tencentcloud/services/iotcloud/index.d.ts +4 -4
  88. package/tencentcloud/services/iotcloud/index.js +2 -2
  89. package/tencentcloud/services/iotvideo/index.d.ts +6 -6
  90. package/tencentcloud/services/iotvideo/index.js +4 -4
  91. package/tencentcloud/services/mgobe/index.d.ts +4 -4
  92. package/tencentcloud/services/mgobe/index.js +2 -2
  93. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +48 -25
  94. package/tencentcloud/services/tem/index.d.ts +4 -4
  95. package/tencentcloud/services/tem/index.js +2 -2
  96. package/tencentcloud/services/thpc/index.d.ts +6 -6
  97. package/tencentcloud/services/thpc/index.js +4 -4
  98. package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +17 -0
  99. package/tencentcloud/services/tione/index.d.ts +4 -4
  100. package/tencentcloud/services/tione/index.js +2 -2
  101. package/tencentcloud/services/tms/index.d.ts +4 -4
  102. package/tencentcloud/services/tms/index.js +2 -2
  103. package/tencentcloud/services/trocket/v20230308/trocket_client.d.ts +24 -8
  104. package/tencentcloud/services/trocket/v20230308/trocket_client.js +33 -9
  105. package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +359 -34
  106. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
  107. package/tencentcloud/services/tsw/index.d.ts +4 -4
  108. package/tencentcloud/services/tsw/index.js +2 -2
  109. package/tencentcloud/services/vm/index.d.ts +4 -4
  110. package/tencentcloud/services/vm/index.js +2 -2
  111. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +13 -13
  112. package/tencentcloud/services/waf/v20180125/waf_client.js +18 -18
  113. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +69 -68
  114. package/tencentcloud/services/yunsou/index.d.ts +4 -4
  115. package/tencentcloud/services/yunsou/index.js +2 -2
  116. package/test/cdwch.v20200915.test.js +14 -4
  117. package/test/cfw.v20190904.test.js +340 -140
  118. package/test/eb.v20210416.test.js +40 -0
  119. package/test/trocket.v20230308.test.js +42 -2
  120. package/test/waf.v20180125.test.js +24 -24
@@ -1,123 +1,104 @@
1
1
  /**
2
- * 描述如何数据转换
3
-
2
+ * 用来描述ckafka投递目标
4
3
  */
5
- export interface Transform {
4
+ export interface CkafkaTargetParams {
6
5
  /**
7
- * 描述如何数据转换
6
+ * 要投递到的ckafka topic
8
7
  */
9
- OutputStructs: Array<OutputStructParam>;
8
+ TopicName: string;
9
+ /**
10
+ * 重试策略
11
+ */
12
+ RetryPolicy: RetryPolicy;
10
13
  }
11
14
  /**
12
- * ListConnections返回参数结构体
15
+ * DeleteTarget返回参数结构体
13
16
  */
14
- export interface ListConnectionsResponse {
15
- /**
16
- * 连接器信息
17
- */
18
- Connections: Array<Connection>;
19
- /**
20
- * 连接器总数
21
- */
22
- TotalCount: number;
17
+ export interface DeleteTargetResponse {
23
18
  /**
24
19
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
25
20
  */
26
21
  RequestId?: string;
27
22
  }
28
23
  /**
29
- * 描述Es规则目标
24
+ * DeleteRule请求参数结构体
30
25
  */
31
- export interface ESTargetParams {
32
- /**
33
- * 网络连接类型
34
- */
35
- NetMode: string;
36
- /**
37
- * 索引前缀
38
- */
39
- IndexPrefix: string;
40
- /**
41
- * es日志轮换粒度
42
- */
43
- RotationInterval: string;
44
- /**
45
- * DTS事件配置
46
- */
47
- OutputMode: string;
26
+ export interface DeleteRuleRequest {
48
27
  /**
49
- * DTS索引配置
28
+ * 事件集ID
50
29
  */
51
- IndexSuffixMode: string;
30
+ EventBusId: string;
52
31
  /**
53
- * es模版类型
32
+ * 事件规则ID
54
33
  */
55
- IndexTemplateType?: string;
34
+ RuleId: string;
56
35
  }
57
36
  /**
58
- * GetEventBus返回参数结构体
37
+ * CheckRule请求参数结构体
59
38
  */
60
- export interface GetEventBusResponse {
61
- /**
62
- * 更新时间
63
- */
64
- ModTime?: string;
65
- /**
66
- * 事件集描述
67
- */
68
- Description?: string;
39
+ export interface CheckRuleRequest {
69
40
  /**
70
- * 日志主题ID
41
+ * Event信息
71
42
  */
72
- ClsTopicId?: string;
43
+ Event: string;
73
44
  /**
74
- * 创建时间
45
+ * EventPattern信息
75
46
  */
76
- AddTime?: string;
47
+ EventPattern: string;
48
+ }
49
+ /**
50
+ * 日志存储过滤条件
51
+ */
52
+ export interface LogFilters {
77
53
  /**
78
- * 日志集ID
54
+ * 过滤字段名称
79
55
  */
80
- ClsLogsetId?: string;
56
+ Key: string;
81
57
  /**
82
- * 事件集名称
58
+ * 运算符, 全等 eq,不等 neq,相似 like,排除相似 not like, 小于 lt,小于且等于 lte,大于 gt,大于且等于 gte,在范围内 range,不在范围内 norange
83
59
  */
84
- EventBusName?: string;
60
+ Operator: string;
85
61
  /**
86
- * 事件集ID
62
+ * 过滤值,范围运算需要同时输入两个值,以英文逗号分隔
63
+
87
64
  */
88
- EventBusId?: string;
65
+ Value: string;
66
+ }
67
+ /**
68
+ * CreateEventBus请求参数结构体
69
+ */
70
+ export interface CreateEventBusRequest {
89
71
  /**
90
- * (已废弃)事件集类型
72
+ * 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
91
73
  */
92
- Type?: string;
74
+ EventBusName: string;
93
75
  /**
94
- * 计费模式
76
+ * 事件集描述,不限字符类型,200字符描述以内
95
77
  */
96
- PayMode?: string;
78
+ Description?: string;
97
79
  /**
98
- * EB日志存储时长
99
- 注意:此字段可能返回 null,表示取不到有效值。
80
+ * EB存储时长
100
81
  */
101
82
  SaveDays?: number;
102
83
  /**
103
- * EB日志主题ID
104
- 注意:此字段可能返回 null,表示取不到有效值。
105
- */
106
- LogTopicId?: string;
107
- /**
108
- * 是否开启存储
109
- 注意:此字段可能返回 null,表示取不到有效值。
84
+ * EB是否开启存储
110
85
  */
111
86
  EnableStore?: boolean;
87
+ }
88
+ /**
89
+ * 平台事件匹配规则
90
+ */
91
+ export interface PlatformEventSummary {
112
92
  /**
113
- * 消息序列,是否有序
93
+ * 平台事件名称
114
94
  注意:此字段可能返回 null,表示取不到有效值。
115
95
  */
116
- LinkMode?: string;
96
+ EventName?: string;
117
97
  /**
118
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
98
+ * 平台事件匹配规则
99
+ 注意:此字段可能返回 null,表示取不到有效值。
119
100
  */
120
- RequestId?: string;
101
+ EventPattern?: string;
121
102
  }
122
103
  /**
123
104
  * 用来描述一个ckafka投递目标的重试策略
@@ -133,60 +114,63 @@ export interface RetryPolicy {
133
114
  MaxRetryAttempts: number;
134
115
  }
135
116
  /**
136
- * 用来描述ckafka投递目标
117
+ * CreateTransformation请求参数结构体
137
118
  */
138
- export interface CkafkaTargetParams {
119
+ export interface CreateTransformationRequest {
139
120
  /**
140
- * 要投递到的ckafka topic
121
+ * 事件总线 id
141
122
  */
142
- TopicName: string;
123
+ EventBusId: string;
143
124
  /**
144
- * 重试策略
125
+ * 规则id
145
126
  */
146
- RetryPolicy: RetryPolicy;
127
+ RuleId: string;
128
+ /**
129
+ * 一个转换规则列表,当前仅限定一个
130
+ */
131
+ Transformations: Array<Transformation>;
147
132
  }
148
133
  /**
149
- * ListConnections请求参数结构体
134
+ * SearchLog返回参数结构体
150
135
  */
151
- export interface ListConnectionsRequest {
136
+ export interface SearchLogResponse {
152
137
  /**
153
- * 事件集ID
138
+ * 日志总数
139
+ 注意:此字段可能返回 null,表示取不到有效值。
154
140
  */
155
- EventBusId: string;
141
+ Total?: number;
156
142
  /**
157
- * 根据哪个字段进行返回结果排序,目前支持如下以下字段:AddTime, ModTime
143
+ * 每页日志条数
144
+ 注意:此字段可能返回 null,表示取不到有效值。
158
145
  */
159
- OrderBy?: string;
146
+ Limit?: number;
160
147
  /**
161
- * 返回数量,默认为20,最大值为100。
148
+ * 页码
149
+ 注意:此字段可能返回 null,表示取不到有效值。
162
150
  */
163
- Limit?: number;
151
+ Page?: number;
164
152
  /**
165
- * 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
153
+ * 日志检索结果
154
+ 注意:此字段可能返回 null,表示取不到有效值。
166
155
  */
167
- Order?: string;
156
+ Results?: Array<SearchLogResult>;
168
157
  /**
169
- * 偏移量,默认为0
158
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId
170
159
  */
171
- Offset?: number;
160
+ RequestId?: string;
172
161
  }
173
162
  /**
174
- * DeleteRule请求参数结构体
163
+ * ListEventBuses返回参数结构体
175
164
  */
176
- export interface DeleteRuleRequest {
165
+ export interface ListEventBusesResponse {
177
166
  /**
178
- * 事件集ID
167
+ * 事件集信息
179
168
  */
180
- EventBusId: string;
169
+ EventBuses?: Array<EventBus>;
181
170
  /**
182
- * 事件规则ID
171
+ * 事件集总数
183
172
  */
184
- RuleId: string;
185
- }
186
- /**
187
- * UpdateRule返回参数结构体
188
- */
189
- export interface UpdateRuleResponse {
173
+ TotalCount?: number;
190
174
  /**
191
175
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
192
176
  */
@@ -214,237 +198,286 @@ export interface CreateTargetRequest {
214
198
  RuleId: string;
215
199
  }
216
200
  /**
217
- * DeleteTarget返回参数结构体
201
+ * 日志检索详情
218
202
  */
219
- export interface DeleteTargetResponse {
203
+ export interface SearchLogResult {
220
204
  /**
221
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
205
+ * 单条日志上报时间
206
+ 注意:此字段可能返回 null,表示取不到有效值。
222
207
  */
223
- RequestId?: string;
224
- }
225
- /**
226
- * UpdateRule请求参数结构体
227
- */
228
- export interface UpdateRuleRequest {
208
+ Timestamp?: string;
229
209
  /**
230
- * 事件规则ID
210
+ * 日志内容详情
211
+ 注意:此字段可能返回 null,表示取不到有效值。
231
212
  */
232
- RuleId: string;
213
+ Message?: string;
233
214
  /**
234
- * 事件集ID
215
+ * 事件来源
216
+ 注意:此字段可能返回 null,表示取不到有效值。
235
217
  */
236
- EventBusId: string;
218
+ Source?: string;
237
219
  /**
238
- * 使能开关。
220
+ * 事件类型
221
+ 注意:此字段可能返回 null,表示取不到有效值。
239
222
  */
240
- Enable?: boolean;
223
+ Type?: string;
241
224
  /**
242
- * 规则描述,不限字符类型,200字符描述以内。
225
+ * 事件匹配规则
226
+ 注意:此字段可能返回 null,表示取不到有效值。
243
227
  */
244
- Description?: string;
228
+ RuleIds?: string;
245
229
  /**
246
- * 参考:[事件模式](https://cloud.tencent.com/document/product/1359/56084)
230
+ * 实例ID
231
+ 注意:此字段可能返回 null,表示取不到有效值。
247
232
  */
248
- EventPattern?: string;
233
+ Subject?: string;
249
234
  /**
250
- * 事件规则名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
235
+ * 地域
236
+ 注意:此字段可能返回 null,表示取不到有效值。
251
237
  */
252
- RuleName?: string;
238
+ Region?: string;
239
+ /**
240
+ * 事件状态
241
+ 注意:此字段可能返回 null,表示取不到有效值。
242
+ */
243
+ Status?: string;
253
244
  }
254
245
  /**
255
- * DescribeLogTagValue请求参数结构体
246
+ * CreateRule返回参数结构体
256
247
  */
257
- export interface DescribeLogTagValueRequest {
248
+ export interface CreateRuleResponse {
258
249
  /**
259
- * 起始时间
250
+ * 事件规则ID
260
251
  */
261
- StartTime: number;
252
+ RuleId: string;
262
253
  /**
263
- * 结束时间
254
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
264
255
  */
265
- EndTime: number;
256
+ RequestId?: string;
257
+ }
258
+ /**
259
+ * UpdateRule返回参数结构体
260
+ */
261
+ export interface UpdateRuleResponse {
266
262
  /**
267
- * 事件集ID
263
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
268
264
  */
269
- EventBusId: string;
270
- /**
271
- * 聚合字段
272
- */
273
- GroupField: string;
274
- /**
275
- * 页数
276
- */
277
- Page: number;
278
- /**
279
- * 每页数据大小
280
- */
281
- Limit: number;
265
+ RequestId?: string;
266
+ }
267
+ /**
268
+ * DeleteTransformation返回参数结构体
269
+ */
270
+ export interface DeleteTransformationResponse {
282
271
  /**
283
- * 筛选条件
272
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
284
273
  */
285
- Filter?: Array<LogFilter>;
274
+ RequestId?: string;
286
275
  }
287
276
  /**
288
- * 目标简要信息
277
+ * ListPlatformProducts返回参数结构体
289
278
  */
290
- export interface TargetBrief {
279
+ export interface ListPlatformProductsResponse {
291
280
  /**
292
- * 目标ID
281
+ * 平台产品列表
293
282
  */
294
- TargetId: string;
283
+ PlatformProducts?: Array<PlatformProduct>;
295
284
  /**
296
- * 目标类型
285
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
297
286
  */
298
- Type: string;
287
+ RequestId?: string;
299
288
  }
300
289
  /**
301
- * Data Transfer Service参数
290
+ * GetEventBus请求参数结构体
302
291
  */
303
- export declare type DTSParams = null;
292
+ export interface GetEventBusRequest {
293
+ /**
294
+ * 事件集ID
295
+ */
296
+ EventBusId: string;
297
+ }
304
298
  /**
305
- * ListRules返回参数结构体
299
+ * UpdateConnection请求参数结构体
306
300
  */
307
- export interface ListRulesResponse {
301
+ export interface UpdateConnectionRequest {
308
302
  /**
309
- * 事件规则信息
303
+ * 连接器ID
310
304
  */
311
- Rules: Array<Rule>;
305
+ ConnectionId: string;
312
306
  /**
313
- * 事件规则总数
307
+ * 事件集ID
314
308
  */
315
- TotalCount: number;
309
+ EventBusId: string;
316
310
  /**
317
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
311
+ * 使能开关
318
312
  */
319
- RequestId?: string;
313
+ Enable?: boolean;
314
+ /**
315
+ * 描述
316
+ */
317
+ Description?: string;
318
+ /**
319
+ * 连接器名称
320
+ */
321
+ ConnectionName?: string;
320
322
  }
321
323
  /**
322
- * CreateTarget返回参数结构体
324
+ * Transform输出参数
323
325
  */
324
- export interface CreateTargetResponse {
326
+ export interface OutputStructParam {
325
327
  /**
326
- * 目标ID
328
+ * 对应输出json中的key
327
329
  */
328
- TargetId: string;
330
+ Key: string;
329
331
  /**
330
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
332
+ * 可以填json-path也可以支持常量或者内置关键字date类型
331
333
  */
332
- RequestId?: string;
334
+ Value: string;
335
+ /**
336
+ * value的数据类型, 可选值: STRING, NUMBER,BOOLEAN,NULL,SYS_VARIABLE,JSONPATH
337
+ */
338
+ ValueType: string;
333
339
  }
334
340
  /**
335
- * CheckRule请求参数结构体
341
+ * GetRule请求参数结构体
336
342
  */
337
- export interface CheckRuleRequest {
343
+ export interface GetRuleRequest {
338
344
  /**
339
- * Event信息
345
+ * 事件集ID
340
346
  */
341
- Event: string;
347
+ EventBusId: string;
342
348
  /**
343
- * EventPattern信息
349
+ * 事件规则ID
344
350
  */
345
- EventPattern: string;
351
+ RuleId: string;
346
352
  }
347
353
  /**
348
- * GetRule返回参数结构体
354
+ * 日志查询相关接口filter参数定义
349
355
  */
350
- export interface GetRuleResponse {
356
+ export interface LogFilter {
351
357
  /**
352
- * 事件集id
358
+ * 过滤字段名称
353
359
  */
354
- EventBusId?: string;
360
+ Key?: string;
355
361
  /**
356
- * 事件规则id
362
+ * 运算符,全等 eq,不等 neq,相似 like,排除相似 not like, 小于 lt,小于且等于 lte,大于 gt,大于且等于 gte,在范围内 range,不在范围内 norange
357
363
  */
358
- RuleId?: string;
364
+ Operator?: string;
359
365
  /**
360
- * 事件规则名称
366
+ * 过滤值,范围运算需要同时输入两个值,以英文逗号分隔
367
+
361
368
  */
362
- RuleName?: string;
369
+ Value?: string;
363
370
  /**
364
- * 事件规则状态
371
+ * 该层级filters逻辑关系,取值 "AND" 或 "OR"
365
372
  */
366
- Status?: string;
373
+ Type?: string;
367
374
  /**
368
- * 使能开关
375
+ * LogFilters数组
369
376
  */
370
- Enable?: boolean;
377
+ Filters?: Array<LogFilters>;
378
+ }
379
+ /**
380
+ * APIGWParams描述
381
+ */
382
+ export interface APIGWParams {
371
383
  /**
372
- * 事件规则描述
384
+ * HTTPS
373
385
  */
374
- Description?: string;
386
+ Protocol: string;
375
387
  /**
376
- * 事件模式
388
+ * POST
377
389
  */
378
- EventPattern?: string;
390
+ Method: string;
391
+ }
392
+ /**
393
+ * 平台产品基础信息
394
+ */
395
+ export interface PlatformProduct {
379
396
  /**
380
- * 创建时间
397
+ * 平台产品名称
381
398
  */
382
- AddTime?: string;
399
+ ProductName?: string;
383
400
  /**
384
- * 更新时间
401
+ * 平台产品类型
385
402
  */
386
- ModTime?: string;
403
+ ProductType?: string;
404
+ }
405
+ /**
406
+ * 描述如何提取数据
407
+ */
408
+ export interface Extraction {
387
409
  /**
388
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
410
+ * JsonPath, 不指定则使用默认值$.
389
411
  */
390
- RequestId?: string;
412
+ ExtractionInputPath: string;
413
+ /**
414
+ * 取值: TEXT/JSON
415
+ */
416
+ Format: string;
417
+ /**
418
+ * 仅在Text需要传递
419
+ 注意:此字段可能返回 null,表示取不到有效值。
420
+ */
421
+ TextParams?: TextParams;
391
422
  }
392
423
  /**
393
- * CreateConnection返回参数结构体
424
+ * Data Transfer Service参数
394
425
  */
395
- export interface CreateConnectionResponse {
426
+ export declare type DTSParams = null;
427
+ /**
428
+ * CreateTarget返回参数结构体
429
+ */
430
+ export interface CreateTargetResponse {
396
431
  /**
397
- * 连接器ID
432
+ * 目标ID
398
433
  */
399
- ConnectionId: string;
434
+ TargetId: string;
400
435
  /**
401
436
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
402
437
  */
403
438
  RequestId?: string;
404
439
  }
405
440
  /**
406
- * 事件集信息
441
+ * UpdateRule请求参数结构体
407
442
  */
408
- export interface EventBus {
409
- /**
410
- * 更新时间
411
- */
412
- ModTime: string;
443
+ export interface UpdateRuleRequest {
413
444
  /**
414
- * 事件集描述,不限字符类型,200字符描述以内
445
+ * 事件规则ID
415
446
  */
416
- Description: string;
447
+ RuleId: string;
417
448
  /**
418
- * 创建时间
449
+ * 事件集ID
419
450
  */
420
- AddTime: string;
451
+ EventBusId: string;
421
452
  /**
422
- * 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
453
+ * 使能开关。
423
454
  */
424
- EventBusName: string;
455
+ Enable?: boolean;
425
456
  /**
426
- * 事件集ID
457
+ * 规则描述,不限字符类型,200字符描述以内。
427
458
  */
428
- EventBusId: string;
459
+ Description?: string;
429
460
  /**
430
- * 事件集类型
461
+ * 参考:[事件模式](https://cloud.tencent.com/document/product/1359/56084)
431
462
  */
432
- Type: string;
463
+ EventPattern?: string;
433
464
  /**
434
- * 计费模式
435
- 注意:此字段可能返回 null,表示取不到有效值。
465
+ * 事件规则名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
436
466
  */
437
- PayMode?: string;
467
+ RuleName?: string;
468
+ }
469
+ /**
470
+ * CreateConnection返回参数结构体
471
+ */
472
+ export interface CreateConnectionResponse {
438
473
  /**
439
- * 连接器基础信息
440
- 注意:此字段可能返回 null,表示取不到有效值。
474
+ * 连接器ID
441
475
  */
442
- ConnectionBriefs?: Array<ConnectionBrief>;
476
+ ConnectionId: string;
443
477
  /**
444
- * 目标简要信息
445
- 注意:此字段可能返回 null,表示取不到有效值。
478
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
446
479
  */
447
- TargetBriefs?: Array<TargetBrief>;
480
+ RequestId?: string;
448
481
  }
449
482
  /**
450
483
  * ListTargets请求参数结构体
@@ -496,610 +529,519 @@ export interface Transformation {
496
529
  Transform?: Transform;
497
530
  }
498
531
  /**
499
- * Target信息
532
+ * UpdateTransformation返回参数结构体
500
533
  */
501
- export interface Target {
534
+ export interface UpdateTransformationResponse {
502
535
  /**
503
- * 目标类型
536
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
504
537
  */
505
- Type: string;
538
+ RequestId?: string;
539
+ }
540
+ /**
541
+ * CheckTransformation返回参数结构体
542
+ */
543
+ export interface CheckTransformationResponse {
506
544
  /**
507
- * 事件集ID
545
+ * 经过Transformations处理之后的数据
508
546
  */
509
- EventBusId: string;
547
+ Output: string;
510
548
  /**
511
- * 目标ID
549
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
512
550
  */
513
- TargetId: string;
551
+ RequestId?: string;
552
+ }
553
+ /**
554
+ * ListTargets返回参数结构体
555
+ */
556
+ export interface ListTargetsResponse {
514
557
  /**
515
- * 目标描述
558
+ * 目标总数
516
559
  */
517
- TargetDescription: TargetDescription;
560
+ TotalCount: number;
518
561
  /**
519
- * 事件规则ID
562
+ * 目标信息
520
563
  */
521
- RuleId: string;
564
+ Targets: Array<Target>;
522
565
  /**
523
- * 开启批量投递使能
524
- 注意:此字段可能返回 null,表示取不到有效值。
566
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
525
567
  */
526
- EnableBatchDelivery: boolean;
568
+ RequestId?: string;
569
+ }
570
+ /**
571
+ * 描述如何过滤数据
572
+ */
573
+ export interface EtlFilter {
527
574
  /**
528
- * 批量投递最长等待时间
529
- 注意:此字段可能返回 null,表示取不到有效值。
530
- */
531
- BatchTimeout: number;
532
- /**
533
- * 批量投递最大事件条数
534
- 注意:此字段可能返回 null,表示取不到有效值。
535
- */
536
- BatchEventCount: number;
537
- }
538
- /**
539
- * ListRules请求参数结构体
540
- */
541
- export interface ListRulesRequest {
542
- /**
543
- * 事件集ID
544
- */
545
- EventBusId: string;
546
- /**
547
- * 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)
548
- */
549
- OrderBy?: string;
550
- /**
551
- * 返回数量,默认为20,最大值为100。
552
- */
553
- Limit?: number;
554
- /**
555
- * 分页偏移量,默认为0。
556
- */
557
- Offset?: number;
558
- /**
559
- * 以升序还是降序的方式返回结果,可选值 ASC(升序) 和 DESC(降序)
575
+ * 语法Rule规则保持一致
560
576
  */
561
- Order?: string;
577
+ Filter: string;
562
578
  }
563
579
  /**
564
- * 云函数参数
580
+ * ConnectionDescription描述
565
581
  */
566
- export interface SCFParams {
567
- /**
568
- * 批量投递最长等待时间
569
- */
570
- BatchTimeout?: number;
582
+ export interface ConnectionDescription {
571
583
  /**
572
- * 批量投递最大事件条数
584
+ * 资源qcs六段式,更多参考 [资源六段式](https://cloud.tencent.com/document/product/598/10606)
573
585
  */
574
- BatchEventCount?: number;
586
+ ResourceDescription: string;
575
587
  /**
576
- * 开启批量投递使能
588
+ * apigw参数
589
+ 注意:此字段可能返回 null,表示取不到有效值。
577
590
  */
578
- EnableBatchDelivery?: boolean;
579
- }
580
- /**
581
- * rule对应的dlq配置
582
- */
583
- export interface DeadLetterConfig {
591
+ APIGWParams?: APIGWParams;
584
592
  /**
585
- * 支持dlq、丢弃、忽略错误继续传递三种模式, 分别对应: DLQ,DROP,IGNORE_ERROR
593
+ * ckafka参数
594
+ 注意:此字段可能返回 null,表示取不到有效值。
586
595
  */
587
- DisposeMethod: string;
596
+ CkafkaParams?: CkafkaParams;
588
597
  /**
589
- * 设置了DLQ方式后,此选项必填. 错误消息会被投递到对应的kafka topic中
598
+ * data transfer service (DTS)参数
590
599
  注意:此字段可能返回 null,表示取不到有效值。
591
600
  */
592
- CkafkaDeliveryParams?: CkafkaDeliveryParams;
601
+ DTSParams?: DTSParams;
593
602
  }
594
603
  /**
595
- * 日志存储过滤条件
604
+ * Target信息
596
605
  */
597
- export interface LogFilters {
598
- /**
599
- * 过滤字段名称
600
- */
601
- Key: string;
602
- /**
603
- * 运算符, 全等 eq,不等 neq,相似 like,排除相似 not like, 小于 lt,小于且等于 lte,大于 gt,大于且等于 gte,在范围内 range,不在范围内 norange
604
- */
605
- Operator: string;
606
+ export interface Target {
606
607
  /**
607
- * 过滤值,范围运算需要同时输入两个值,以英文逗号分隔
608
-
608
+ * 目标类型
609
609
  */
610
- Value: string;
611
- }
612
- /**
613
- * UpdateEventBus请求参数结构体
614
- */
615
- export interface UpdateEventBusRequest {
610
+ Type: string;
616
611
  /**
617
612
  * 事件集ID
618
613
  */
619
614
  EventBusId: string;
620
615
  /**
621
- * 事件集描述,不限字符类型,200字符描述以内
622
- */
623
- Description?: string;
624
- /**
625
- * 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
626
- */
627
- EventBusName?: string;
628
- /**
629
- * EB日志存储时长
630
- */
631
- SaveDays?: number;
632
- /**
633
- * EB日志主题ID
616
+ * 目标ID
634
617
  */
635
- LogTopicId?: string;
618
+ TargetId: string;
636
619
  /**
637
- * 是否开启存储
620
+ * 目标描述
638
621
  */
639
- EnableStore?: boolean;
640
- }
641
- /**
642
- * CreateEventBus请求参数结构体
643
- */
644
- export interface CreateEventBusRequest {
622
+ TargetDescription: TargetDescription;
645
623
  /**
646
- * 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
624
+ * 事件规则ID
647
625
  */
648
- EventBusName: string;
626
+ RuleId: string;
649
627
  /**
650
- * 事件集描述,不限字符类型,200字符描述以内
628
+ * 开启批量投递使能
629
+ 注意:此字段可能返回 null,表示取不到有效值。
651
630
  */
652
- Description?: string;
631
+ EnableBatchDelivery: boolean;
653
632
  /**
654
- * EB存储时长
633
+ * 批量投递最长等待时间
634
+ 注意:此字段可能返回 null,表示取不到有效值。
655
635
  */
656
- SaveDays?: number;
636
+ BatchTimeout: number;
657
637
  /**
658
- * EB是否开启存储
638
+ * 批量投递最大事件条数
639
+ 注意:此字段可能返回 null,表示取不到有效值。
659
640
  */
660
- EnableStore?: boolean;
641
+ BatchEventCount: number;
661
642
  }
662
643
  /**
663
- * PutEvents返回参数结构体
644
+ * DeleteEventBus请求参数结构体
664
645
  */
665
- export interface PutEventsResponse {
646
+ export interface DeleteEventBusRequest {
666
647
  /**
667
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
648
+ * 事件集ID
668
649
  */
669
- RequestId?: string;
650
+ EventBusId: string;
670
651
  }
671
652
  /**
672
- * CreateRule请求参数结构体
653
+ * ListEventBuses请求参数结构体
673
654
  */
674
- export interface CreateRuleRequest {
675
- /**
676
- * 参考:[事件模式](https://cloud.tencent.com/document/product/1359/56084)
677
- */
678
- EventPattern: string;
679
- /**
680
- * 事件集ID。
681
- */
682
- EventBusId: string;
683
- /**
684
- * 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
685
- */
686
- RuleName: string;
687
- /**
688
- * 使能开关。
689
- */
690
- Enable?: boolean;
655
+ export interface ListEventBusesRequest {
691
656
  /**
692
- * 事件集描述,不限字符类型,200字符描述以内
657
+ * 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)
693
658
  */
694
- Description?: string;
695
- }
696
- /**
697
- * 描述如何切分数据
698
- */
699
- export interface TextParams {
659
+ OrderBy?: string;
700
660
  /**
701
- * 逗号、| 、制表符、空格、换行符、%、#,限制长度为 1
702
- 注意:此字段可能返回 null,表示取不到有效值。
661
+ * 返回数量,默认为20,最大值为100
703
662
  */
704
- Separator?: string;
663
+ Limit?: number;
705
664
  /**
706
- * 填写正则表达式:长度128
707
- 注意:此字段可能返回 null,表示取不到有效值。
665
+ * 以升序还是降序的方式返回结果,可选值 ASC(升序) 和 DESC(降序)
708
666
  */
709
- Regex?: string;
710
- }
711
- /**
712
- * DeleteConnection返回参数结构体
713
- */
714
- export interface DeleteConnectionResponse {
667
+ Order?: string;
715
668
  /**
716
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId
669
+ * 过滤条件,详见下表:实例过滤条件表。每次请求的Filters的上限为10,Filter.Values的上限为5
717
670
  */
718
- RequestId?: string;
719
- }
720
- /**
721
- * DeleteRule返回参数结构体
722
- */
723
- export interface DeleteRuleResponse {
671
+ Filters?: Array<Filter>;
724
672
  /**
725
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId
673
+ * 分页偏移量,默认为0
726
674
  */
727
- RequestId?: string;
675
+ Offset?: number;
728
676
  }
729
677
  /**
730
- * GetTransformation返回参数结构体
678
+ * CreateTransformation返回参数结构体
731
679
  */
732
- export interface GetTransformationResponse {
680
+ export interface CreateTransformationResponse {
733
681
  /**
734
- * 转换规则列表
682
+ * 生成的转换器id
735
683
  */
736
- Transformations: Array<Transformation>;
684
+ TransformationId: string;
737
685
  /**
738
686
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
739
687
  */
740
688
  RequestId?: string;
741
689
  }
742
690
  /**
743
- * 规则信息
691
+ * 平台事件名称
744
692
  */
745
- export interface Rule {
746
- /**
747
- * 状态
748
- */
749
- Status: string;
693
+ export interface PlatformEventDetail {
750
694
  /**
751
- * 修改时间
752
- */
753
- ModTime: string;
754
- /**
755
- * 使能开关
756
- */
757
- Enable: boolean;
758
- /**
759
- * 描述
760
- */
761
- Description: string;
762
- /**
763
- * 规则ID
764
- */
765
- RuleId: string;
766
- /**
767
- * 创建时间
768
- */
769
- AddTime: string;
770
- /**
771
- * 事件集ID
772
- */
773
- EventBusId: string;
774
- /**
775
- * 规则名称
776
- */
777
- RuleName: string;
778
- /**
779
- * Target 简要信息
695
+ * 事件名称
780
696
  注意:此字段可能返回 null,表示取不到有效值。
781
697
  */
782
- Targets: Array<TargetBrief>;
698
+ EventName?: string;
783
699
  /**
784
- * rule设置的dlq规则. 可能为null
700
+ * 事件类型
785
701
  注意:此字段可能返回 null,表示取不到有效值。
786
702
  */
787
- DeadLetterConfig: DeadLetterConfig;
703
+ EventType?: string;
788
704
  }
789
705
  /**
790
- * CreateTransformation请求参数结构体
706
+ * DeleteTransformation请求参数结构体
791
707
  */
792
- export interface CreateTransformationRequest {
708
+ export interface DeleteTransformationRequest {
793
709
  /**
794
- * 事件总线 id
710
+ * 事件集ID
795
711
  */
796
712
  EventBusId: string;
797
713
  /**
798
- * 规则id
714
+ * 规则ID
799
715
  */
800
716
  RuleId: string;
801
717
  /**
802
- * 一个转换规则列表,当前仅限定一个
718
+ * 转换器id
803
719
  */
804
- Transformations: Array<Transformation>;
720
+ TransformationId: string;
805
721
  }
806
722
  /**
807
- * PublishEvent请求参数结构体
723
+ * Ckafka 连接器参数
808
724
  */
809
- export interface PublishEventRequest {
810
- /**
811
- * 事件列表
812
- */
813
- EventList: Array<Event>;
725
+ export interface CkafkaParams {
814
726
  /**
815
- * 事件集ID
727
+ * kafka offset
816
728
  */
817
- EventBusId: string;
818
- }
819
- /**
820
- * 描述如何过滤数据
821
- */
822
- export interface EtlFilter {
729
+ Offset: string;
823
730
  /**
824
- * 语法Rule规则保持一致
731
+ * ckafka topic
825
732
  */
826
- Filter: string;
733
+ TopicName: string;
827
734
  }
828
735
  /**
829
- * SearchLog返回参数结构体
736
+ * eb event信息
830
737
  */
831
- export interface SearchLogResponse {
738
+ export interface Event {
832
739
  /**
833
- * 日志总数
834
- 注意:此字段可能返回 null,表示取不到有效值。
740
+ * 事件源的信息,新产品上报必须符合EB的规范
835
741
  */
836
- Total?: number;
742
+ Source: string;
837
743
  /**
838
- * 每页日志条数
839
- 注意:此字段可能返回 null,表示取不到有效值。
744
+ * 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串
840
745
  */
841
- Limit?: number;
746
+ Data: string;
842
747
  /**
843
- * 页码
844
- 注意:此字段可能返回 null,表示取不到有效值。
748
+ * 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段
845
749
  */
846
- Page?: number;
750
+ Type: string;
847
751
  /**
848
- * 日志检索结果
849
- 注意:此字段可能返回 null,表示取不到有效值。
752
+ * 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx
850
753
  */
851
- Results?: Array<SearchLogResult>;
754
+ Subject: string;
852
755
  /**
853
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
756
+ * 事件发生的毫秒时间戳,
757
+ time.Now().UnixNano()/1e6
854
758
  */
855
- RequestId?: string;
759
+ Time?: number;
856
760
  }
857
761
  /**
858
- * CheckTransformation返回参数结构体
762
+ * UpdateTarget请求参数结构体
859
763
  */
860
- export interface CheckTransformationResponse {
764
+ export interface UpdateTargetRequest {
861
765
  /**
862
- * 经过Transformations处理之后的数据
766
+ * 事件集ID
863
767
  */
864
- Output: string;
768
+ EventBusId: string;
865
769
  /**
866
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
770
+ * 事件规则ID
867
771
  */
868
- RequestId?: string;
869
- }
870
- /**
871
- * ListTargets返回参数结构体
872
- */
873
- export interface ListTargetsResponse {
772
+ RuleId: string;
874
773
  /**
875
- * 目标总数
774
+ * 事件目标ID
876
775
  */
877
- TotalCount: number;
776
+ TargetId: string;
878
777
  /**
879
- * 目标信息
778
+ * 开启批量投递使能
880
779
  */
881
- Targets: Array<Target>;
780
+ EnableBatchDelivery?: boolean;
882
781
  /**
883
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
782
+ * 批量投递最长等待时间
884
783
  */
885
- RequestId?: string;
784
+ BatchTimeout?: number;
785
+ /**
786
+ * 批量投递最大事件条数
787
+ */
788
+ BatchEventCount?: number;
886
789
  }
887
790
  /**
888
- * ListEventBuses返回参数结构体
791
+ * ListConnections返回参数结构体
889
792
  */
890
- export interface ListEventBusesResponse {
793
+ export interface ListConnectionsResponse {
891
794
  /**
892
- * 事件集信息
795
+ * 连接器信息
893
796
  */
894
- EventBuses?: Array<EventBus>;
797
+ Connections: Array<Connection>;
895
798
  /**
896
- * 事件集总数
799
+ * 连接器总数
897
800
  */
898
- TotalCount?: number;
801
+ TotalCount: number;
899
802
  /**
900
803
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
901
804
  */
902
805
  RequestId?: string;
903
806
  }
904
807
  /**
905
- * CheckRule返回参数结构体
808
+ * ListPlatformProducts请求参数结构体
906
809
  */
907
- export interface CheckRuleResponse {
908
- /**
909
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
910
- */
911
- RequestId?: string;
912
- }
810
+ export declare type ListPlatformProductsRequest = null;
913
811
  /**
914
- * ConnectionDescription描述
812
+ * PublishEvent请求参数结构体
915
813
  */
916
- export interface ConnectionDescription {
814
+ export interface PublishEventRequest {
917
815
  /**
918
- * 资源qcs六段式,更多参考 [资源六段式](https://cloud.tencent.com/document/product/598/10606)
816
+ * 事件列表
919
817
  */
920
- ResourceDescription: string;
818
+ EventList: Array<Event>;
921
819
  /**
922
- * apigw参数
923
- 注意:此字段可能返回 null,表示取不到有效值。
820
+ * 事件集ID
924
821
  */
925
- APIGWParams?: APIGWParams;
822
+ EventBusId: string;
823
+ }
824
+ /**
825
+ * 描述如何数据转换
826
+
827
+ */
828
+ export interface Transform {
926
829
  /**
927
- * ckafka参数
928
- 注意:此字段可能返回 null,表示取不到有效值。
830
+ * 描述如何数据转换
929
831
  */
930
- CkafkaParams?: CkafkaParams;
832
+ OutputStructs: Array<OutputStructParam>;
833
+ }
834
+ /**
835
+ * ListPlatformEventNames请求参数结构体
836
+ */
837
+ export interface ListPlatformEventNamesRequest {
931
838
  /**
932
- * data transfer service (DTS)参数
933
- 注意:此字段可能返回 null,表示取不到有效值。
839
+ * 平台产品类型
934
840
  */
935
- DTSParams?: DTSParams;
841
+ ProductType: string;
936
842
  }
937
843
  /**
938
- * 日志检索详情
844
+ * 事件集信息
939
845
  */
940
- export interface SearchLogResult {
846
+ export interface EventBus {
941
847
  /**
942
- * 单条日志上报时间
943
- 注意:此字段可能返回 null,表示取不到有效值。
848
+ * 更新时间
944
849
  */
945
- Timestamp?: string;
850
+ ModTime: string;
946
851
  /**
947
- * 日志内容详情
948
- 注意:此字段可能返回 null,表示取不到有效值。
852
+ * 事件集描述,不限字符类型,200字符描述以内
949
853
  */
950
- Message?: string;
854
+ Description: string;
951
855
  /**
952
- * 事件来源
953
- 注意:此字段可能返回 null,表示取不到有效值。
856
+ * 创建时间
954
857
  */
955
- Source?: string;
858
+ AddTime: string;
956
859
  /**
957
- * 事件类型
958
- 注意:此字段可能返回 null,表示取不到有效值。
860
+ * 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
959
861
  */
960
- Type?: string;
862
+ EventBusName: string;
961
863
  /**
962
- * 事件匹配规则
963
- 注意:此字段可能返回 null,表示取不到有效值。
864
+ * 事件集ID
964
865
  */
965
- RuleIds?: string;
866
+ EventBusId: string;
966
867
  /**
967
- * 实例ID
868
+ * 事件集类型
869
+ */
870
+ Type: string;
871
+ /**
872
+ * 计费模式
968
873
  注意:此字段可能返回 null,表示取不到有效值。
969
874
  */
970
- Subject?: string;
875
+ PayMode?: string;
971
876
  /**
972
- * 地域
877
+ * 连接器基础信息
973
878
  注意:此字段可能返回 null,表示取不到有效值。
974
879
  */
975
- Region?: string;
880
+ ConnectionBriefs?: Array<ConnectionBrief>;
976
881
  /**
977
- * 事件状态
882
+ * 目标简要信息
978
883
  注意:此字段可能返回 null,表示取不到有效值。
979
884
  */
980
- Status?: string;
885
+ TargetBriefs?: Array<TargetBrief>;
981
886
  }
982
887
  /**
983
- * 用来描述需要投递到kafka topic的参数
888
+ * ListPlatformEventPatterns返回参数结构体
984
889
  */
985
- export interface CkafkaDeliveryParams {
986
- /**
987
- * ckafka topic name
988
- */
989
- TopicName: string;
890
+ export interface ListPlatformEventPatternsResponse {
990
891
  /**
991
- * ckafka资源qcs六段式
892
+ * 平台产品事件匹配规则
992
893
  */
993
- ResourceDescription: string;
994
- }
995
- /**
996
- * UpdateTarget返回参数结构体
997
- */
998
- export interface UpdateTargetResponse {
894
+ EventPatterns?: Array<PlatformEventSummary>;
999
895
  /**
1000
896
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1001
897
  */
1002
898
  RequestId?: string;
1003
899
  }
1004
900
  /**
1005
- * CreateConnection请求参数结构体
901
+ * ListRules请求参数结构体
1006
902
  */
1007
- export interface CreateConnectionRequest {
1008
- /**
1009
- * 连接器描述
1010
- */
1011
- ConnectionDescription: ConnectionDescription;
903
+ export interface ListRulesRequest {
1012
904
  /**
1013
905
  * 事件集ID
1014
906
  */
1015
907
  EventBusId: string;
1016
908
  /**
1017
- * 连接器名称
909
+ * 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)
1018
910
  */
1019
- ConnectionName: string;
911
+ OrderBy?: string;
1020
912
  /**
1021
- * 描述
913
+ * 返回数量,默认为20,最大值为100。
1022
914
  */
1023
- Description?: string;
915
+ Limit?: number;
1024
916
  /**
1025
- * 使能开关
917
+ * 分页偏移量,默认为0。
1026
918
  */
1027
- Enable?: boolean;
919
+ Offset?: number;
1028
920
  /**
1029
- * 类型
921
+ * 以升序还是降序的方式返回结果,可选值 ASC(升序) 和 DESC(降序)
1030
922
  */
1031
- Type?: string;
923
+ Order?: string;
1032
924
  }
1033
925
  /**
1034
- * DeleteEventBus请求参数结构体
926
+ * CreateRule请求参数结构体
1035
927
  */
1036
- export interface DeleteEventBusRequest {
928
+ export interface CreateRuleRequest {
1037
929
  /**
1038
- * 事件集ID
930
+ * 参考:[事件模式](https://cloud.tencent.com/document/product/1359/56084)
931
+ */
932
+ EventPattern: string;
933
+ /**
934
+ * 事件集ID。
1039
935
  */
1040
936
  EventBusId: string;
1041
- }
1042
- /**
1043
- * ListEventBuses请求参数结构体
1044
- */
1045
- export interface ListEventBusesRequest {
1046
937
  /**
1047
- * 根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)
938
+ * 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
1048
939
  */
1049
- OrderBy?: string;
940
+ RuleName: string;
1050
941
  /**
1051
- * 返回数量,默认为20,最大值为100。
942
+ * 使能开关。
1052
943
  */
1053
- Limit?: number;
944
+ Enable?: boolean;
1054
945
  /**
1055
- * 以升序还是降序的方式返回结果,可选值 ASC(升序) 和 DESC(降序)
946
+ * 事件集描述,不限字符类型,200字符描述以内
1056
947
  */
1057
- Order?: string;
948
+ Description?: string;
949
+ }
950
+ /**
951
+ * DeleteConnection返回参数结构体
952
+ */
953
+ export interface DeleteConnectionResponse {
1058
954
  /**
1059
- * 过滤条件,详见下表:实例过滤条件表。每次请求的Filters的上限为10,Filter.Values的上限为5
955
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId
1060
956
  */
1061
- Filters?: Array<Filter>;
957
+ RequestId?: string;
958
+ }
959
+ /**
960
+ * GetTransformation返回参数结构体
961
+ */
962
+ export interface GetTransformationResponse {
1062
963
  /**
1063
- * 分页偏移量,默认为0。
964
+ * 转换规则列表
1064
965
  */
1065
- Offset?: number;
966
+ Transformations: Array<Transformation>;
967
+ /**
968
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
969
+ */
970
+ RequestId?: string;
1066
971
  }
1067
972
  /**
1068
- * PublishEvent返回参数结构体
973
+ * CheckRule返回参数结构体
1069
974
  */
1070
- export interface PublishEventResponse {
975
+ export interface CheckRuleResponse {
1071
976
  /**
1072
977
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1073
978
  */
1074
979
  RequestId?: string;
1075
980
  }
1076
981
  /**
1077
- * CreateTransformation返回参数结构体
982
+ * UpdateTarget返回参数结构体
1078
983
  */
1079
- export interface CreateTransformationResponse {
984
+ export interface UpdateTargetResponse {
1080
985
  /**
1081
- * 生成的转换器id
986
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1082
987
  */
1083
- TransformationId: string;
988
+ RequestId?: string;
989
+ }
990
+ /**
991
+ * PublishEvent返回参数结构体
992
+ */
993
+ export interface PublishEventResponse {
1084
994
  /**
1085
995
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1086
996
  */
1087
997
  RequestId?: string;
1088
998
  }
1089
999
  /**
1090
- * 连接器基础信息
1000
+ * 规则信息
1091
1001
  */
1092
- export interface ConnectionBrief {
1002
+ export interface Rule {
1093
1003
  /**
1094
- * 连接器类型
1004
+ * 状态
1005
+ */
1006
+ Status: string;
1007
+ /**
1008
+ * 修改时间
1009
+ */
1010
+ ModTime: string;
1011
+ /**
1012
+ * 使能开关
1013
+ */
1014
+ Enable: boolean;
1015
+ /**
1016
+ * 描述
1017
+ */
1018
+ Description: string;
1019
+ /**
1020
+ * 规则ID
1021
+ */
1022
+ RuleId: string;
1023
+ /**
1024
+ * 创建时间
1025
+ */
1026
+ AddTime: string;
1027
+ /**
1028
+ * 事件集ID
1029
+ */
1030
+ EventBusId: string;
1031
+ /**
1032
+ * 规则名称
1033
+ */
1034
+ RuleName: string;
1035
+ /**
1036
+ * Target 简要信息
1095
1037
  注意:此字段可能返回 null,表示取不到有效值。
1096
1038
  */
1097
- Type?: string;
1039
+ Targets: Array<TargetBrief>;
1098
1040
  /**
1099
- * 连接器状态
1041
+ * rule设置的dlq规则. 可能为null
1100
1042
  注意:此字段可能返回 null,表示取不到有效值。
1101
1043
  */
1102
- Status?: string;
1044
+ DeadLetterConfig: DeadLetterConfig;
1103
1045
  }
1104
1046
  /**
1105
1047
  * 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
@@ -1149,30 +1091,17 @@ export interface Connection {
1149
1091
  */
1150
1092
  EventBusId: string;
1151
1093
  /**
1152
- * 连接器描述
1153
- */
1154
- ConnectionDescription: ConnectionDescription;
1155
- /**
1156
- * 连接器名称
1157
- */
1158
- ConnectionName: string;
1159
- /**
1160
- * 类型
1161
- */
1162
- Type: string;
1163
- }
1164
- /**
1165
- * PutEvents请求参数结构体
1166
- */
1167
- export interface PutEventsRequest {
1094
+ * 连接器描述
1095
+ */
1096
+ ConnectionDescription: ConnectionDescription;
1168
1097
  /**
1169
- * 事件列表
1098
+ * 连接器名称
1170
1099
  */
1171
- EventList: Array<Event>;
1100
+ ConnectionName: string;
1172
1101
  /**
1173
- * 事件集ID
1102
+ * 类型
1174
1103
  */
1175
- EventBusId: string;
1104
+ Type: string;
1176
1105
  }
1177
1106
  /**
1178
1107
  * DeleteEventBus返回参数结构体
@@ -1183,23 +1112,6 @@ export interface DeleteEventBusResponse {
1183
1112
  */
1184
1113
  RequestId?: string;
1185
1114
  }
1186
- /**
1187
- * GetTransformation请求参数结构体
1188
- */
1189
- export interface GetTransformationRequest {
1190
- /**
1191
- * 事件集ID
1192
- */
1193
- EventBusId: string;
1194
- /**
1195
- * 规则ID
1196
- */
1197
- RuleId: string;
1198
- /**
1199
- * 转换器id
1200
- */
1201
- TransformationId: string;
1202
- }
1203
1115
  /**
1204
1116
  * CreateEventBus返回参数结构体
1205
1117
  */
@@ -1248,212 +1160,377 @@ export interface UpdateTransformationRequest {
1248
1160
  Transformations: Array<Transformation>;
1249
1161
  }
1250
1162
  /**
1251
- * CreateRule返回参数结构体
1163
+ * GetPlatformEventTemplate请求参数结构体
1252
1164
  */
1253
- export interface CreateRuleResponse {
1165
+ export interface GetPlatformEventTemplateRequest {
1254
1166
  /**
1255
- * 事件规则ID
1167
+ * 平台产品事件类型
1256
1168
  */
1257
- RuleId: string;
1169
+ EventType: string;
1170
+ }
1171
+ /**
1172
+ * PutEvents返回参数结构体
1173
+ */
1174
+ export interface PutEventsResponse {
1258
1175
  /**
1259
1176
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1260
1177
  */
1261
1178
  RequestId?: string;
1262
1179
  }
1263
1180
  /**
1264
- * TargetDescription描述
1181
+ * CheckTransformation请求参数结构体
1265
1182
  */
1266
- export interface TargetDescription {
1183
+ export interface CheckTransformationRequest {
1267
1184
  /**
1268
- * QCS资源六段式,更多参考 [资源六段式](https://cloud.tencent.com/document/product/598/10606)
1185
+ * 待处理的json字符串
1269
1186
  */
1270
- ResourceDescription: string;
1187
+ Input: string;
1271
1188
  /**
1272
- * 云函数参数
1189
+ * 一个转换规则列表
1273
1190
  */
1274
- SCFParams?: SCFParams;
1191
+ Transformations: Array<Transformation>;
1192
+ }
1193
+ /**
1194
+ * UpdateConnection返回参数结构体
1195
+ */
1196
+ export interface UpdateConnectionResponse {
1275
1197
  /**
1276
- * Ckafka参数
1198
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1277
1199
  */
1278
- CkafkaTargetParams?: CkafkaTargetParams;
1200
+ RequestId?: string;
1201
+ }
1202
+ /**
1203
+ * UpdateEventBus返回参数结构体
1204
+ */
1205
+ export interface UpdateEventBusResponse {
1279
1206
  /**
1280
- * ElasticSearch参数
1207
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1281
1208
  */
1282
- ESTargetParams?: ESTargetParams;
1209
+ RequestId?: string;
1283
1210
  }
1284
1211
  /**
1285
- * DeleteTransformation返回参数结构体
1212
+ * GetEventBus返回参数结构体
1286
1213
  */
1287
- export interface DeleteTransformationResponse {
1214
+ export interface GetEventBusResponse {
1215
+ /**
1216
+ * 更新时间
1217
+ */
1218
+ ModTime?: string;
1219
+ /**
1220
+ * 事件集描述
1221
+ */
1222
+ Description?: string;
1223
+ /**
1224
+ * 日志主题ID
1225
+ */
1226
+ ClsTopicId?: string;
1227
+ /**
1228
+ * 创建时间
1229
+ */
1230
+ AddTime?: string;
1231
+ /**
1232
+ * 日志集ID
1233
+ */
1234
+ ClsLogsetId?: string;
1235
+ /**
1236
+ * 事件集名称
1237
+ */
1238
+ EventBusName?: string;
1239
+ /**
1240
+ * 事件集ID
1241
+ */
1242
+ EventBusId?: string;
1243
+ /**
1244
+ * (已废弃)事件集类型
1245
+ */
1246
+ Type?: string;
1247
+ /**
1248
+ * 计费模式
1249
+ */
1250
+ PayMode?: string;
1251
+ /**
1252
+ * EB日志存储时长
1253
+ 注意:此字段可能返回 null,表示取不到有效值。
1254
+ */
1255
+ SaveDays?: number;
1256
+ /**
1257
+ * EB日志主题ID
1258
+ 注意:此字段可能返回 null,表示取不到有效值。
1259
+ */
1260
+ LogTopicId?: string;
1261
+ /**
1262
+ * 是否开启存储
1263
+ 注意:此字段可能返回 null,表示取不到有效值。
1264
+ */
1265
+ EnableStore?: boolean;
1266
+ /**
1267
+ * 消息序列,是否有序
1268
+ 注意:此字段可能返回 null,表示取不到有效值。
1269
+ */
1270
+ LinkMode?: string;
1288
1271
  /**
1289
1272
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1290
1273
  */
1291
1274
  RequestId?: string;
1292
1275
  }
1293
1276
  /**
1294
- * DeleteTransformation请求参数结构体
1277
+ * DeleteRule返回参数结构体
1295
1278
  */
1296
- export interface DeleteTransformationRequest {
1279
+ export interface DeleteRuleResponse {
1280
+ /**
1281
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1282
+ */
1283
+ RequestId?: string;
1284
+ }
1285
+ /**
1286
+ * DescribeLogTagValue请求参数结构体
1287
+ */
1288
+ export interface DescribeLogTagValueRequest {
1289
+ /**
1290
+ * 起始时间
1291
+ */
1292
+ StartTime: number;
1293
+ /**
1294
+ * 结束时间
1295
+ */
1296
+ EndTime: number;
1297
1297
  /**
1298
1298
  * 事件集ID
1299
1299
  */
1300
1300
  EventBusId: string;
1301
1301
  /**
1302
- * 规则ID
1302
+ * 聚合字段
1303
1303
  */
1304
- RuleId: string;
1304
+ GroupField: string;
1305
1305
  /**
1306
- * 转换器id
1306
+ * 页数
1307
1307
  */
1308
- TransformationId: string;
1308
+ Page: number;
1309
+ /**
1310
+ * 每页数据大小
1311
+ */
1312
+ Limit: number;
1313
+ /**
1314
+ * 筛选条件
1315
+ */
1316
+ Filter?: Array<LogFilter>;
1309
1317
  }
1310
1318
  /**
1311
- * 描述如何提取数据
1319
+ * 目标简要信息
1312
1320
  */
1313
- export interface Extraction {
1321
+ export interface TargetBrief {
1314
1322
  /**
1315
- * JsonPath, 不指定则使用默认值$.
1323
+ * 目标ID
1316
1324
  */
1317
- ExtractionInputPath: string;
1325
+ TargetId: string;
1318
1326
  /**
1319
- * 取值: TEXT/JSON
1327
+ * 目标类型
1320
1328
  */
1321
- Format: string;
1329
+ Type: string;
1330
+ }
1331
+ /**
1332
+ * ListRules返回参数结构体
1333
+ */
1334
+ export interface ListRulesResponse {
1322
1335
  /**
1323
- * 仅在Text需要传递
1324
- 注意:此字段可能返回 null,表示取不到有效值。
1336
+ * 事件规则信息
1325
1337
  */
1326
- TextParams?: TextParams;
1338
+ Rules: Array<Rule>;
1339
+ /**
1340
+ * 事件规则总数
1341
+ */
1342
+ TotalCount: number;
1343
+ /**
1344
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1345
+ */
1346
+ RequestId?: string;
1327
1347
  }
1328
1348
  /**
1329
- * UpdateConnection请求参数结构体
1349
+ * 描述Es规则目标
1330
1350
  */
1331
- export interface UpdateConnectionRequest {
1351
+ export interface ESTargetParams {
1332
1352
  /**
1333
- * 连接器ID
1353
+ * 网络连接类型
1334
1354
  */
1335
- ConnectionId: string;
1355
+ NetMode: string;
1336
1356
  /**
1337
- * 事件集ID
1357
+ * 索引前缀
1338
1358
  */
1339
- EventBusId: string;
1359
+ IndexPrefix: string;
1360
+ /**
1361
+ * es日志轮换粒度
1362
+ */
1363
+ RotationInterval: string;
1364
+ /**
1365
+ * DTS事件配置
1366
+ */
1367
+ OutputMode: string;
1368
+ /**
1369
+ * DTS索引配置
1370
+ */
1371
+ IndexSuffixMode: string;
1372
+ /**
1373
+ * es模版类型
1374
+ */
1375
+ IndexTemplateType?: string;
1376
+ }
1377
+ /**
1378
+ * GetRule返回参数结构体
1379
+ */
1380
+ export interface GetRuleResponse {
1381
+ /**
1382
+ * 事件集id
1383
+ */
1384
+ EventBusId?: string;
1385
+ /**
1386
+ * 事件规则id
1387
+ */
1388
+ RuleId?: string;
1389
+ /**
1390
+ * 事件规则名称
1391
+ */
1392
+ RuleName?: string;
1393
+ /**
1394
+ * 事件规则状态
1395
+ */
1396
+ Status?: string;
1340
1397
  /**
1341
1398
  * 使能开关
1342
1399
  */
1343
1400
  Enable?: boolean;
1344
1401
  /**
1345
- * 描述
1402
+ * 事件规则描述
1346
1403
  */
1347
1404
  Description?: string;
1348
1405
  /**
1349
- * 连接器名称
1406
+ * 事件模式
1407
+ */
1408
+ EventPattern?: string;
1409
+ /**
1410
+ * 创建时间
1411
+ */
1412
+ AddTime?: string;
1413
+ /**
1414
+ * 更新时间
1415
+ */
1416
+ ModTime?: string;
1417
+ /**
1418
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1350
1419
  */
1351
- ConnectionName?: string;
1420
+ RequestId?: string;
1352
1421
  }
1353
1422
  /**
1354
- * GetEventBus请求参数结构体
1423
+ * UpdateEventBus请求参数结构体
1355
1424
  */
1356
- export interface GetEventBusRequest {
1425
+ export interface UpdateEventBusRequest {
1357
1426
  /**
1358
1427
  * 事件集ID
1359
1428
  */
1360
1429
  EventBusId: string;
1361
- }
1362
- /**
1363
- * DeleteTarget请求参数结构体
1364
- */
1365
- export interface DeleteTargetRequest {
1366
1430
  /**
1367
- * 事件集ID
1431
+ * 事件集描述,不限字符类型,200字符描述以内
1368
1432
  */
1369
- EventBusId: string;
1433
+ Description?: string;
1370
1434
  /**
1371
- * 事件目标ID
1435
+ * 事件集名称,只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60个字符
1372
1436
  */
1373
- TargetId: string;
1437
+ EventBusName?: string;
1374
1438
  /**
1375
- * 事件规则ID
1439
+ * EB日志存储时长
1376
1440
  */
1377
- RuleId: string;
1378
- }
1379
- /**
1380
- * Ckafka 连接器参数
1381
- */
1382
- export interface CkafkaParams {
1441
+ SaveDays?: number;
1383
1442
  /**
1384
- * kafka offset
1443
+ * EB日志主题ID
1385
1444
  */
1386
- Offset: string;
1445
+ LogTopicId?: string;
1387
1446
  /**
1388
- * ckafka topic
1447
+ * 是否开启存储
1389
1448
  */
1390
- TopicName: string;
1449
+ EnableStore?: boolean;
1391
1450
  }
1392
1451
  /**
1393
- * DescribeLogTagValue返回参数结构体
1452
+ * GetPlatformEventTemplate返回参数结构体
1394
1453
  */
1395
- export interface DescribeLogTagValueResponse {
1454
+ export interface GetPlatformEventTemplateResponse {
1396
1455
  /**
1397
- * 索引检索维度值
1398
- 注意:此字段可能返回 null,表示取不到有效值。
1456
+ * 平台产品事件模板
1399
1457
  */
1400
- Results?: Array<string>;
1458
+ EventTemplate?: string;
1401
1459
  /**
1402
1460
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1403
1461
  */
1404
1462
  RequestId?: string;
1405
1463
  }
1406
1464
  /**
1407
- * 日志查询相关接口filter参数定义
1465
+ * 云函数参数
1408
1466
  */
1409
- export interface LogFilter {
1467
+ export interface SCFParams {
1410
1468
  /**
1411
- * 过滤字段名称
1469
+ * 批量投递最长等待时间
1412
1470
  */
1413
- Key?: string;
1471
+ BatchTimeout?: number;
1414
1472
  /**
1415
- * 运算符,全等 eq,不等 neq,相似 like,排除相似 not like, 小于 lt,小于且等于 lte,大于 gt,大于且等于 gte,在范围内 range,不在范围内 norange
1473
+ * 批量投递最大事件条数
1416
1474
  */
1417
- Operator?: string;
1475
+ BatchEventCount?: number;
1418
1476
  /**
1419
- * 过滤值,范围运算需要同时输入两个值,以英文逗号分隔
1420
-
1477
+ * 开启批量投递使能
1421
1478
  */
1422
- Value?: string;
1479
+ EnableBatchDelivery?: boolean;
1480
+ }
1481
+ /**
1482
+ * rule对应的dlq配置
1483
+ */
1484
+ export interface DeadLetterConfig {
1423
1485
  /**
1424
- * 该层级filters逻辑关系,取值 "AND" 或 "OR"
1486
+ * 支持dlq、丢弃、忽略错误继续传递三种模式, 分别对应: DLQ,DROP,IGNORE_ERROR
1425
1487
  */
1426
- Type?: string;
1488
+ DisposeMethod: string;
1427
1489
  /**
1428
- * LogFilters数组
1490
+ * 设置了DLQ方式后,此选项必填. 错误消息会被投递到对应的kafka topic中
1491
+ 注意:此字段可能返回 null,表示取不到有效值。
1429
1492
  */
1430
- Filters?: Array<LogFilters>;
1493
+ CkafkaDeliveryParams?: CkafkaDeliveryParams;
1431
1494
  }
1432
1495
  /**
1433
- * UpdateTransformation返回参数结构体
1496
+ * ListConnections请求参数结构体
1434
1497
  */
1435
- export interface UpdateTransformationResponse {
1498
+ export interface ListConnectionsRequest {
1436
1499
  /**
1437
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1500
+ * 事件集ID
1438
1501
  */
1439
- RequestId?: string;
1502
+ EventBusId: string;
1503
+ /**
1504
+ * 根据哪个字段进行返回结果排序,目前支持如下以下字段:AddTime, ModTime
1505
+ */
1506
+ OrderBy?: string;
1507
+ /**
1508
+ * 返回数量,默认为20,最大值为100。
1509
+ */
1510
+ Limit?: number;
1511
+ /**
1512
+ * 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
1513
+ */
1514
+ Order?: string;
1515
+ /**
1516
+ * 偏移量,默认为0。
1517
+ */
1518
+ Offset?: number;
1440
1519
  }
1441
1520
  /**
1442
- * Transform输出参数
1521
+ * 描述如何切分数据
1443
1522
  */
1444
- export interface OutputStructParam {
1445
- /**
1446
- * 对应输出json中的key
1447
- */
1448
- Key: string;
1523
+ export interface TextParams {
1449
1524
  /**
1450
- * 可以填json-path也可以支持常量或者内置关键字date类型
1525
+ * 逗号、| 、制表符、空格、换行符、%、#,限制长度为 1。
1526
+ 注意:此字段可能返回 null,表示取不到有效值。
1451
1527
  */
1452
- Value: string;
1528
+ Separator?: string;
1453
1529
  /**
1454
- * value的数据类型, 可选值: STRING, NUMBER,BOOLEAN,NULL,SYS_VARIABLE,JSONPATH
1530
+ * 填写正则表达式:长度128
1531
+ 注意:此字段可能返回 null,表示取不到有效值。
1455
1532
  */
1456
- ValueType: string;
1533
+ Regex?: string;
1457
1534
  }
1458
1535
  /**
1459
1536
  * SearchLog请求参数结构体
@@ -1493,114 +1570,163 @@ export interface SearchLogRequest {
1493
1570
  OrderBy?: string;
1494
1571
  }
1495
1572
  /**
1496
- * CheckTransformation请求参数结构体
1573
+ * 用来描述需要投递到kafka topic的参数
1497
1574
  */
1498
- export interface CheckTransformationRequest {
1575
+ export interface CkafkaDeliveryParams {
1499
1576
  /**
1500
- * 待处理的json字符串
1577
+ * ckafka topic name
1501
1578
  */
1502
- Input: string;
1579
+ TopicName: string;
1503
1580
  /**
1504
- * 一个转换规则列表
1581
+ * ckafka资源qcs六段式
1505
1582
  */
1506
- Transformations: Array<Transformation>;
1583
+ ResourceDescription: string;
1507
1584
  }
1508
1585
  /**
1509
- * UpdateConnection返回参数结构体
1586
+ * CreateConnection请求参数结构体
1510
1587
  */
1511
- export interface UpdateConnectionResponse {
1588
+ export interface CreateConnectionRequest {
1512
1589
  /**
1513
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1590
+ * 连接器描述
1514
1591
  */
1515
- RequestId?: string;
1516
- }
1517
- /**
1518
- * GetRule请求参数结构体
1519
- */
1520
- export interface GetRuleRequest {
1592
+ ConnectionDescription: ConnectionDescription;
1521
1593
  /**
1522
1594
  * 事件集ID
1523
1595
  */
1524
1596
  EventBusId: string;
1525
1597
  /**
1526
- * 事件规则ID
1598
+ * 连接器名称
1527
1599
  */
1528
- RuleId: string;
1600
+ ConnectionName: string;
1601
+ /**
1602
+ * 描述
1603
+ */
1604
+ Description?: string;
1605
+ /**
1606
+ * 使能开关
1607
+ */
1608
+ Enable?: boolean;
1609
+ /**
1610
+ * 类型
1611
+ */
1612
+ Type?: string;
1529
1613
  }
1530
1614
  /**
1531
- * UpdateTarget请求参数结构体
1615
+ * ListPlatformEventPatterns请求参数结构体
1532
1616
  */
1533
- export interface UpdateTargetRequest {
1617
+ export interface ListPlatformEventPatternsRequest {
1618
+ /**
1619
+ * 平台产品类型
1620
+ */
1621
+ ProductType: string;
1622
+ }
1623
+ /**
1624
+ * GetTransformation请求参数结构体
1625
+ */
1626
+ export interface GetTransformationRequest {
1534
1627
  /**
1535
1628
  * 事件集ID
1536
1629
  */
1537
1630
  EventBusId: string;
1538
1631
  /**
1539
- * 事件规则ID
1632
+ * 规则ID
1540
1633
  */
1541
1634
  RuleId: string;
1542
1635
  /**
1543
- * 事件目标ID
1636
+ * 转换器id
1544
1637
  */
1545
- TargetId: string;
1638
+ TransformationId: string;
1639
+ }
1640
+ /**
1641
+ * 连接器基础信息
1642
+ */
1643
+ export interface ConnectionBrief {
1546
1644
  /**
1547
- * 开启批量投递使能
1645
+ * 连接器类型
1646
+ 注意:此字段可能返回 null,表示取不到有效值。
1548
1647
  */
1549
- EnableBatchDelivery?: boolean;
1648
+ Type?: string;
1550
1649
  /**
1551
- * 批量投递最长等待时间
1650
+ * 连接器状态
1651
+ 注意:此字段可能返回 null,表示取不到有效值。
1552
1652
  */
1553
- BatchTimeout?: number;
1653
+ Status?: string;
1654
+ }
1655
+ /**
1656
+ * PutEvents请求参数结构体
1657
+ */
1658
+ export interface PutEventsRequest {
1554
1659
  /**
1555
- * 批量投递最大事件条数
1660
+ * 事件列表
1556
1661
  */
1557
- BatchEventCount?: number;
1662
+ EventList: Array<Event>;
1663
+ /**
1664
+ * 事件集ID
1665
+ */
1666
+ EventBusId: string;
1558
1667
  }
1559
1668
  /**
1560
- * eb event信息
1669
+ * TargetDescription描述
1561
1670
  */
1562
- export interface Event {
1671
+ export interface TargetDescription {
1563
1672
  /**
1564
- * 事件源的信息,新产品上报必须符合EB的规范
1673
+ * QCS资源六段式,更多参考 [资源六段式](https://cloud.tencent.com/document/product/598/10606)
1565
1674
  */
1566
- Source: string;
1675
+ ResourceDescription: string;
1567
1676
  /**
1568
- * 事件数据,内容由创建事件的系统来控制,当前datacontenttype仅支持application/json;charset=utf-8,所以该字段是json字符串
1677
+ * 云函数参数
1569
1678
  */
1570
- Data: string;
1679
+ SCFParams?: SCFParams;
1571
1680
  /**
1572
- * 事件类型,可自定义,选填。云服务默认写 COS:Created:PostObject,用“:”分割类型字段
1681
+ * Ckafka参数
1573
1682
  */
1574
- Type: string;
1683
+ CkafkaTargetParams?: CkafkaTargetParams;
1575
1684
  /**
1576
- * 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx
1685
+ * ElasticSearch参数
1577
1686
  */
1578
- Subject: string;
1687
+ ESTargetParams?: ESTargetParams;
1688
+ }
1689
+ /**
1690
+ * DeleteTarget请求参数结构体
1691
+ */
1692
+ export interface DeleteTargetRequest {
1579
1693
  /**
1580
- * 事件发生的毫秒时间戳,
1581
- time.Now().UnixNano()/1e6
1694
+ * 事件集ID
1582
1695
  */
1583
- Time?: number;
1696
+ EventBusId: string;
1697
+ /**
1698
+ * 事件目标ID
1699
+ */
1700
+ TargetId: string;
1701
+ /**
1702
+ * 事件规则ID
1703
+ */
1704
+ RuleId: string;
1584
1705
  }
1585
1706
  /**
1586
- * UpdateEventBus返回参数结构体
1707
+ * DescribeLogTagValue返回参数结构体
1587
1708
  */
1588
- export interface UpdateEventBusResponse {
1709
+ export interface DescribeLogTagValueResponse {
1710
+ /**
1711
+ * 索引检索维度值
1712
+ 注意:此字段可能返回 null,表示取不到有效值。
1713
+ */
1714
+ Results?: Array<string>;
1589
1715
  /**
1590
1716
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1591
1717
  */
1592
1718
  RequestId?: string;
1593
1719
  }
1594
1720
  /**
1595
- * APIGWParams描述
1721
+ * ListPlatformEventNames返回参数结构体
1596
1722
  */
1597
- export interface APIGWParams {
1723
+ export interface ListPlatformEventNamesResponse {
1598
1724
  /**
1599
- * HTTPS
1725
+ * 平台产品列表
1600
1726
  */
1601
- Protocol: string;
1727
+ EventNames?: Array<PlatformEventDetail>;
1602
1728
  /**
1603
- * POST
1729
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1604
1730
  */
1605
- Method: string;
1731
+ RequestId?: string;
1606
1732
  }