tencentcloud-sdk-waf 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1341 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Waf
19
+ module V20180125
20
+ # DescribeAccessIndex
21
+ class AccessFullTextInfo < TencentCloud::Common::AbstractModel
22
+ # @param CaseSensitive: 是否大小写敏感
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type CaseSensitive: Boolean
25
+ # @param Tokenizer: 全文索引的分词符,字符串中每个字符代表一个分词符
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type Tokenizer: String
28
+ # @param ContainZH: 是否包含中文
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # 注意:此字段可能返回 null,表示取不到有效值。
31
+ # @type ContainZH: Boolean
32
+
33
+ attr_accessor :CaseSensitive, :Tokenizer, :ContainZH
34
+
35
+ def initialize(casesensitive=nil, tokenizer=nil, containzh=nil)
36
+ @CaseSensitive = casesensitive
37
+ @Tokenizer = tokenizer
38
+ @ContainZH = containzh
39
+ end
40
+
41
+ def deserialize(params)
42
+ @CaseSensitive = params['CaseSensitive']
43
+ @Tokenizer = params['Tokenizer']
44
+ @ContainZH = params['ContainZH']
45
+ end
46
+ end
47
+
48
+ # 用于 DescribeAccessIndex 的出参
49
+ class AccessKeyValueInfo < TencentCloud::Common::AbstractModel
50
+ # @param Key: 需要配置键值或者元字段索引的字段
51
+ # 注意:此字段可能返回 null,表示取不到有效值。
52
+ # @type Key: String
53
+ # @param Value: 字段的索引描述信息
54
+ # 注意:此字段可能返回 null,表示取不到有效值。
55
+ # @type Value: :class:`Tencentcloud::Waf.v20180125.models.AccessValueInfo`
56
+
57
+ attr_accessor :Key, :Value
58
+
59
+ def initialize(key=nil, value=nil)
60
+ @Key = key
61
+ @Value = value
62
+ end
63
+
64
+ def deserialize(params)
65
+ @Key = params['Key']
66
+ unless params['Value'].nil?
67
+ @Value = AccessValueInfo.new
68
+ @Value.deserialize(params['Value'])
69
+ end
70
+ end
71
+ end
72
+
73
+ # 单条日志数据描述
74
+ class AccessLogInfo < TencentCloud::Common::AbstractModel
75
+ # @param Time: 日志时间,单位ms
76
+ # 注意:此字段可能返回 null,表示取不到有效值。
77
+ # @type Time: Integer
78
+ # @param TopicId: 日志主题ID
79
+ # 注意:此字段可能返回 null,表示取不到有效值。
80
+ # @type TopicId: String
81
+ # @param TopicName: 日志主题名称
82
+ # 注意:此字段可能返回 null,表示取不到有效值。
83
+ # @type TopicName: String
84
+ # @param Source: 日志来源IP
85
+ # 注意:此字段可能返回 null,表示取不到有效值。
86
+ # @type Source: String
87
+ # @param FileName: 日志文件名称
88
+ # 注意:此字段可能返回 null,表示取不到有效值。
89
+ # @type FileName: String
90
+ # @param PkgId: 日志上报请求包的ID
91
+ # 注意:此字段可能返回 null,表示取不到有效值。
92
+ # @type PkgId: String
93
+ # @param PkgLogId: 请求包内日志的ID
94
+ # 注意:此字段可能返回 null,表示取不到有效值。
95
+ # @type PkgLogId: String
96
+ # @param LogJson: 日志内容的Json序列化字符串
97
+ # 注意:此字段可能返回 null,表示取不到有效值。
98
+ # 注意:此字段可能返回 null,表示取不到有效值。
99
+ # @type LogJson: String
100
+
101
+ attr_accessor :Time, :TopicId, :TopicName, :Source, :FileName, :PkgId, :PkgLogId, :LogJson
102
+
103
+ def initialize(time=nil, topicid=nil, topicname=nil, source=nil, filename=nil, pkgid=nil, pkglogid=nil, logjson=nil)
104
+ @Time = time
105
+ @TopicId = topicid
106
+ @TopicName = topicname
107
+ @Source = source
108
+ @FileName = filename
109
+ @PkgId = pkgid
110
+ @PkgLogId = pkglogid
111
+ @LogJson = logjson
112
+ end
113
+
114
+ def deserialize(params)
115
+ @Time = params['Time']
116
+ @TopicId = params['TopicId']
117
+ @TopicName = params['TopicName']
118
+ @Source = params['Source']
119
+ @FileName = params['FileName']
120
+ @PkgId = params['PkgId']
121
+ @PkgLogId = params['PkgLogId']
122
+ @LogJson = params['LogJson']
123
+ end
124
+ end
125
+
126
+ # 日志KeyValue对
127
+ class AccessLogItem < TencentCloud::Common::AbstractModel
128
+ # @param Key: 日记Key
129
+ # 注意:此字段可能返回 null,表示取不到有效值。
130
+ # @type Key: String
131
+ # @param Value: 日志Value
132
+ # 注意:此字段可能返回 null,表示取不到有效值。
133
+ # @type Value: String
134
+
135
+ attr_accessor :Key, :Value
136
+
137
+ def initialize(key=nil, value=nil)
138
+ @Key = key
139
+ @Value = value
140
+ end
141
+
142
+ def deserialize(params)
143
+ @Key = params['Key']
144
+ @Value = params['Value']
145
+ end
146
+ end
147
+
148
+ # 日志KeyValue对数组,用于搜索访问日志
149
+ class AccessLogItems < TencentCloud::Common::AbstractModel
150
+ # @param Data: 分析结果返回的KV数据对
151
+ # 注意:此字段可能返回 null,表示取不到有效值。
152
+ # @type Data: Array
153
+
154
+ attr_accessor :Data
155
+
156
+ def initialize(data=nil)
157
+ @Data = data
158
+ end
159
+
160
+ def deserialize(params)
161
+ unless params['Data'].nil?
162
+ @Data = []
163
+ params['Data'].each do |i|
164
+ accesslogitem_tmp = AccessLogItem.new
165
+ accesslogitem_tmp.deserialize(i)
166
+ @Data << accesslogitem_tmp
167
+ end
168
+ end
169
+ end
170
+ end
171
+
172
+ # DescribeAccessIndex接口的出参数
173
+ class AccessRuleInfo < TencentCloud::Common::AbstractModel
174
+ # @param FullText: 全文索引配置
175
+ # 注意:此字段可能返回 null,表示取不到有效值。
176
+ # 注意:此字段可能返回 null,表示取不到有效值。
177
+ # @type FullText: :class:`Tencentcloud::Waf.v20180125.models.AccessFullTextInfo`
178
+ # @param KeyValue: 键值索引配置
179
+ # 注意:此字段可能返回 null,表示取不到有效值。
180
+ # 注意:此字段可能返回 null,表示取不到有效值。
181
+ # @type KeyValue: :class:`Tencentcloud::Waf.v20180125.models.AccessRuleKeyValueInfo`
182
+ # @param Tag: 元字段索引配置
183
+ # 注意:此字段可能返回 null,表示取不到有效值。
184
+ # 注意:此字段可能返回 null,表示取不到有效值。
185
+ # @type Tag: :class:`Tencentcloud::Waf.v20180125.models.AccessRuleTagInfo`
186
+
187
+ attr_accessor :FullText, :KeyValue, :Tag
188
+
189
+ def initialize(fulltext=nil, keyvalue=nil, tag=nil)
190
+ @FullText = fulltext
191
+ @KeyValue = keyvalue
192
+ @Tag = tag
193
+ end
194
+
195
+ def deserialize(params)
196
+ unless params['FullText'].nil?
197
+ @FullText = AccessFullTextInfo.new
198
+ @FullText.deserialize(params['FullText'])
199
+ end
200
+ unless params['KeyValue'].nil?
201
+ @KeyValue = AccessRuleKeyValueInfo.new
202
+ @KeyValue.deserialize(params['KeyValue'])
203
+ end
204
+ unless params['Tag'].nil?
205
+ @Tag = AccessRuleTagInfo.new
206
+ @Tag.deserialize(params['Tag'])
207
+ end
208
+ end
209
+ end
210
+
211
+ # DescribeAccessIndex接口的出参
212
+ class AccessRuleKeyValueInfo < TencentCloud::Common::AbstractModel
213
+ # @param CaseSensitive: 是否大小写敏感
214
+ # 注意:此字段可能返回 null,表示取不到有效值。
215
+ # @type CaseSensitive: Boolean
216
+ # @param KeyValues: 需要建立索引的键值对信息;最大只能配置100个键值对
217
+ # 注意:此字段可能返回 null,表示取不到有效值。
218
+ # @type KeyValues: Array
219
+
220
+ attr_accessor :CaseSensitive, :KeyValues
221
+
222
+ def initialize(casesensitive=nil, keyvalues=nil)
223
+ @CaseSensitive = casesensitive
224
+ @KeyValues = keyvalues
225
+ end
226
+
227
+ def deserialize(params)
228
+ @CaseSensitive = params['CaseSensitive']
229
+ unless params['KeyValues'].nil?
230
+ @KeyValues = []
231
+ params['KeyValues'].each do |i|
232
+ accesskeyvalueinfo_tmp = AccessKeyValueInfo.new
233
+ accesskeyvalueinfo_tmp.deserialize(i)
234
+ @KeyValues << accesskeyvalueinfo_tmp
235
+ end
236
+ end
237
+ end
238
+ end
239
+
240
+ # DescribeAccessIndex接口的出参
241
+ class AccessRuleTagInfo < TencentCloud::Common::AbstractModel
242
+ # @param CaseSensitive: 是否大小写敏感
243
+ # 注意:此字段可能返回 null,表示取不到有效值。
244
+ # @type CaseSensitive: Boolean
245
+ # @param KeyValues: 标签索引配置中的字段信息
246
+ # 注意:此字段可能返回 null,表示取不到有效值。
247
+ # @type KeyValues: Array
248
+
249
+ attr_accessor :CaseSensitive, :KeyValues
250
+
251
+ def initialize(casesensitive=nil, keyvalues=nil)
252
+ @CaseSensitive = casesensitive
253
+ @KeyValues = keyvalues
254
+ end
255
+
256
+ def deserialize(params)
257
+ @CaseSensitive = params['CaseSensitive']
258
+ unless params['KeyValues'].nil?
259
+ @KeyValues = []
260
+ params['KeyValues'].each do |i|
261
+ accesskeyvalueinfo_tmp = AccessKeyValueInfo.new
262
+ accesskeyvalueinfo_tmp.deserialize(i)
263
+ @KeyValues << accesskeyvalueinfo_tmp
264
+ end
265
+ end
266
+ end
267
+ end
268
+
269
+ # 用于DescribeAccessIndex接口的出参
270
+ class AccessValueInfo < TencentCloud::Common::AbstractModel
271
+ # @param Type: 字段类型,目前支持的类型有:long、text、double
272
+ # 注意:此字段可能返回 null,表示取不到有效值。
273
+ # @type Type: String
274
+ # @param Tokenizer: 字段的分词符,只有当字段类型为text时才有意义;输入字符串中的每个字符代表一个分词符
275
+ # 注意:此字段可能返回 null,表示取不到有效值。
276
+ # @type Tokenizer: String
277
+ # @param SqlFlag: 字段是否开启分析功能
278
+ # 注意:此字段可能返回 null,表示取不到有效值。
279
+ # @type SqlFlag: Boolean
280
+ # @param ContainZH: 是否包含中文
281
+ # 注意:此字段可能返回 null,表示取不到有效值。
282
+ # 注意:此字段可能返回 null,表示取不到有效值。
283
+ # @type ContainZH: Boolean
284
+
285
+ attr_accessor :Type, :Tokenizer, :SqlFlag, :ContainZH
286
+
287
+ def initialize(type=nil, tokenizer=nil, sqlflag=nil, containzh=nil)
288
+ @Type = type
289
+ @Tokenizer = tokenizer
290
+ @SqlFlag = sqlflag
291
+ @ContainZH = containzh
292
+ end
293
+
294
+ def deserialize(params)
295
+ @Type = params['Type']
296
+ @Tokenizer = params['Tokenizer']
297
+ @SqlFlag = params['SqlFlag']
298
+ @ContainZH = params['ContainZH']
299
+ end
300
+ end
301
+
302
+ # AddCustomRule请求参数结构体
303
+ class AddCustomRuleRequest < TencentCloud::Common::AbstractModel
304
+ # @param Name: 规则名称
305
+ # @type Name: String
306
+ # @param SortId: 优先级
307
+ # @type SortId: String
308
+ # @param ExpireTime: 过期时间
309
+ # @type ExpireTime: String
310
+ # @param Strategies: 策略详情
311
+ # @type Strategies: Array
312
+ # @param Domain: 需要添加策略的域名
313
+ # @type Domain: String
314
+ # @param ActionType: 动作类型
315
+ # @type ActionType: String
316
+ # @param Redirect: 如果动作是重定向,则表示重定向的地址;其他情况可以为空
317
+ # @type Redirect: String
318
+ # @param Edition: "clb-waf"或者"sparta-waf"
319
+ # @type Edition: String
320
+ # @param Bypass: 放行的详情
321
+ # @type Bypass: String
322
+
323
+ attr_accessor :Name, :SortId, :ExpireTime, :Strategies, :Domain, :ActionType, :Redirect, :Edition, :Bypass
324
+
325
+ def initialize(name=nil, sortid=nil, expiretime=nil, strategies=nil, domain=nil, actiontype=nil, redirect=nil, edition=nil, bypass=nil)
326
+ @Name = name
327
+ @SortId = sortid
328
+ @ExpireTime = expiretime
329
+ @Strategies = strategies
330
+ @Domain = domain
331
+ @ActionType = actiontype
332
+ @Redirect = redirect
333
+ @Edition = edition
334
+ @Bypass = bypass
335
+ end
336
+
337
+ def deserialize(params)
338
+ @Name = params['Name']
339
+ @SortId = params['SortId']
340
+ @ExpireTime = params['ExpireTime']
341
+ unless params['Strategies'].nil?
342
+ @Strategies = []
343
+ params['Strategies'].each do |i|
344
+ strategy_tmp = Strategy.new
345
+ strategy_tmp.deserialize(i)
346
+ @Strategies << strategy_tmp
347
+ end
348
+ end
349
+ @Domain = params['Domain']
350
+ @ActionType = params['ActionType']
351
+ @Redirect = params['Redirect']
352
+ @Edition = params['Edition']
353
+ @Bypass = params['Bypass']
354
+ end
355
+ end
356
+
357
+ # AddCustomRule返回参数结构体
358
+ class AddCustomRuleResponse < TencentCloud::Common::AbstractModel
359
+ # @param Success: 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
360
+ # @type Success: :class:`Tencentcloud::Waf.v20180125.models.ResponseCode`
361
+ # @param RuleId: 添加成功的规则ID
362
+ # 注意:此字段可能返回 null,表示取不到有效值。
363
+ # @type RuleId: Integer
364
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
365
+ # @type RequestId: String
366
+
367
+ attr_accessor :Success, :RuleId, :RequestId
368
+
369
+ def initialize(success=nil, ruleid=nil, requestid=nil)
370
+ @Success = success
371
+ @RuleId = ruleid
372
+ @RequestId = requestid
373
+ end
374
+
375
+ def deserialize(params)
376
+ unless params['Success'].nil?
377
+ @Success = ResponseCode.new
378
+ @Success.deserialize(params['Success'])
379
+ end
380
+ @RuleId = params['RuleId']
381
+ @RequestId = params['RequestId']
382
+ end
383
+ end
384
+
385
+ # bot的趋势图对象
386
+ class BotStatPointItem < TencentCloud::Common::AbstractModel
387
+ # @param TimeStamp: 横坐标
388
+ # @type TimeStamp: String
389
+ # @param Key: value的所属对象
390
+ # @type Key: String
391
+ # @param Value: 纵列表
392
+ # @type Value: Integer
393
+ # @param Label: Key对应的页面展示内容
394
+ # @type Label: String
395
+
396
+ attr_accessor :TimeStamp, :Key, :Value, :Label
397
+
398
+ def initialize(timestamp=nil, key=nil, value=nil, label=nil)
399
+ @TimeStamp = timestamp
400
+ @Key = key
401
+ @Value = value
402
+ @Label = label
403
+ end
404
+
405
+ def deserialize(params)
406
+ @TimeStamp = params['TimeStamp']
407
+ @Key = params['Key']
408
+ @Value = params['Value']
409
+ @Label = params['Label']
410
+ end
411
+ end
412
+
413
+ # CreateAccessExport请求参数结构体
414
+ class CreateAccessExportRequest < TencentCloud::Common::AbstractModel
415
+ # @param TopicId: 客户要查询的日志主题ID,每个客户都有对应的一个主题
416
+ # @type TopicId: String
417
+ # @param From: 要查询的日志的起始时间,Unix时间戳,单位ms
418
+ # @type From: Integer
419
+ # @param To: 要查询的日志的结束时间,Unix时间戳,单位ms
420
+ # @type To: Integer
421
+ # @param Query: 日志导出检索语句
422
+ # @type Query: String
423
+ # @param Count: 日志导出数量,最大值100w
424
+ # @type Count: Integer
425
+ # @param Format: 日志导出数据格式。json,csv,默认为json
426
+ # @type Format: String
427
+ # @param Order: 日志导出时间排序。desc,asc,默认为desc
428
+ # @type Order: String
429
+
430
+ attr_accessor :TopicId, :From, :To, :Query, :Count, :Format, :Order
431
+
432
+ def initialize(topicid=nil, from=nil, to=nil, query=nil, count=nil, format=nil, order=nil)
433
+ @TopicId = topicid
434
+ @From = from
435
+ @To = to
436
+ @Query = query
437
+ @Count = count
438
+ @Format = format
439
+ @Order = order
440
+ end
441
+
442
+ def deserialize(params)
443
+ @TopicId = params['TopicId']
444
+ @From = params['From']
445
+ @To = params['To']
446
+ @Query = params['Query']
447
+ @Count = params['Count']
448
+ @Format = params['Format']
449
+ @Order = params['Order']
450
+ end
451
+ end
452
+
453
+ # CreateAccessExport返回参数结构体
454
+ class CreateAccessExportResponse < TencentCloud::Common::AbstractModel
455
+ # @param ExportId: 日志导出ID。
456
+ # @type ExportId: String
457
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
458
+ # @type RequestId: String
459
+
460
+ attr_accessor :ExportId, :RequestId
461
+
462
+ def initialize(exportid=nil, requestid=nil)
463
+ @ExportId = exportid
464
+ @RequestId = requestid
465
+ end
466
+
467
+ def deserialize(params)
468
+ @ExportId = params['ExportId']
469
+ @RequestId = params['RequestId']
470
+ end
471
+ end
472
+
473
+ # CreateAttackDownloadTask请求参数结构体
474
+ class CreateAttackDownloadTaskRequest < TencentCloud::Common::AbstractModel
475
+ # @param Domain: 域名,所有域名填写all
476
+ # @type Domain: String
477
+ # @param FromTime: 查询起始时间
478
+ # @type FromTime: String
479
+ # @param ToTime: 查询结束时间
480
+ # @type ToTime: String
481
+ # @param Name: 下载任务名字
482
+ # @type Name: String
483
+ # @param RiskLevel: 风险等级
484
+ # @type RiskLevel: Integer
485
+ # @param Status: 拦截状态
486
+ # @type Status: Integer
487
+ # @param RuleId: 自定义策略ID
488
+ # @type RuleId: Integer
489
+ # @param AttackIp: 攻击者IP
490
+ # @type AttackIp: String
491
+ # @param AttackType: 攻击类型
492
+ # @type AttackType: String
493
+
494
+ attr_accessor :Domain, :FromTime, :ToTime, :Name, :RiskLevel, :Status, :RuleId, :AttackIp, :AttackType
495
+
496
+ def initialize(domain=nil, fromtime=nil, totime=nil, name=nil, risklevel=nil, status=nil, ruleid=nil, attackip=nil, attacktype=nil)
497
+ @Domain = domain
498
+ @FromTime = fromtime
499
+ @ToTime = totime
500
+ @Name = name
501
+ @RiskLevel = risklevel
502
+ @Status = status
503
+ @RuleId = ruleid
504
+ @AttackIp = attackip
505
+ @AttackType = attacktype
506
+ end
507
+
508
+ def deserialize(params)
509
+ @Domain = params['Domain']
510
+ @FromTime = params['FromTime']
511
+ @ToTime = params['ToTime']
512
+ @Name = params['Name']
513
+ @RiskLevel = params['RiskLevel']
514
+ @Status = params['Status']
515
+ @RuleId = params['RuleId']
516
+ @AttackIp = params['AttackIp']
517
+ @AttackType = params['AttackType']
518
+ end
519
+ end
520
+
521
+ # CreateAttackDownloadTask返回参数结构体
522
+ class CreateAttackDownloadTaskResponse < TencentCloud::Common::AbstractModel
523
+ # @param Flow: 任务ID
524
+ # @type Flow: String
525
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
526
+ # @type RequestId: String
527
+
528
+ attr_accessor :Flow, :RequestId
529
+
530
+ def initialize(flow=nil, requestid=nil)
531
+ @Flow = flow
532
+ @RequestId = requestid
533
+ end
534
+
535
+ def deserialize(params)
536
+ @Flow = params['Flow']
537
+ @RequestId = params['RequestId']
538
+ end
539
+ end
540
+
541
+ # DeleteAccessExport请求参数结构体
542
+ class DeleteAccessExportRequest < TencentCloud::Common::AbstractModel
543
+ # @param ExportId: 日志导出ID
544
+ # @type ExportId: String
545
+ # @param TopicId: 日志主题
546
+ # @type TopicId: String
547
+
548
+ attr_accessor :ExportId, :TopicId
549
+
550
+ def initialize(exportid=nil, topicid=nil)
551
+ @ExportId = exportid
552
+ @TopicId = topicid
553
+ end
554
+
555
+ def deserialize(params)
556
+ @ExportId = params['ExportId']
557
+ @TopicId = params['TopicId']
558
+ end
559
+ end
560
+
561
+ # DeleteAccessExport返回参数结构体
562
+ class DeleteAccessExportResponse < TencentCloud::Common::AbstractModel
563
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
564
+ # @type RequestId: String
565
+
566
+ attr_accessor :RequestId
567
+
568
+ def initialize(requestid=nil)
569
+ @RequestId = requestid
570
+ end
571
+
572
+ def deserialize(params)
573
+ @RequestId = params['RequestId']
574
+ end
575
+ end
576
+
577
+ # DeleteAttackDownloadRecord请求参数结构体
578
+ class DeleteAttackDownloadRecordRequest < TencentCloud::Common::AbstractModel
579
+ # @param Id: 下载任务记录唯一标记
580
+ # @type Id: Integer
581
+
582
+ attr_accessor :Id
583
+
584
+ def initialize(id=nil)
585
+ @Id = id
586
+ end
587
+
588
+ def deserialize(params)
589
+ @Id = params['Id']
590
+ end
591
+ end
592
+
593
+ # DeleteAttackDownloadRecord返回参数结构体
594
+ class DeleteAttackDownloadRecordResponse < TencentCloud::Common::AbstractModel
595
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
596
+ # @type RequestId: String
597
+
598
+ attr_accessor :RequestId
599
+
600
+ def initialize(requestid=nil)
601
+ @RequestId = requestid
602
+ end
603
+
604
+ def deserialize(params)
605
+ @RequestId = params['RequestId']
606
+ end
607
+ end
608
+
609
+ # DeleteDownloadRecord请求参数结构体
610
+ class DeleteDownloadRecordRequest < TencentCloud::Common::AbstractModel
611
+ # @param Flow: 记录id
612
+ # @type Flow: String
613
+
614
+ attr_accessor :Flow
615
+
616
+ def initialize(flow=nil)
617
+ @Flow = flow
618
+ end
619
+
620
+ def deserialize(params)
621
+ @Flow = params['Flow']
622
+ end
623
+ end
624
+
625
+ # DeleteDownloadRecord返回参数结构体
626
+ class DeleteDownloadRecordResponse < TencentCloud::Common::AbstractModel
627
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
628
+ # @type RequestId: String
629
+
630
+ attr_accessor :RequestId
631
+
632
+ def initialize(requestid=nil)
633
+ @RequestId = requestid
634
+ end
635
+
636
+ def deserialize(params)
637
+ @RequestId = params['RequestId']
638
+ end
639
+ end
640
+
641
+ # DeleteSession请求参数结构体
642
+ class DeleteSessionRequest < TencentCloud::Common::AbstractModel
643
+ # @param Domain: 域名
644
+ # @type Domain: String
645
+ # @param Edition: clb-waf 或者 sprta-waf
646
+ # @type Edition: String
647
+
648
+ attr_accessor :Domain, :Edition
649
+
650
+ def initialize(domain=nil, edition=nil)
651
+ @Domain = domain
652
+ @Edition = edition
653
+ end
654
+
655
+ def deserialize(params)
656
+ @Domain = params['Domain']
657
+ @Edition = params['Edition']
658
+ end
659
+ end
660
+
661
+ # DeleteSession返回参数结构体
662
+ class DeleteSessionResponse < TencentCloud::Common::AbstractModel
663
+ # @param Data: 结果
664
+ # 注意:此字段可能返回 null,表示取不到有效值。
665
+ # @type Data: String
666
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
667
+ # @type RequestId: String
668
+
669
+ attr_accessor :Data, :RequestId
670
+
671
+ def initialize(data=nil, requestid=nil)
672
+ @Data = data
673
+ @RequestId = requestid
674
+ end
675
+
676
+ def deserialize(params)
677
+ @Data = params['Data']
678
+ @RequestId = params['RequestId']
679
+ end
680
+ end
681
+
682
+ # DescribeAccessExports请求参数结构体
683
+ class DescribeAccessExportsRequest < TencentCloud::Common::AbstractModel
684
+ # @param TopicId: 客户要查询的日志主题ID,每个客户都有对应的一个主题
685
+ # @type TopicId: String
686
+ # @param Offset: 分页的偏移量,默认值为0
687
+ # @type Offset: Integer
688
+ # @param Limit: 分页单页限制数目,默认值为20,最大值100
689
+ # @type Limit: Integer
690
+
691
+ attr_accessor :TopicId, :Offset, :Limit
692
+
693
+ def initialize(topicid=nil, offset=nil, limit=nil)
694
+ @TopicId = topicid
695
+ @Offset = offset
696
+ @Limit = limit
697
+ end
698
+
699
+ def deserialize(params)
700
+ @TopicId = params['TopicId']
701
+ @Offset = params['Offset']
702
+ @Limit = params['Limit']
703
+ end
704
+ end
705
+
706
+ # DescribeAccessExports返回参数结构体
707
+ class DescribeAccessExportsResponse < TencentCloud::Common::AbstractModel
708
+ # @param TotalCount: 日志导出ID。
709
+ # @type TotalCount: Integer
710
+ # @param Exports: 日志导出列表
711
+ # 注意:此字段可能返回 null,表示取不到有效值。
712
+ # @type Exports: Array
713
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
714
+ # @type RequestId: String
715
+
716
+ attr_accessor :TotalCount, :Exports, :RequestId
717
+
718
+ def initialize(totalcount=nil, exports=nil, requestid=nil)
719
+ @TotalCount = totalcount
720
+ @Exports = exports
721
+ @RequestId = requestid
722
+ end
723
+
724
+ def deserialize(params)
725
+ @TotalCount = params['TotalCount']
726
+ unless params['Exports'].nil?
727
+ @Exports = []
728
+ params['Exports'].each do |i|
729
+ exportaccessinfo_tmp = ExportAccessInfo.new
730
+ exportaccessinfo_tmp.deserialize(i)
731
+ @Exports << exportaccessinfo_tmp
732
+ end
733
+ end
734
+ @RequestId = params['RequestId']
735
+ end
736
+ end
737
+
738
+ # DescribeAccessFastAnalysis请求参数结构体
739
+ class DescribeAccessFastAnalysisRequest < TencentCloud::Common::AbstractModel
740
+
741
+
742
+ def initialize()
743
+ end
744
+
745
+ def deserialize(params)
746
+ end
747
+ end
748
+
749
+ # DescribeAccessFastAnalysis返回参数结构体
750
+ class DescribeAccessFastAnalysisResponse < TencentCloud::Common::AbstractModel
751
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
752
+ # @type RequestId: String
753
+
754
+ attr_accessor :RequestId
755
+
756
+ def initialize(requestid=nil)
757
+ @RequestId = requestid
758
+ end
759
+
760
+ def deserialize(params)
761
+ @RequestId = params['RequestId']
762
+ end
763
+ end
764
+
765
+ # DescribeAccessIndex请求参数结构体
766
+ class DescribeAccessIndexRequest < TencentCloud::Common::AbstractModel
767
+
768
+
769
+ def initialize()
770
+ end
771
+
772
+ def deserialize(params)
773
+ end
774
+ end
775
+
776
+ # DescribeAccessIndex返回参数结构体
777
+ class DescribeAccessIndexResponse < TencentCloud::Common::AbstractModel
778
+ # @param Status: 是否生效
779
+ # @type Status: Boolean
780
+ # @param Rule: 索引配置信息
781
+ # 注意:此字段可能返回 null,表示取不到有效值。
782
+ # 注意:此字段可能返回 null,表示取不到有效值。
783
+ # @type Rule: :class:`Tencentcloud::Waf.v20180125.models.AccessRuleInfo`
784
+ # @param ModifyTime: 索引修改时间,初始值为索引创建时间。
785
+ # @type ModifyTime: String
786
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
787
+ # @type RequestId: String
788
+
789
+ attr_accessor :Status, :Rule, :ModifyTime, :RequestId
790
+
791
+ def initialize(status=nil, rule=nil, modifytime=nil, requestid=nil)
792
+ @Status = status
793
+ @Rule = rule
794
+ @ModifyTime = modifytime
795
+ @RequestId = requestid
796
+ end
797
+
798
+ def deserialize(params)
799
+ @Status = params['Status']
800
+ unless params['Rule'].nil?
801
+ @Rule = AccessRuleInfo.new
802
+ @Rule.deserialize(params['Rule'])
803
+ end
804
+ @ModifyTime = params['ModifyTime']
805
+ @RequestId = params['RequestId']
806
+ end
807
+ end
808
+
809
+ # DescribeCustomRules接口的翻页参数
810
+ class DescribeCustomRulesPagingInfo < TencentCloud::Common::AbstractModel
811
+ # @param Offset: 当前页码
812
+ # @type Offset: Integer
813
+ # @param Limit: 当前页的最大数据条数
814
+ # @type Limit: Integer
815
+
816
+ attr_accessor :Offset, :Limit
817
+
818
+ def initialize(offset=nil, limit=nil)
819
+ @Offset = offset
820
+ @Limit = limit
821
+ end
822
+
823
+ def deserialize(params)
824
+ @Offset = params['Offset']
825
+ @Limit = params['Limit']
826
+ end
827
+ end
828
+
829
+ # DescribeCustomRules请求参数结构体
830
+ class DescribeCustomRulesRequest < TencentCloud::Common::AbstractModel
831
+ # @param Domain: 域名
832
+ # @type Domain: String
833
+ # @param Paging: 分页参数
834
+ # @type Paging: :class:`Tencentcloud::Waf.v20180125.models.DescribeCustomRulesPagingInfo`
835
+ # @param Edition: clb-waf或者sparta-waf
836
+ # @type Edition: String
837
+ # @param ActionType: 过滤参数:动作类型:0放行,1阻断,2人机识别,3观察,4重定向
838
+ # @type ActionType: String
839
+ # @param Search: 过滤参数:规则名称过滤条件
840
+ # @type Search: String
841
+
842
+ attr_accessor :Domain, :Paging, :Edition, :ActionType, :Search
843
+
844
+ def initialize(domain=nil, paging=nil, edition=nil, actiontype=nil, search=nil)
845
+ @Domain = domain
846
+ @Paging = paging
847
+ @Edition = edition
848
+ @ActionType = actiontype
849
+ @Search = search
850
+ end
851
+
852
+ def deserialize(params)
853
+ @Domain = params['Domain']
854
+ unless params['Paging'].nil?
855
+ @Paging = DescribeCustomRulesPagingInfo.new
856
+ @Paging.deserialize(params['Paging'])
857
+ end
858
+ @Edition = params['Edition']
859
+ @ActionType = params['ActionType']
860
+ @Search = params['Search']
861
+ end
862
+ end
863
+
864
+ # DescribeCustomRules返回参数结构体
865
+ class DescribeCustomRulesResponse < TencentCloud::Common::AbstractModel
866
+ # @param RuleList: 规则详情
867
+ # @type RuleList: Array
868
+ # @param TotalCount: 规则条数
869
+ # @type TotalCount: String
870
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
871
+ # @type RequestId: String
872
+
873
+ attr_accessor :RuleList, :TotalCount, :RequestId
874
+
875
+ def initialize(rulelist=nil, totalcount=nil, requestid=nil)
876
+ @RuleList = rulelist
877
+ @TotalCount = totalcount
878
+ @RequestId = requestid
879
+ end
880
+
881
+ def deserialize(params)
882
+ unless params['RuleList'].nil?
883
+ @RuleList = []
884
+ params['RuleList'].each do |i|
885
+ describecustomrulesrsprulelistitem_tmp = DescribeCustomRulesRspRuleListItem.new
886
+ describecustomrulesrsprulelistitem_tmp.deserialize(i)
887
+ @RuleList << describecustomrulesrsprulelistitem_tmp
888
+ end
889
+ end
890
+ @TotalCount = params['TotalCount']
891
+ @RequestId = params['RequestId']
892
+ end
893
+ end
894
+
895
+ # DescribeCustomRules接口回包中的复杂类型
896
+ class DescribeCustomRulesRspRuleListItem < TencentCloud::Common::AbstractModel
897
+ # @param ActionType: 动作类型
898
+ # @type ActionType: String
899
+ # @param Bypass: 跳过的策略
900
+ # @type Bypass: String
901
+ # @param CreateTime: 创建时间
902
+ # @type CreateTime: String
903
+ # @param ExpireTime: 过期时间
904
+ # @type ExpireTime: String
905
+ # @param Name: 策略名称
906
+ # @type Name: String
907
+ # @param Redirect: 重定向地址
908
+ # @type Redirect: String
909
+ # @param RuleId: 策略ID
910
+ # @type RuleId: String
911
+ # @param SortId: 优先级
912
+ # @type SortId: String
913
+ # @param Status: 状态
914
+ # @type Status: String
915
+ # @param Strategies: 策略详情
916
+ # @type Strategies: Array
917
+
918
+ attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies
919
+
920
+ def initialize(actiontype=nil, bypass=nil, createtime=nil, expiretime=nil, name=nil, redirect=nil, ruleid=nil, sortid=nil, status=nil, strategies=nil)
921
+ @ActionType = actiontype
922
+ @Bypass = bypass
923
+ @CreateTime = createtime
924
+ @ExpireTime = expiretime
925
+ @Name = name
926
+ @Redirect = redirect
927
+ @RuleId = ruleid
928
+ @SortId = sortid
929
+ @Status = status
930
+ @Strategies = strategies
931
+ end
932
+
933
+ def deserialize(params)
934
+ @ActionType = params['ActionType']
935
+ @Bypass = params['Bypass']
936
+ @CreateTime = params['CreateTime']
937
+ @ExpireTime = params['ExpireTime']
938
+ @Name = params['Name']
939
+ @Redirect = params['Redirect']
940
+ @RuleId = params['RuleId']
941
+ @SortId = params['SortId']
942
+ @Status = params['Status']
943
+ unless params['Strategies'].nil?
944
+ @Strategies = []
945
+ params['Strategies'].each do |i|
946
+ strategy_tmp = Strategy.new
947
+ strategy_tmp.deserialize(i)
948
+ @Strategies << strategy_tmp
949
+ end
950
+ end
951
+ end
952
+ end
953
+
954
+ # DescribeFlowTrend请求参数结构体
955
+ class DescribeFlowTrendRequest < TencentCloud::Common::AbstractModel
956
+ # @param Domain: 需要获取流量趋势的域名, all表示所有域名
957
+ # @type Domain: String
958
+ # @param StartTs: 起始时间戳,精度秒
959
+ # @type StartTs: Integer
960
+ # @param EndTs: 结束时间戳,精度秒
961
+ # @type EndTs: Integer
962
+
963
+ attr_accessor :Domain, :StartTs, :EndTs
964
+
965
+ def initialize(domain=nil, startts=nil, endts=nil)
966
+ @Domain = domain
967
+ @StartTs = startts
968
+ @EndTs = endts
969
+ end
970
+
971
+ def deserialize(params)
972
+ @Domain = params['Domain']
973
+ @StartTs = params['StartTs']
974
+ @EndTs = params['EndTs']
975
+ end
976
+ end
977
+
978
+ # DescribeFlowTrend返回参数结构体
979
+ class DescribeFlowTrendResponse < TencentCloud::Common::AbstractModel
980
+ # @param Data: 流量趋势数据
981
+ # @type Data: Array
982
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
983
+ # @type RequestId: String
984
+
985
+ attr_accessor :Data, :RequestId
986
+
987
+ def initialize(data=nil, requestid=nil)
988
+ @Data = data
989
+ @RequestId = requestid
990
+ end
991
+
992
+ def deserialize(params)
993
+ unless params['Data'].nil?
994
+ @Data = []
995
+ params['Data'].each do |i|
996
+ botstatpointitem_tmp = BotStatPointItem.new
997
+ botstatpointitem_tmp.deserialize(i)
998
+ @Data << botstatpointitem_tmp
999
+ end
1000
+ end
1001
+ @RequestId = params['RequestId']
1002
+ end
1003
+ end
1004
+
1005
+ # DescribeUserClbWafRegions请求参数结构体
1006
+ class DescribeUserClbWafRegionsRequest < TencentCloud::Common::AbstractModel
1007
+
1008
+
1009
+ def initialize()
1010
+ end
1011
+
1012
+ def deserialize(params)
1013
+ end
1014
+ end
1015
+
1016
+ # DescribeUserClbWafRegions返回参数结构体
1017
+ class DescribeUserClbWafRegionsResponse < TencentCloud::Common::AbstractModel
1018
+ # @param Data: 地域(标准的ap-格式)列表
1019
+ # 注意:此字段可能返回 null,表示取不到有效值。
1020
+ # @type Data: Array
1021
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1022
+ # @type RequestId: String
1023
+
1024
+ attr_accessor :Data, :RequestId
1025
+
1026
+ def initialize(data=nil, requestid=nil)
1027
+ @Data = data
1028
+ @RequestId = requestid
1029
+ end
1030
+
1031
+ def deserialize(params)
1032
+ @Data = params['Data']
1033
+ @RequestId = params['RequestId']
1034
+ end
1035
+ end
1036
+
1037
+ # DescribeAccessExports接口
1038
+ class ExportAccessInfo < TencentCloud::Common::AbstractModel
1039
+ # @param ExportId: 日志导出任务ID
1040
+ # 注意:此字段可能返回 null,表示取不到有效值。
1041
+ # @type ExportId: String
1042
+ # @param Query: 日志导出查询语句
1043
+ # 注意:此字段可能返回 null,表示取不到有效值。
1044
+ # @type Query: String
1045
+ # @param FileName: 日志导出文件名
1046
+ # 注意:此字段可能返回 null,表示取不到有效值。
1047
+ # @type FileName: String
1048
+ # @param FileSize: 日志文件大小
1049
+ # @type FileSize: Integer
1050
+ # @param Order: 日志导出时间排序
1051
+ # 注意:此字段可能返回 null,表示取不到有效值。
1052
+ # @type Order: String
1053
+ # @param Format: 日志导出格式
1054
+ # 注意:此字段可能返回 null,表示取不到有效值。
1055
+ # @type Format: String
1056
+ # @param Count: 日志导出数量
1057
+ # 注意:此字段可能返回 null,表示取不到有效值。
1058
+ # @type Count: Integer
1059
+ # @param Status: 日志下载状态。Processing:导出正在进行中,Complete:导出完成,Failed:导出失败,Expired:日志导出已过期(三天有效期)
1060
+ # @type Status: String
1061
+ # @param From: 日志导出起始时间
1062
+ # @type From: Integer
1063
+ # @param To: 日志导出结束时间
1064
+ # @type To: Integer
1065
+ # @param CosPath: 日志导出路径
1066
+ # @type CosPath: String
1067
+ # @param CreateTime: 日志导出创建时间
1068
+ # @type CreateTime: String
1069
+
1070
+ attr_accessor :ExportId, :Query, :FileName, :FileSize, :Order, :Format, :Count, :Status, :From, :To, :CosPath, :CreateTime
1071
+
1072
+ def initialize(exportid=nil, query=nil, filename=nil, filesize=nil, order=nil, format=nil, count=nil, status=nil, from=nil, to=nil, cospath=nil, createtime=nil)
1073
+ @ExportId = exportid
1074
+ @Query = query
1075
+ @FileName = filename
1076
+ @FileSize = filesize
1077
+ @Order = order
1078
+ @Format = format
1079
+ @Count = count
1080
+ @Status = status
1081
+ @From = from
1082
+ @To = to
1083
+ @CosPath = cospath
1084
+ @CreateTime = createtime
1085
+ end
1086
+
1087
+ def deserialize(params)
1088
+ @ExportId = params['ExportId']
1089
+ @Query = params['Query']
1090
+ @FileName = params['FileName']
1091
+ @FileSize = params['FileSize']
1092
+ @Order = params['Order']
1093
+ @Format = params['Format']
1094
+ @Count = params['Count']
1095
+ @Status = params['Status']
1096
+ @From = params['From']
1097
+ @To = params['To']
1098
+ @CosPath = params['CosPath']
1099
+ @CreateTime = params['CreateTime']
1100
+ end
1101
+ end
1102
+
1103
+ # ModifyAccessPeriod请求参数结构体
1104
+ class ModifyAccessPeriodRequest < TencentCloud::Common::AbstractModel
1105
+ # @param Period: 访问日志保存期限,范围为[1, 30]
1106
+ # @type Period: Integer
1107
+ # @param TopicId: 日志主题
1108
+ # @type TopicId: String
1109
+
1110
+ attr_accessor :Period, :TopicId
1111
+
1112
+ def initialize(period=nil, topicid=nil)
1113
+ @Period = period
1114
+ @TopicId = topicid
1115
+ end
1116
+
1117
+ def deserialize(params)
1118
+ @Period = params['Period']
1119
+ @TopicId = params['TopicId']
1120
+ end
1121
+ end
1122
+
1123
+ # ModifyAccessPeriod返回参数结构体
1124
+ class ModifyAccessPeriodResponse < TencentCloud::Common::AbstractModel
1125
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1126
+ # @type RequestId: String
1127
+
1128
+ attr_accessor :RequestId
1129
+
1130
+ def initialize(requestid=nil)
1131
+ @RequestId = requestid
1132
+ end
1133
+
1134
+ def deserialize(params)
1135
+ @RequestId = params['RequestId']
1136
+ end
1137
+ end
1138
+
1139
+ # ModifyCustomRuleStatus请求参数结构体
1140
+ class ModifyCustomRuleStatusRequest < TencentCloud::Common::AbstractModel
1141
+ # @param Domain: 域名
1142
+ # @type Domain: String
1143
+ # @param RuleId: 规则ID
1144
+ # @type RuleId: Integer
1145
+ # @param Status: 开关的状态,1是开启、0是关闭
1146
+ # @type Status: Integer
1147
+ # @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
1148
+ # @type Edition: String
1149
+
1150
+ attr_accessor :Domain, :RuleId, :Status, :Edition
1151
+
1152
+ def initialize(domain=nil, ruleid=nil, status=nil, edition=nil)
1153
+ @Domain = domain
1154
+ @RuleId = ruleid
1155
+ @Status = status
1156
+ @Edition = edition
1157
+ end
1158
+
1159
+ def deserialize(params)
1160
+ @Domain = params['Domain']
1161
+ @RuleId = params['RuleId']
1162
+ @Status = params['Status']
1163
+ @Edition = params['Edition']
1164
+ end
1165
+ end
1166
+
1167
+ # ModifyCustomRuleStatus返回参数结构体
1168
+ class ModifyCustomRuleStatusResponse < TencentCloud::Common::AbstractModel
1169
+ # @param Success: 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
1170
+ # @type Success: :class:`Tencentcloud::Waf.v20180125.models.ResponseCode`
1171
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1172
+ # @type RequestId: String
1173
+
1174
+ attr_accessor :Success, :RequestId
1175
+
1176
+ def initialize(success=nil, requestid=nil)
1177
+ @Success = success
1178
+ @RequestId = requestid
1179
+ end
1180
+
1181
+ def deserialize(params)
1182
+ unless params['Success'].nil?
1183
+ @Success = ResponseCode.new
1184
+ @Success.deserialize(params['Success'])
1185
+ end
1186
+ @RequestId = params['RequestId']
1187
+ end
1188
+ end
1189
+
1190
+ # 响应体的返回码
1191
+ class ResponseCode < TencentCloud::Common::AbstractModel
1192
+ # @param Code: 如果成功则返回Success,失败则返回yunapi定义的错误码
1193
+ # @type Code: String
1194
+ # @param Message: 如果成功则返回Success,失败则返回WAF定义的二级错误码
1195
+ # @type Message: String
1196
+
1197
+ attr_accessor :Code, :Message
1198
+
1199
+ def initialize(code=nil, message=nil)
1200
+ @Code = code
1201
+ @Message = message
1202
+ end
1203
+
1204
+ def deserialize(params)
1205
+ @Code = params['Code']
1206
+ @Message = params['Message']
1207
+ end
1208
+ end
1209
+
1210
+ # SearchAccessLog请求参数结构体
1211
+ class SearchAccessLogRequest < TencentCloud::Common::AbstractModel
1212
+ # @param TopicId: 客户要查询的日志主题ID,每个客户都有对应的一个主题
1213
+ # @type TopicId: String
1214
+ # @param From: 要查询的日志的起始时间,Unix时间戳,单位ms
1215
+ # @type From: Integer
1216
+ # @param To: 要查询的日志的结束时间,Unix时间戳,单位ms
1217
+ # @type To: Integer
1218
+ # @param Query: 查询语句,语句长度最大为4096
1219
+ # @type Query: String
1220
+ # @param Limit: 单次查询返回的日志条数,最大值为100
1221
+ # @type Limit: Integer
1222
+ # @param Context: 加载更多日志时使用,透传上次返回的Context值,获取后续的日志内容
1223
+ # @type Context: String
1224
+ # @param Sort: 日志接口是否按时间排序返回;可选值:asc(升序)、desc(降序),默认为 desc
1225
+ # @type Sort: String
1226
+
1227
+ attr_accessor :TopicId, :From, :To, :Query, :Limit, :Context, :Sort
1228
+
1229
+ def initialize(topicid=nil, from=nil, to=nil, query=nil, limit=nil, context=nil, sort=nil)
1230
+ @TopicId = topicid
1231
+ @From = from
1232
+ @To = to
1233
+ @Query = query
1234
+ @Limit = limit
1235
+ @Context = context
1236
+ @Sort = sort
1237
+ end
1238
+
1239
+ def deserialize(params)
1240
+ @TopicId = params['TopicId']
1241
+ @From = params['From']
1242
+ @To = params['To']
1243
+ @Query = params['Query']
1244
+ @Limit = params['Limit']
1245
+ @Context = params['Context']
1246
+ @Sort = params['Sort']
1247
+ end
1248
+ end
1249
+
1250
+ # SearchAccessLog返回参数结构体
1251
+ class SearchAccessLogResponse < TencentCloud::Common::AbstractModel
1252
+ # @param Context: 加载后续内容的Context
1253
+ # @type Context: String
1254
+ # @param ListOver: 日志查询结果是否全部返回
1255
+ # @type ListOver: Boolean
1256
+ # @param Analysis: 返回的是否为分析结果
1257
+ # @type Analysis: Boolean
1258
+ # @param ColNames: 如果Analysis为True,则返回分析结果的列名,否则为空
1259
+ # 注意:此字段可能返回 null,表示取不到有效值。
1260
+ # 注意:此字段可能返回 null,表示取不到有效值。
1261
+ # @type ColNames: Array
1262
+ # @param Results: 日志查询结果;当Analysis为True时,可能返回为null
1263
+ # 注意:此字段可能返回 null,表示取不到有效值
1264
+ # 注意:此字段可能返回 null,表示取不到有效值。
1265
+ # @type Results: Array
1266
+ # @param AnalysisResults: 日志分析结果;当Analysis为False时,可能返回为null
1267
+ # 注意:此字段可能返回 null,表示取不到有效值
1268
+ # 注意:此字段可能返回 null,表示取不到有效值。
1269
+ # @type AnalysisResults: Array
1270
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1271
+ # @type RequestId: String
1272
+
1273
+ attr_accessor :Context, :ListOver, :Analysis, :ColNames, :Results, :AnalysisResults, :RequestId
1274
+
1275
+ def initialize(context=nil, listover=nil, analysis=nil, colnames=nil, results=nil, analysisresults=nil, requestid=nil)
1276
+ @Context = context
1277
+ @ListOver = listover
1278
+ @Analysis = analysis
1279
+ @ColNames = colnames
1280
+ @Results = results
1281
+ @AnalysisResults = analysisresults
1282
+ @RequestId = requestid
1283
+ end
1284
+
1285
+ def deserialize(params)
1286
+ @Context = params['Context']
1287
+ @ListOver = params['ListOver']
1288
+ @Analysis = params['Analysis']
1289
+ @ColNames = params['ColNames']
1290
+ unless params['Results'].nil?
1291
+ @Results = []
1292
+ params['Results'].each do |i|
1293
+ accessloginfo_tmp = AccessLogInfo.new
1294
+ accessloginfo_tmp.deserialize(i)
1295
+ @Results << accessloginfo_tmp
1296
+ end
1297
+ end
1298
+ unless params['AnalysisResults'].nil?
1299
+ @AnalysisResults = []
1300
+ params['AnalysisResults'].each do |i|
1301
+ accesslogitems_tmp = AccessLogItems.new
1302
+ accesslogitems_tmp.deserialize(i)
1303
+ @AnalysisResults << accesslogitems_tmp
1304
+ end
1305
+ end
1306
+ @RequestId = params['RequestId']
1307
+ end
1308
+ end
1309
+
1310
+ # 自定义规则的匹配条件结构体
1311
+ class Strategy < TencentCloud::Common::AbstractModel
1312
+ # @param Field: 匹配字段
1313
+ # @type Field: String
1314
+ # @param CompareFunc: 逻辑符号
1315
+ # @type CompareFunc: String
1316
+ # @param Content: 匹配内容
1317
+ # @type Content: String
1318
+ # @param Arg: 匹配参数
1319
+ # @type Arg: String
1320
+
1321
+ attr_accessor :Field, :CompareFunc, :Content, :Arg
1322
+
1323
+ def initialize(field=nil, comparefunc=nil, content=nil, arg=nil)
1324
+ @Field = field
1325
+ @CompareFunc = comparefunc
1326
+ @Content = content
1327
+ @Arg = arg
1328
+ end
1329
+
1330
+ def deserialize(params)
1331
+ @Field = params['Field']
1332
+ @CompareFunc = params['CompareFunc']
1333
+ @Content = params['Content']
1334
+ @Arg = params['Arg']
1335
+ end
1336
+ end
1337
+
1338
+ end
1339
+ end
1340
+ end
1341
+