tencentcloud-sdk-python 3.0.1372__py2.py3-none-any.whl → 3.0.1373__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cfw/v20190904/cfw_client.py +26 -0
- tencentcloud/cfw/v20190904/errorcodes.py +54 -0
- tencentcloud/cfw/v20190904/models.py +1092 -0
- tencentcloud/ckafka/v20190819/ckafka_client.py +23 -0
- tencentcloud/ckafka/v20190819/errorcodes.py +3 -0
- tencentcloud/ckafka/v20190819/models.py +443 -0
- tencentcloud/clb/v20180317/models.py +30 -10
- tencentcloud/gs/v20191118/gs_client.py +26 -0
- tencentcloud/gs/v20191118/models.py +84 -0
- tencentcloud/lkeap/v20240522/lkeap_client.py +7 -1
- {tencentcloud_sdk_python-3.0.1372.dist-info → tencentcloud_sdk_python-3.0.1373.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1372.dist-info → tencentcloud_sdk_python-3.0.1373.dist-info}/RECORD +16 -16
- {tencentcloud_sdk_python-3.0.1372.dist-info → tencentcloud_sdk_python-3.0.1373.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1372.dist-info → tencentcloud_sdk_python-3.0.1373.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1372.dist-info → tencentcloud_sdk_python-3.0.1373.dist-info}/top_level.txt +0 -0
@@ -1985,6 +1985,57 @@ class CfwNatDnatRule(AbstractModel):
|
|
1985
1985
|
|
1986
1986
|
|
1987
1987
|
|
1988
|
+
class Column(AbstractModel):
|
1989
|
+
"""日志分析的列属性
|
1990
|
+
|
1991
|
+
"""
|
1992
|
+
|
1993
|
+
def __init__(self):
|
1994
|
+
r"""
|
1995
|
+
:param _Name: 列的名字
|
1996
|
+
:type Name: str
|
1997
|
+
:param _Type: 列的属性
|
1998
|
+
:type Type: str
|
1999
|
+
"""
|
2000
|
+
self._Name = None
|
2001
|
+
self._Type = None
|
2002
|
+
|
2003
|
+
@property
|
2004
|
+
def Name(self):
|
2005
|
+
"""列的名字
|
2006
|
+
:rtype: str
|
2007
|
+
"""
|
2008
|
+
return self._Name
|
2009
|
+
|
2010
|
+
@Name.setter
|
2011
|
+
def Name(self, Name):
|
2012
|
+
self._Name = Name
|
2013
|
+
|
2014
|
+
@property
|
2015
|
+
def Type(self):
|
2016
|
+
"""列的属性
|
2017
|
+
:rtype: str
|
2018
|
+
"""
|
2019
|
+
return self._Type
|
2020
|
+
|
2021
|
+
@Type.setter
|
2022
|
+
def Type(self, Type):
|
2023
|
+
self._Type = Type
|
2024
|
+
|
2025
|
+
|
2026
|
+
def _deserialize(self, params):
|
2027
|
+
self._Name = params.get("Name")
|
2028
|
+
self._Type = params.get("Type")
|
2029
|
+
memeber_set = set(params.keys())
|
2030
|
+
for name, value in vars(self).items():
|
2031
|
+
property_name = name[1:]
|
2032
|
+
if property_name in memeber_set:
|
2033
|
+
memeber_set.remove(property_name)
|
2034
|
+
if len(memeber_set) > 0:
|
2035
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2036
|
+
|
2037
|
+
|
2038
|
+
|
1988
2039
|
class CommonFilter(AbstractModel):
|
1989
2040
|
"""通用的列表检索过滤选项
|
1990
2041
|
|
@@ -16362,6 +16413,292 @@ class IpStatic(AbstractModel):
|
|
16362
16413
|
|
16363
16414
|
|
16364
16415
|
|
16416
|
+
class LogInfo(AbstractModel):
|
16417
|
+
"""日志结果信息
|
16418
|
+
|
16419
|
+
"""
|
16420
|
+
|
16421
|
+
def __init__(self):
|
16422
|
+
r"""
|
16423
|
+
:param _Time: 日志时间,单位ms
|
16424
|
+
:type Time: int
|
16425
|
+
:param _TopicId: 日志主题ID
|
16426
|
+
:type TopicId: str
|
16427
|
+
:param _TopicName: 日志主题名称
|
16428
|
+
:type TopicName: str
|
16429
|
+
:param _Source: 日志来源IP
|
16430
|
+
:type Source: str
|
16431
|
+
:param _FileName: 日志文件名称
|
16432
|
+
:type FileName: str
|
16433
|
+
:param _PkgId: 日志上报请求包的ID
|
16434
|
+
:type PkgId: str
|
16435
|
+
:param _PkgLogId: 请求包内日志的ID
|
16436
|
+
:type PkgLogId: str
|
16437
|
+
:param _LogJson: 日志内容的Json序列化字符串
|
16438
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16439
|
+
:type LogJson: str
|
16440
|
+
:param _HostName: 日志来源主机名称
|
16441
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16442
|
+
:type HostName: str
|
16443
|
+
:param _RawLog: 原始日志(仅在日志创建索引异常时有值)
|
16444
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16445
|
+
:type RawLog: str
|
16446
|
+
:param _IndexStatus: 日志创建索引异常原因(仅在日志创建索引异常时有值)
|
16447
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16448
|
+
:type IndexStatus: str
|
16449
|
+
"""
|
16450
|
+
self._Time = None
|
16451
|
+
self._TopicId = None
|
16452
|
+
self._TopicName = None
|
16453
|
+
self._Source = None
|
16454
|
+
self._FileName = None
|
16455
|
+
self._PkgId = None
|
16456
|
+
self._PkgLogId = None
|
16457
|
+
self._LogJson = None
|
16458
|
+
self._HostName = None
|
16459
|
+
self._RawLog = None
|
16460
|
+
self._IndexStatus = None
|
16461
|
+
|
16462
|
+
@property
|
16463
|
+
def Time(self):
|
16464
|
+
"""日志时间,单位ms
|
16465
|
+
:rtype: int
|
16466
|
+
"""
|
16467
|
+
return self._Time
|
16468
|
+
|
16469
|
+
@Time.setter
|
16470
|
+
def Time(self, Time):
|
16471
|
+
self._Time = Time
|
16472
|
+
|
16473
|
+
@property
|
16474
|
+
def TopicId(self):
|
16475
|
+
"""日志主题ID
|
16476
|
+
:rtype: str
|
16477
|
+
"""
|
16478
|
+
return self._TopicId
|
16479
|
+
|
16480
|
+
@TopicId.setter
|
16481
|
+
def TopicId(self, TopicId):
|
16482
|
+
self._TopicId = TopicId
|
16483
|
+
|
16484
|
+
@property
|
16485
|
+
def TopicName(self):
|
16486
|
+
"""日志主题名称
|
16487
|
+
:rtype: str
|
16488
|
+
"""
|
16489
|
+
return self._TopicName
|
16490
|
+
|
16491
|
+
@TopicName.setter
|
16492
|
+
def TopicName(self, TopicName):
|
16493
|
+
self._TopicName = TopicName
|
16494
|
+
|
16495
|
+
@property
|
16496
|
+
def Source(self):
|
16497
|
+
"""日志来源IP
|
16498
|
+
:rtype: str
|
16499
|
+
"""
|
16500
|
+
return self._Source
|
16501
|
+
|
16502
|
+
@Source.setter
|
16503
|
+
def Source(self, Source):
|
16504
|
+
self._Source = Source
|
16505
|
+
|
16506
|
+
@property
|
16507
|
+
def FileName(self):
|
16508
|
+
"""日志文件名称
|
16509
|
+
:rtype: str
|
16510
|
+
"""
|
16511
|
+
return self._FileName
|
16512
|
+
|
16513
|
+
@FileName.setter
|
16514
|
+
def FileName(self, FileName):
|
16515
|
+
self._FileName = FileName
|
16516
|
+
|
16517
|
+
@property
|
16518
|
+
def PkgId(self):
|
16519
|
+
"""日志上报请求包的ID
|
16520
|
+
:rtype: str
|
16521
|
+
"""
|
16522
|
+
return self._PkgId
|
16523
|
+
|
16524
|
+
@PkgId.setter
|
16525
|
+
def PkgId(self, PkgId):
|
16526
|
+
self._PkgId = PkgId
|
16527
|
+
|
16528
|
+
@property
|
16529
|
+
def PkgLogId(self):
|
16530
|
+
"""请求包内日志的ID
|
16531
|
+
:rtype: str
|
16532
|
+
"""
|
16533
|
+
return self._PkgLogId
|
16534
|
+
|
16535
|
+
@PkgLogId.setter
|
16536
|
+
def PkgLogId(self, PkgLogId):
|
16537
|
+
self._PkgLogId = PkgLogId
|
16538
|
+
|
16539
|
+
@property
|
16540
|
+
def LogJson(self):
|
16541
|
+
"""日志内容的Json序列化字符串
|
16542
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16543
|
+
:rtype: str
|
16544
|
+
"""
|
16545
|
+
return self._LogJson
|
16546
|
+
|
16547
|
+
@LogJson.setter
|
16548
|
+
def LogJson(self, LogJson):
|
16549
|
+
self._LogJson = LogJson
|
16550
|
+
|
16551
|
+
@property
|
16552
|
+
def HostName(self):
|
16553
|
+
"""日志来源主机名称
|
16554
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16555
|
+
:rtype: str
|
16556
|
+
"""
|
16557
|
+
return self._HostName
|
16558
|
+
|
16559
|
+
@HostName.setter
|
16560
|
+
def HostName(self, HostName):
|
16561
|
+
self._HostName = HostName
|
16562
|
+
|
16563
|
+
@property
|
16564
|
+
def RawLog(self):
|
16565
|
+
"""原始日志(仅在日志创建索引异常时有值)
|
16566
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16567
|
+
:rtype: str
|
16568
|
+
"""
|
16569
|
+
return self._RawLog
|
16570
|
+
|
16571
|
+
@RawLog.setter
|
16572
|
+
def RawLog(self, RawLog):
|
16573
|
+
self._RawLog = RawLog
|
16574
|
+
|
16575
|
+
@property
|
16576
|
+
def IndexStatus(self):
|
16577
|
+
"""日志创建索引异常原因(仅在日志创建索引异常时有值)
|
16578
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
16579
|
+
:rtype: str
|
16580
|
+
"""
|
16581
|
+
return self._IndexStatus
|
16582
|
+
|
16583
|
+
@IndexStatus.setter
|
16584
|
+
def IndexStatus(self, IndexStatus):
|
16585
|
+
self._IndexStatus = IndexStatus
|
16586
|
+
|
16587
|
+
|
16588
|
+
def _deserialize(self, params):
|
16589
|
+
self._Time = params.get("Time")
|
16590
|
+
self._TopicId = params.get("TopicId")
|
16591
|
+
self._TopicName = params.get("TopicName")
|
16592
|
+
self._Source = params.get("Source")
|
16593
|
+
self._FileName = params.get("FileName")
|
16594
|
+
self._PkgId = params.get("PkgId")
|
16595
|
+
self._PkgLogId = params.get("PkgLogId")
|
16596
|
+
self._LogJson = params.get("LogJson")
|
16597
|
+
self._HostName = params.get("HostName")
|
16598
|
+
self._RawLog = params.get("RawLog")
|
16599
|
+
self._IndexStatus = params.get("IndexStatus")
|
16600
|
+
memeber_set = set(params.keys())
|
16601
|
+
for name, value in vars(self).items():
|
16602
|
+
property_name = name[1:]
|
16603
|
+
if property_name in memeber_set:
|
16604
|
+
memeber_set.remove(property_name)
|
16605
|
+
if len(memeber_set) > 0:
|
16606
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16607
|
+
|
16608
|
+
|
16609
|
+
|
16610
|
+
class LogItem(AbstractModel):
|
16611
|
+
"""日志中的KV对
|
16612
|
+
|
16613
|
+
"""
|
16614
|
+
|
16615
|
+
def __init__(self):
|
16616
|
+
r"""
|
16617
|
+
:param _Key: 日志Key
|
16618
|
+
:type Key: str
|
16619
|
+
:param _Value: 日志Value
|
16620
|
+
:type Value: str
|
16621
|
+
"""
|
16622
|
+
self._Key = None
|
16623
|
+
self._Value = None
|
16624
|
+
|
16625
|
+
@property
|
16626
|
+
def Key(self):
|
16627
|
+
"""日志Key
|
16628
|
+
:rtype: str
|
16629
|
+
"""
|
16630
|
+
return self._Key
|
16631
|
+
|
16632
|
+
@Key.setter
|
16633
|
+
def Key(self, Key):
|
16634
|
+
self._Key = Key
|
16635
|
+
|
16636
|
+
@property
|
16637
|
+
def Value(self):
|
16638
|
+
"""日志Value
|
16639
|
+
:rtype: str
|
16640
|
+
"""
|
16641
|
+
return self._Value
|
16642
|
+
|
16643
|
+
@Value.setter
|
16644
|
+
def Value(self, Value):
|
16645
|
+
self._Value = Value
|
16646
|
+
|
16647
|
+
|
16648
|
+
def _deserialize(self, params):
|
16649
|
+
self._Key = params.get("Key")
|
16650
|
+
self._Value = params.get("Value")
|
16651
|
+
memeber_set = set(params.keys())
|
16652
|
+
for name, value in vars(self).items():
|
16653
|
+
property_name = name[1:]
|
16654
|
+
if property_name in memeber_set:
|
16655
|
+
memeber_set.remove(property_name)
|
16656
|
+
if len(memeber_set) > 0:
|
16657
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16658
|
+
|
16659
|
+
|
16660
|
+
|
16661
|
+
class LogItems(AbstractModel):
|
16662
|
+
"""LogItem的数组
|
16663
|
+
|
16664
|
+
"""
|
16665
|
+
|
16666
|
+
def __init__(self):
|
16667
|
+
r"""
|
16668
|
+
:param _Data: 分析结果返回的KV数据对
|
16669
|
+
:type Data: list of LogItem
|
16670
|
+
"""
|
16671
|
+
self._Data = None
|
16672
|
+
|
16673
|
+
@property
|
16674
|
+
def Data(self):
|
16675
|
+
"""分析结果返回的KV数据对
|
16676
|
+
:rtype: list of LogItem
|
16677
|
+
"""
|
16678
|
+
return self._Data
|
16679
|
+
|
16680
|
+
@Data.setter
|
16681
|
+
def Data(self, Data):
|
16682
|
+
self._Data = Data
|
16683
|
+
|
16684
|
+
|
16685
|
+
def _deserialize(self, params):
|
16686
|
+
if params.get("Data") is not None:
|
16687
|
+
self._Data = []
|
16688
|
+
for item in params.get("Data"):
|
16689
|
+
obj = LogItem()
|
16690
|
+
obj._deserialize(item)
|
16691
|
+
self._Data.append(obj)
|
16692
|
+
memeber_set = set(params.keys())
|
16693
|
+
for name, value in vars(self).items():
|
16694
|
+
property_name = name[1:]
|
16695
|
+
if property_name in memeber_set:
|
16696
|
+
memeber_set.remove(property_name)
|
16697
|
+
if len(memeber_set) > 0:
|
16698
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
16699
|
+
|
16700
|
+
|
16701
|
+
|
16365
16702
|
class ModifyAcRuleRequest(AbstractModel):
|
16366
16703
|
"""ModifyAcRule请求参数结构体
|
16367
16704
|
|
@@ -20056,6 +20393,57 @@ class ModifyVpcFwSequenceRulesResponse(AbstractModel):
|
|
20056
20393
|
self._RequestId = params.get("RequestId")
|
20057
20394
|
|
20058
20395
|
|
20396
|
+
class MultiTopicSearchInformation(AbstractModel):
|
20397
|
+
"""多日志主题检索相关信息
|
20398
|
+
|
20399
|
+
"""
|
20400
|
+
|
20401
|
+
def __init__(self):
|
20402
|
+
r"""
|
20403
|
+
:param _TopicId: 要检索分析的日志主题ID
|
20404
|
+
:type TopicId: str
|
20405
|
+
:param _Context: 透传上次接口返回的Context值,可获取后续更多日志,总计最多可获取1万条原始日志,过期时间1小时
|
20406
|
+
:type Context: str
|
20407
|
+
"""
|
20408
|
+
self._TopicId = None
|
20409
|
+
self._Context = None
|
20410
|
+
|
20411
|
+
@property
|
20412
|
+
def TopicId(self):
|
20413
|
+
"""要检索分析的日志主题ID
|
20414
|
+
:rtype: str
|
20415
|
+
"""
|
20416
|
+
return self._TopicId
|
20417
|
+
|
20418
|
+
@TopicId.setter
|
20419
|
+
def TopicId(self, TopicId):
|
20420
|
+
self._TopicId = TopicId
|
20421
|
+
|
20422
|
+
@property
|
20423
|
+
def Context(self):
|
20424
|
+
"""透传上次接口返回的Context值,可获取后续更多日志,总计最多可获取1万条原始日志,过期时间1小时
|
20425
|
+
:rtype: str
|
20426
|
+
"""
|
20427
|
+
return self._Context
|
20428
|
+
|
20429
|
+
@Context.setter
|
20430
|
+
def Context(self, Context):
|
20431
|
+
self._Context = Context
|
20432
|
+
|
20433
|
+
|
20434
|
+
def _deserialize(self, params):
|
20435
|
+
self._TopicId = params.get("TopicId")
|
20436
|
+
self._Context = params.get("Context")
|
20437
|
+
memeber_set = set(params.keys())
|
20438
|
+
for name, value in vars(self).items():
|
20439
|
+
property_name = name[1:]
|
20440
|
+
if property_name in memeber_set:
|
20441
|
+
memeber_set.remove(property_name)
|
20442
|
+
if len(memeber_set) > 0:
|
20443
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
20444
|
+
|
20445
|
+
|
20446
|
+
|
20059
20447
|
class NatFwEipsInfo(AbstractModel):
|
20060
20448
|
"""Nat防火墙弹性公网ip列表
|
20061
20449
|
|
@@ -21961,6 +22349,710 @@ class ScanResultInfo(AbstractModel):
|
|
21961
22349
|
|
21962
22350
|
|
21963
22351
|
|
22352
|
+
class SearchLogErrors(AbstractModel):
|
22353
|
+
"""多日志主题检索错误信息
|
22354
|
+
|
22355
|
+
"""
|
22356
|
+
|
22357
|
+
def __init__(self):
|
22358
|
+
r"""
|
22359
|
+
:param _TopicId: 日志主题ID
|
22360
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22361
|
+
:type TopicId: str
|
22362
|
+
:param _ErrorMsg: 错误信息
|
22363
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22364
|
+
:type ErrorMsg: str
|
22365
|
+
:param _ErrorCodeStr: 错误码
|
22366
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22367
|
+
:type ErrorCodeStr: str
|
22368
|
+
"""
|
22369
|
+
self._TopicId = None
|
22370
|
+
self._ErrorMsg = None
|
22371
|
+
self._ErrorCodeStr = None
|
22372
|
+
|
22373
|
+
@property
|
22374
|
+
def TopicId(self):
|
22375
|
+
"""日志主题ID
|
22376
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22377
|
+
:rtype: str
|
22378
|
+
"""
|
22379
|
+
return self._TopicId
|
22380
|
+
|
22381
|
+
@TopicId.setter
|
22382
|
+
def TopicId(self, TopicId):
|
22383
|
+
self._TopicId = TopicId
|
22384
|
+
|
22385
|
+
@property
|
22386
|
+
def ErrorMsg(self):
|
22387
|
+
"""错误信息
|
22388
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22389
|
+
:rtype: str
|
22390
|
+
"""
|
22391
|
+
return self._ErrorMsg
|
22392
|
+
|
22393
|
+
@ErrorMsg.setter
|
22394
|
+
def ErrorMsg(self, ErrorMsg):
|
22395
|
+
self._ErrorMsg = ErrorMsg
|
22396
|
+
|
22397
|
+
@property
|
22398
|
+
def ErrorCodeStr(self):
|
22399
|
+
"""错误码
|
22400
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22401
|
+
:rtype: str
|
22402
|
+
"""
|
22403
|
+
return self._ErrorCodeStr
|
22404
|
+
|
22405
|
+
@ErrorCodeStr.setter
|
22406
|
+
def ErrorCodeStr(self, ErrorCodeStr):
|
22407
|
+
self._ErrorCodeStr = ErrorCodeStr
|
22408
|
+
|
22409
|
+
|
22410
|
+
def _deserialize(self, params):
|
22411
|
+
self._TopicId = params.get("TopicId")
|
22412
|
+
self._ErrorMsg = params.get("ErrorMsg")
|
22413
|
+
self._ErrorCodeStr = params.get("ErrorCodeStr")
|
22414
|
+
memeber_set = set(params.keys())
|
22415
|
+
for name, value in vars(self).items():
|
22416
|
+
property_name = name[1:]
|
22417
|
+
if property_name in memeber_set:
|
22418
|
+
memeber_set.remove(property_name)
|
22419
|
+
if len(memeber_set) > 0:
|
22420
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
22421
|
+
|
22422
|
+
|
22423
|
+
|
22424
|
+
class SearchLogInfos(AbstractModel):
|
22425
|
+
"""多日志主题检索topic信息
|
22426
|
+
|
22427
|
+
"""
|
22428
|
+
|
22429
|
+
def __init__(self):
|
22430
|
+
r"""
|
22431
|
+
:param _TopicId: 日志主题ID
|
22432
|
+
:type TopicId: str
|
22433
|
+
:param _Period: 日志存储生命周期
|
22434
|
+
:type Period: int
|
22435
|
+
:param _Context: 透传本次接口返回的Context值,可获取后续更多日志,过期时间1小时
|
22436
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22437
|
+
:type Context: str
|
22438
|
+
"""
|
22439
|
+
self._TopicId = None
|
22440
|
+
self._Period = None
|
22441
|
+
self._Context = None
|
22442
|
+
|
22443
|
+
@property
|
22444
|
+
def TopicId(self):
|
22445
|
+
"""日志主题ID
|
22446
|
+
:rtype: str
|
22447
|
+
"""
|
22448
|
+
return self._TopicId
|
22449
|
+
|
22450
|
+
@TopicId.setter
|
22451
|
+
def TopicId(self, TopicId):
|
22452
|
+
self._TopicId = TopicId
|
22453
|
+
|
22454
|
+
@property
|
22455
|
+
def Period(self):
|
22456
|
+
"""日志存储生命周期
|
22457
|
+
:rtype: int
|
22458
|
+
"""
|
22459
|
+
return self._Period
|
22460
|
+
|
22461
|
+
@Period.setter
|
22462
|
+
def Period(self, Period):
|
22463
|
+
self._Period = Period
|
22464
|
+
|
22465
|
+
@property
|
22466
|
+
def Context(self):
|
22467
|
+
"""透传本次接口返回的Context值,可获取后续更多日志,过期时间1小时
|
22468
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22469
|
+
:rtype: str
|
22470
|
+
"""
|
22471
|
+
return self._Context
|
22472
|
+
|
22473
|
+
@Context.setter
|
22474
|
+
def Context(self, Context):
|
22475
|
+
self._Context = Context
|
22476
|
+
|
22477
|
+
|
22478
|
+
def _deserialize(self, params):
|
22479
|
+
self._TopicId = params.get("TopicId")
|
22480
|
+
self._Period = params.get("Period")
|
22481
|
+
self._Context = params.get("Context")
|
22482
|
+
memeber_set = set(params.keys())
|
22483
|
+
for name, value in vars(self).items():
|
22484
|
+
property_name = name[1:]
|
22485
|
+
if property_name in memeber_set:
|
22486
|
+
memeber_set.remove(property_name)
|
22487
|
+
if len(memeber_set) > 0:
|
22488
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
22489
|
+
|
22490
|
+
|
22491
|
+
|
22492
|
+
class SearchLogRequest(AbstractModel):
|
22493
|
+
"""SearchLog请求参数结构体
|
22494
|
+
|
22495
|
+
"""
|
22496
|
+
|
22497
|
+
def __init__(self):
|
22498
|
+
r"""
|
22499
|
+
:param _From: 要检索分析的日志的起始时间,Unix时间戳(毫秒)
|
22500
|
+
:type From: int
|
22501
|
+
:param _To: 要检索分析的日志的结束时间,Unix时间戳(毫秒)
|
22502
|
+
:type To: int
|
22503
|
+
:param _Query: 检索分析语句,最大长度为12KB
|
22504
|
+
语句由 <a href="https://cloud.tencent.com/document/product/614/47044" target="_blank">[检索条件]</a> | <a href="https://cloud.tencent.com/document/product/614/44061" target="_blank">[SQL语句]</a>构成,无需对日志进行统计分析时,可省略其中的管道符<code> | </code>及SQL语句
|
22505
|
+
使用*或空字符串可查询所有日志
|
22506
|
+
:type Query: str
|
22507
|
+
:param _SyntaxRule: 检索语法规则,默认值为0,推荐使用1 。
|
22508
|
+
|
22509
|
+
- 0:Lucene语法
|
22510
|
+
- 1:CQL语法(日志服务专用检索语法,控制台默认也使用该语法规则)。
|
22511
|
+
|
22512
|
+
详细说明参见<a href="https://cloud.tencent.com/document/product/614/47044#RetrievesConditionalRules" target="_blank">检索条件语法规则</a>
|
22513
|
+
:type SyntaxRule: int
|
22514
|
+
:param _TopicId: - 要检索分析的日志主题ID,仅能指定一个日志主题。
|
22515
|
+
- 如需同时检索多个日志主题,请使用Topics参数。
|
22516
|
+
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
22517
|
+
:type TopicId: str
|
22518
|
+
:param _Topics: - 要检索分析的日志主题列表,最大支持50个日志主题。
|
22519
|
+
- 检索单个日志主题时请使用TopicId。
|
22520
|
+
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
22521
|
+
:type Topics: list of MultiTopicSearchInformation
|
22522
|
+
:param _Sort: 原始日志是否按时间排序返回;可选值:asc(升序)、desc(降序),默认为 desc
|
22523
|
+
注意:
|
22524
|
+
* 仅当检索分析语句(Query)不包含SQL时有效
|
22525
|
+
* SQL结果排序方式参考<a href="https://cloud.tencent.com/document/product/614/58978" target="_blank">SQL ORDER BY语法</a>
|
22526
|
+
:type Sort: str
|
22527
|
+
:param _Limit: 表示单次查询返回的原始日志条数,默认为100,最大值为1000。
|
22528
|
+
注意:
|
22529
|
+
* 仅当检索分析语句(Query)不包含SQL时有效
|
22530
|
+
* SQL结果条数指定方式参考<a href="https://cloud.tencent.com/document/product/614/58977" target="_blank">SQL LIMIT语法</a>
|
22531
|
+
|
22532
|
+
可通过两种方式获取后续更多日志:
|
22533
|
+
* Context:透传上次接口返回的Context值,获取后续更多日志,总计最多可获取1万条原始日志
|
22534
|
+
* Offset:偏移量,表示从第几行开始返回原始日志,无日志条数限制
|
22535
|
+
:type Limit: int
|
22536
|
+
:param _Offset: 查询原始日志的偏移量,表示从第几行开始返回原始日志,默认为0。
|
22537
|
+
注意:
|
22538
|
+
* 仅当检索分析语句(Query)不包含SQL时有效
|
22539
|
+
* 不能与Context参数同时使用
|
22540
|
+
* 仅适用于单日志主题检索
|
22541
|
+
:type Offset: int
|
22542
|
+
:param _Context: 透传上次接口返回的Context值,可获取后续更多日志,总计最多可获取1万条原始日志,过期时间1小时。
|
22543
|
+
注意:
|
22544
|
+
* 透传该参数时,请勿修改除该参数外的其它参数
|
22545
|
+
* 仅适用于单日志主题检索,检索多个日志主题时,请使用Topics中的Context
|
22546
|
+
* 仅当检索分析语句(Query)不包含SQL时有效,SQL获取后续结果参考<a href="https://cloud.tencent.com/document/product/614/58977" target="_blank">SQL LIMIT语法</a>
|
22547
|
+
:type Context: str
|
22548
|
+
:param _SamplingRate: 执行统计分析(Query中包含SQL)时,是否对原始日志先进行采样,再进行统计分析。
|
22549
|
+
0:自动采样;
|
22550
|
+
0~1:按指定采样率采样,例如0.02;
|
22551
|
+
1:不采样,即精确分析
|
22552
|
+
默认值为1
|
22553
|
+
:type SamplingRate: float
|
22554
|
+
:param _UseNewAnalysis: 为true代表使用新的检索结果返回方式,输出参数AnalysisRecords和Columns有效
|
22555
|
+
为false时代表使用老的检索结果返回方式, 输出AnalysisResults和ColNames有效
|
22556
|
+
两种返回方式在编码格式上有少量区别,建议使用true
|
22557
|
+
:type UseNewAnalysis: bool
|
22558
|
+
"""
|
22559
|
+
self._From = None
|
22560
|
+
self._To = None
|
22561
|
+
self._Query = None
|
22562
|
+
self._SyntaxRule = None
|
22563
|
+
self._TopicId = None
|
22564
|
+
self._Topics = None
|
22565
|
+
self._Sort = None
|
22566
|
+
self._Limit = None
|
22567
|
+
self._Offset = None
|
22568
|
+
self._Context = None
|
22569
|
+
self._SamplingRate = None
|
22570
|
+
self._UseNewAnalysis = None
|
22571
|
+
|
22572
|
+
@property
|
22573
|
+
def From(self):
|
22574
|
+
"""要检索分析的日志的起始时间,Unix时间戳(毫秒)
|
22575
|
+
:rtype: int
|
22576
|
+
"""
|
22577
|
+
return self._From
|
22578
|
+
|
22579
|
+
@From.setter
|
22580
|
+
def From(self, From):
|
22581
|
+
self._From = From
|
22582
|
+
|
22583
|
+
@property
|
22584
|
+
def To(self):
|
22585
|
+
"""要检索分析的日志的结束时间,Unix时间戳(毫秒)
|
22586
|
+
:rtype: int
|
22587
|
+
"""
|
22588
|
+
return self._To
|
22589
|
+
|
22590
|
+
@To.setter
|
22591
|
+
def To(self, To):
|
22592
|
+
self._To = To
|
22593
|
+
|
22594
|
+
@property
|
22595
|
+
def Query(self):
|
22596
|
+
"""检索分析语句,最大长度为12KB
|
22597
|
+
语句由 <a href="https://cloud.tencent.com/document/product/614/47044" target="_blank">[检索条件]</a> | <a href="https://cloud.tencent.com/document/product/614/44061" target="_blank">[SQL语句]</a>构成,无需对日志进行统计分析时,可省略其中的管道符<code> | </code>及SQL语句
|
22598
|
+
使用*或空字符串可查询所有日志
|
22599
|
+
:rtype: str
|
22600
|
+
"""
|
22601
|
+
return self._Query
|
22602
|
+
|
22603
|
+
@Query.setter
|
22604
|
+
def Query(self, Query):
|
22605
|
+
self._Query = Query
|
22606
|
+
|
22607
|
+
@property
|
22608
|
+
def SyntaxRule(self):
|
22609
|
+
"""检索语法规则,默认值为0,推荐使用1 。
|
22610
|
+
|
22611
|
+
- 0:Lucene语法
|
22612
|
+
- 1:CQL语法(日志服务专用检索语法,控制台默认也使用该语法规则)。
|
22613
|
+
|
22614
|
+
详细说明参见<a href="https://cloud.tencent.com/document/product/614/47044#RetrievesConditionalRules" target="_blank">检索条件语法规则</a>
|
22615
|
+
:rtype: int
|
22616
|
+
"""
|
22617
|
+
return self._SyntaxRule
|
22618
|
+
|
22619
|
+
@SyntaxRule.setter
|
22620
|
+
def SyntaxRule(self, SyntaxRule):
|
22621
|
+
self._SyntaxRule = SyntaxRule
|
22622
|
+
|
22623
|
+
@property
|
22624
|
+
def TopicId(self):
|
22625
|
+
"""- 要检索分析的日志主题ID,仅能指定一个日志主题。
|
22626
|
+
- 如需同时检索多个日志主题,请使用Topics参数。
|
22627
|
+
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
22628
|
+
:rtype: str
|
22629
|
+
"""
|
22630
|
+
return self._TopicId
|
22631
|
+
|
22632
|
+
@TopicId.setter
|
22633
|
+
def TopicId(self, TopicId):
|
22634
|
+
self._TopicId = TopicId
|
22635
|
+
|
22636
|
+
@property
|
22637
|
+
def Topics(self):
|
22638
|
+
"""- 要检索分析的日志主题列表,最大支持50个日志主题。
|
22639
|
+
- 检索单个日志主题时请使用TopicId。
|
22640
|
+
- TopicId 和 Topics 不能同时使用,在一次请求中有且只能选择一个。
|
22641
|
+
:rtype: list of MultiTopicSearchInformation
|
22642
|
+
"""
|
22643
|
+
return self._Topics
|
22644
|
+
|
22645
|
+
@Topics.setter
|
22646
|
+
def Topics(self, Topics):
|
22647
|
+
self._Topics = Topics
|
22648
|
+
|
22649
|
+
@property
|
22650
|
+
def Sort(self):
|
22651
|
+
"""原始日志是否按时间排序返回;可选值:asc(升序)、desc(降序),默认为 desc
|
22652
|
+
注意:
|
22653
|
+
* 仅当检索分析语句(Query)不包含SQL时有效
|
22654
|
+
* SQL结果排序方式参考<a href="https://cloud.tencent.com/document/product/614/58978" target="_blank">SQL ORDER BY语法</a>
|
22655
|
+
:rtype: str
|
22656
|
+
"""
|
22657
|
+
return self._Sort
|
22658
|
+
|
22659
|
+
@Sort.setter
|
22660
|
+
def Sort(self, Sort):
|
22661
|
+
self._Sort = Sort
|
22662
|
+
|
22663
|
+
@property
|
22664
|
+
def Limit(self):
|
22665
|
+
"""表示单次查询返回的原始日志条数,默认为100,最大值为1000。
|
22666
|
+
注意:
|
22667
|
+
* 仅当检索分析语句(Query)不包含SQL时有效
|
22668
|
+
* SQL结果条数指定方式参考<a href="https://cloud.tencent.com/document/product/614/58977" target="_blank">SQL LIMIT语法</a>
|
22669
|
+
|
22670
|
+
可通过两种方式获取后续更多日志:
|
22671
|
+
* Context:透传上次接口返回的Context值,获取后续更多日志,总计最多可获取1万条原始日志
|
22672
|
+
* Offset:偏移量,表示从第几行开始返回原始日志,无日志条数限制
|
22673
|
+
:rtype: int
|
22674
|
+
"""
|
22675
|
+
return self._Limit
|
22676
|
+
|
22677
|
+
@Limit.setter
|
22678
|
+
def Limit(self, Limit):
|
22679
|
+
self._Limit = Limit
|
22680
|
+
|
22681
|
+
@property
|
22682
|
+
def Offset(self):
|
22683
|
+
"""查询原始日志的偏移量,表示从第几行开始返回原始日志,默认为0。
|
22684
|
+
注意:
|
22685
|
+
* 仅当检索分析语句(Query)不包含SQL时有效
|
22686
|
+
* 不能与Context参数同时使用
|
22687
|
+
* 仅适用于单日志主题检索
|
22688
|
+
:rtype: int
|
22689
|
+
"""
|
22690
|
+
return self._Offset
|
22691
|
+
|
22692
|
+
@Offset.setter
|
22693
|
+
def Offset(self, Offset):
|
22694
|
+
self._Offset = Offset
|
22695
|
+
|
22696
|
+
@property
|
22697
|
+
def Context(self):
|
22698
|
+
"""透传上次接口返回的Context值,可获取后续更多日志,总计最多可获取1万条原始日志,过期时间1小时。
|
22699
|
+
注意:
|
22700
|
+
* 透传该参数时,请勿修改除该参数外的其它参数
|
22701
|
+
* 仅适用于单日志主题检索,检索多个日志主题时,请使用Topics中的Context
|
22702
|
+
* 仅当检索分析语句(Query)不包含SQL时有效,SQL获取后续结果参考<a href="https://cloud.tencent.com/document/product/614/58977" target="_blank">SQL LIMIT语法</a>
|
22703
|
+
:rtype: str
|
22704
|
+
"""
|
22705
|
+
return self._Context
|
22706
|
+
|
22707
|
+
@Context.setter
|
22708
|
+
def Context(self, Context):
|
22709
|
+
self._Context = Context
|
22710
|
+
|
22711
|
+
@property
|
22712
|
+
def SamplingRate(self):
|
22713
|
+
"""执行统计分析(Query中包含SQL)时,是否对原始日志先进行采样,再进行统计分析。
|
22714
|
+
0:自动采样;
|
22715
|
+
0~1:按指定采样率采样,例如0.02;
|
22716
|
+
1:不采样,即精确分析
|
22717
|
+
默认值为1
|
22718
|
+
:rtype: float
|
22719
|
+
"""
|
22720
|
+
return self._SamplingRate
|
22721
|
+
|
22722
|
+
@SamplingRate.setter
|
22723
|
+
def SamplingRate(self, SamplingRate):
|
22724
|
+
self._SamplingRate = SamplingRate
|
22725
|
+
|
22726
|
+
@property
|
22727
|
+
def UseNewAnalysis(self):
|
22728
|
+
"""为true代表使用新的检索结果返回方式,输出参数AnalysisRecords和Columns有效
|
22729
|
+
为false时代表使用老的检索结果返回方式, 输出AnalysisResults和ColNames有效
|
22730
|
+
两种返回方式在编码格式上有少量区别,建议使用true
|
22731
|
+
:rtype: bool
|
22732
|
+
"""
|
22733
|
+
return self._UseNewAnalysis
|
22734
|
+
|
22735
|
+
@UseNewAnalysis.setter
|
22736
|
+
def UseNewAnalysis(self, UseNewAnalysis):
|
22737
|
+
self._UseNewAnalysis = UseNewAnalysis
|
22738
|
+
|
22739
|
+
|
22740
|
+
def _deserialize(self, params):
|
22741
|
+
self._From = params.get("From")
|
22742
|
+
self._To = params.get("To")
|
22743
|
+
self._Query = params.get("Query")
|
22744
|
+
self._SyntaxRule = params.get("SyntaxRule")
|
22745
|
+
self._TopicId = params.get("TopicId")
|
22746
|
+
if params.get("Topics") is not None:
|
22747
|
+
self._Topics = []
|
22748
|
+
for item in params.get("Topics"):
|
22749
|
+
obj = MultiTopicSearchInformation()
|
22750
|
+
obj._deserialize(item)
|
22751
|
+
self._Topics.append(obj)
|
22752
|
+
self._Sort = params.get("Sort")
|
22753
|
+
self._Limit = params.get("Limit")
|
22754
|
+
self._Offset = params.get("Offset")
|
22755
|
+
self._Context = params.get("Context")
|
22756
|
+
self._SamplingRate = params.get("SamplingRate")
|
22757
|
+
self._UseNewAnalysis = params.get("UseNewAnalysis")
|
22758
|
+
memeber_set = set(params.keys())
|
22759
|
+
for name, value in vars(self).items():
|
22760
|
+
property_name = name[1:]
|
22761
|
+
if property_name in memeber_set:
|
22762
|
+
memeber_set.remove(property_name)
|
22763
|
+
if len(memeber_set) > 0:
|
22764
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
22765
|
+
|
22766
|
+
|
22767
|
+
|
22768
|
+
class SearchLogResponse(AbstractModel):
|
22769
|
+
"""SearchLog返回参数结构体
|
22770
|
+
|
22771
|
+
"""
|
22772
|
+
|
22773
|
+
def __init__(self):
|
22774
|
+
r"""
|
22775
|
+
:param _Context: 透传本次接口返回的Context值,可获取后续更多日志,过期时间1小时。
|
22776
|
+
注意:
|
22777
|
+
* 仅适用于单日志主题检索,检索多个日志主题时,请使用Topics中的Context
|
22778
|
+
:type Context: str
|
22779
|
+
:param _ListOver: 符合检索条件的日志是否已全部返回,如未全部返回可使用Context参数获取后续更多日志
|
22780
|
+
注意:仅当检索分析语句(Query)不包含SQL时有效
|
22781
|
+
:type ListOver: bool
|
22782
|
+
:param _Analysis: 返回的是否为统计分析(即SQL)结果
|
22783
|
+
:type Analysis: bool
|
22784
|
+
:param _Results: 匹配检索条件的原始日志
|
22785
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22786
|
+
:type Results: list of LogInfo
|
22787
|
+
:param _ColNames: 日志统计分析结果的列名
|
22788
|
+
当UseNewAnalysis为false时生效
|
22789
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22790
|
+
:type ColNames: list of str
|
22791
|
+
:param _AnalysisResults: 日志统计分析结果
|
22792
|
+
当UseNewAnalysis为false时生效
|
22793
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22794
|
+
:type AnalysisResults: list of LogItems
|
22795
|
+
:param _AnalysisRecords: 日志统计分析结果
|
22796
|
+
当UseNewAnalysis为true时生效
|
22797
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22798
|
+
:type AnalysisRecords: list of str
|
22799
|
+
:param _Columns: 日志统计分析结果的列属性
|
22800
|
+
当UseNewAnalysis为true时生效
|
22801
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22802
|
+
:type Columns: list of Column
|
22803
|
+
:param _SamplingRate: 本次统计分析使用的采样率
|
22804
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22805
|
+
:type SamplingRate: float
|
22806
|
+
:param _Topics: 使用多日志主题检索时,各个日志主题的基本信息,例如报错信息。
|
22807
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22808
|
+
:type Topics: :class:`tencentcloud.cfw.v20190904.models.SearchLogTopics`
|
22809
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
22810
|
+
:type RequestId: str
|
22811
|
+
"""
|
22812
|
+
self._Context = None
|
22813
|
+
self._ListOver = None
|
22814
|
+
self._Analysis = None
|
22815
|
+
self._Results = None
|
22816
|
+
self._ColNames = None
|
22817
|
+
self._AnalysisResults = None
|
22818
|
+
self._AnalysisRecords = None
|
22819
|
+
self._Columns = None
|
22820
|
+
self._SamplingRate = None
|
22821
|
+
self._Topics = None
|
22822
|
+
self._RequestId = None
|
22823
|
+
|
22824
|
+
@property
|
22825
|
+
def Context(self):
|
22826
|
+
"""透传本次接口返回的Context值,可获取后续更多日志,过期时间1小时。
|
22827
|
+
注意:
|
22828
|
+
* 仅适用于单日志主题检索,检索多个日志主题时,请使用Topics中的Context
|
22829
|
+
:rtype: str
|
22830
|
+
"""
|
22831
|
+
return self._Context
|
22832
|
+
|
22833
|
+
@Context.setter
|
22834
|
+
def Context(self, Context):
|
22835
|
+
self._Context = Context
|
22836
|
+
|
22837
|
+
@property
|
22838
|
+
def ListOver(self):
|
22839
|
+
"""符合检索条件的日志是否已全部返回,如未全部返回可使用Context参数获取后续更多日志
|
22840
|
+
注意:仅当检索分析语句(Query)不包含SQL时有效
|
22841
|
+
:rtype: bool
|
22842
|
+
"""
|
22843
|
+
return self._ListOver
|
22844
|
+
|
22845
|
+
@ListOver.setter
|
22846
|
+
def ListOver(self, ListOver):
|
22847
|
+
self._ListOver = ListOver
|
22848
|
+
|
22849
|
+
@property
|
22850
|
+
def Analysis(self):
|
22851
|
+
"""返回的是否为统计分析(即SQL)结果
|
22852
|
+
:rtype: bool
|
22853
|
+
"""
|
22854
|
+
return self._Analysis
|
22855
|
+
|
22856
|
+
@Analysis.setter
|
22857
|
+
def Analysis(self, Analysis):
|
22858
|
+
self._Analysis = Analysis
|
22859
|
+
|
22860
|
+
@property
|
22861
|
+
def Results(self):
|
22862
|
+
"""匹配检索条件的原始日志
|
22863
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22864
|
+
:rtype: list of LogInfo
|
22865
|
+
"""
|
22866
|
+
return self._Results
|
22867
|
+
|
22868
|
+
@Results.setter
|
22869
|
+
def Results(self, Results):
|
22870
|
+
self._Results = Results
|
22871
|
+
|
22872
|
+
@property
|
22873
|
+
def ColNames(self):
|
22874
|
+
"""日志统计分析结果的列名
|
22875
|
+
当UseNewAnalysis为false时生效
|
22876
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22877
|
+
:rtype: list of str
|
22878
|
+
"""
|
22879
|
+
return self._ColNames
|
22880
|
+
|
22881
|
+
@ColNames.setter
|
22882
|
+
def ColNames(self, ColNames):
|
22883
|
+
self._ColNames = ColNames
|
22884
|
+
|
22885
|
+
@property
|
22886
|
+
def AnalysisResults(self):
|
22887
|
+
"""日志统计分析结果
|
22888
|
+
当UseNewAnalysis为false时生效
|
22889
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22890
|
+
:rtype: list of LogItems
|
22891
|
+
"""
|
22892
|
+
return self._AnalysisResults
|
22893
|
+
|
22894
|
+
@AnalysisResults.setter
|
22895
|
+
def AnalysisResults(self, AnalysisResults):
|
22896
|
+
self._AnalysisResults = AnalysisResults
|
22897
|
+
|
22898
|
+
@property
|
22899
|
+
def AnalysisRecords(self):
|
22900
|
+
"""日志统计分析结果
|
22901
|
+
当UseNewAnalysis为true时生效
|
22902
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22903
|
+
:rtype: list of str
|
22904
|
+
"""
|
22905
|
+
return self._AnalysisRecords
|
22906
|
+
|
22907
|
+
@AnalysisRecords.setter
|
22908
|
+
def AnalysisRecords(self, AnalysisRecords):
|
22909
|
+
self._AnalysisRecords = AnalysisRecords
|
22910
|
+
|
22911
|
+
@property
|
22912
|
+
def Columns(self):
|
22913
|
+
"""日志统计分析结果的列属性
|
22914
|
+
当UseNewAnalysis为true时生效
|
22915
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22916
|
+
:rtype: list of Column
|
22917
|
+
"""
|
22918
|
+
return self._Columns
|
22919
|
+
|
22920
|
+
@Columns.setter
|
22921
|
+
def Columns(self, Columns):
|
22922
|
+
self._Columns = Columns
|
22923
|
+
|
22924
|
+
@property
|
22925
|
+
def SamplingRate(self):
|
22926
|
+
"""本次统计分析使用的采样率
|
22927
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22928
|
+
:rtype: float
|
22929
|
+
"""
|
22930
|
+
return self._SamplingRate
|
22931
|
+
|
22932
|
+
@SamplingRate.setter
|
22933
|
+
def SamplingRate(self, SamplingRate):
|
22934
|
+
self._SamplingRate = SamplingRate
|
22935
|
+
|
22936
|
+
@property
|
22937
|
+
def Topics(self):
|
22938
|
+
"""使用多日志主题检索时,各个日志主题的基本信息,例如报错信息。
|
22939
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
22940
|
+
:rtype: :class:`tencentcloud.cfw.v20190904.models.SearchLogTopics`
|
22941
|
+
"""
|
22942
|
+
return self._Topics
|
22943
|
+
|
22944
|
+
@Topics.setter
|
22945
|
+
def Topics(self, Topics):
|
22946
|
+
self._Topics = Topics
|
22947
|
+
|
22948
|
+
@property
|
22949
|
+
def RequestId(self):
|
22950
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
22951
|
+
:rtype: str
|
22952
|
+
"""
|
22953
|
+
return self._RequestId
|
22954
|
+
|
22955
|
+
@RequestId.setter
|
22956
|
+
def RequestId(self, RequestId):
|
22957
|
+
self._RequestId = RequestId
|
22958
|
+
|
22959
|
+
|
22960
|
+
def _deserialize(self, params):
|
22961
|
+
self._Context = params.get("Context")
|
22962
|
+
self._ListOver = params.get("ListOver")
|
22963
|
+
self._Analysis = params.get("Analysis")
|
22964
|
+
if params.get("Results") is not None:
|
22965
|
+
self._Results = []
|
22966
|
+
for item in params.get("Results"):
|
22967
|
+
obj = LogInfo()
|
22968
|
+
obj._deserialize(item)
|
22969
|
+
self._Results.append(obj)
|
22970
|
+
self._ColNames = params.get("ColNames")
|
22971
|
+
if params.get("AnalysisResults") is not None:
|
22972
|
+
self._AnalysisResults = []
|
22973
|
+
for item in params.get("AnalysisResults"):
|
22974
|
+
obj = LogItems()
|
22975
|
+
obj._deserialize(item)
|
22976
|
+
self._AnalysisResults.append(obj)
|
22977
|
+
self._AnalysisRecords = params.get("AnalysisRecords")
|
22978
|
+
if params.get("Columns") is not None:
|
22979
|
+
self._Columns = []
|
22980
|
+
for item in params.get("Columns"):
|
22981
|
+
obj = Column()
|
22982
|
+
obj._deserialize(item)
|
22983
|
+
self._Columns.append(obj)
|
22984
|
+
self._SamplingRate = params.get("SamplingRate")
|
22985
|
+
if params.get("Topics") is not None:
|
22986
|
+
self._Topics = SearchLogTopics()
|
22987
|
+
self._Topics._deserialize(params.get("Topics"))
|
22988
|
+
self._RequestId = params.get("RequestId")
|
22989
|
+
|
22990
|
+
|
22991
|
+
class SearchLogTopics(AbstractModel):
|
22992
|
+
"""多主题检索返回信息
|
22993
|
+
|
22994
|
+
"""
|
22995
|
+
|
22996
|
+
def __init__(self):
|
22997
|
+
r"""
|
22998
|
+
:param _Errors: 多日志主题检索对应的错误信息
|
22999
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
23000
|
+
:type Errors: list of SearchLogErrors
|
23001
|
+
:param _Infos: 多日志主题检索各日志主题信息
|
23002
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
23003
|
+
:type Infos: list of SearchLogInfos
|
23004
|
+
"""
|
23005
|
+
self._Errors = None
|
23006
|
+
self._Infos = None
|
23007
|
+
|
23008
|
+
@property
|
23009
|
+
def Errors(self):
|
23010
|
+
"""多日志主题检索对应的错误信息
|
23011
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
23012
|
+
:rtype: list of SearchLogErrors
|
23013
|
+
"""
|
23014
|
+
return self._Errors
|
23015
|
+
|
23016
|
+
@Errors.setter
|
23017
|
+
def Errors(self, Errors):
|
23018
|
+
self._Errors = Errors
|
23019
|
+
|
23020
|
+
@property
|
23021
|
+
def Infos(self):
|
23022
|
+
"""多日志主题检索各日志主题信息
|
23023
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
23024
|
+
:rtype: list of SearchLogInfos
|
23025
|
+
"""
|
23026
|
+
return self._Infos
|
23027
|
+
|
23028
|
+
@Infos.setter
|
23029
|
+
def Infos(self, Infos):
|
23030
|
+
self._Infos = Infos
|
23031
|
+
|
23032
|
+
|
23033
|
+
def _deserialize(self, params):
|
23034
|
+
if params.get("Errors") is not None:
|
23035
|
+
self._Errors = []
|
23036
|
+
for item in params.get("Errors"):
|
23037
|
+
obj = SearchLogErrors()
|
23038
|
+
obj._deserialize(item)
|
23039
|
+
self._Errors.append(obj)
|
23040
|
+
if params.get("Infos") is not None:
|
23041
|
+
self._Infos = []
|
23042
|
+
for item in params.get("Infos"):
|
23043
|
+
obj = SearchLogInfos()
|
23044
|
+
obj._deserialize(item)
|
23045
|
+
self._Infos.append(obj)
|
23046
|
+
memeber_set = set(params.keys())
|
23047
|
+
for name, value in vars(self).items():
|
23048
|
+
property_name = name[1:]
|
23049
|
+
if property_name in memeber_set:
|
23050
|
+
memeber_set.remove(property_name)
|
23051
|
+
if len(memeber_set) > 0:
|
23052
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
23053
|
+
|
23054
|
+
|
23055
|
+
|
21964
23056
|
class SecurityGroupBothWayInfo(AbstractModel):
|
21965
23057
|
"""双向下发的企业安全组规则
|
21966
23058
|
|