tencentcloud-sdk-python-teo 3.1.192__tar.gz → 3.1.193__tar.gz

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 (22) hide show
  1. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/setup.py +1 -1
  3. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220901/models.py +210 -0
  5. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220901/teo_client.py +23 -0
  6. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220901/teo_client_async.py +18 -0
  7. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_teo-3.1.193/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_teo-3.1.192/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/README.rst +0 -0
  11. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/__init__.py +0 -0
  13. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220106/__init__.py +0 -0
  14. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220106/models.py +0 -0
  16. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220106/teo_client.py +0 -0
  17. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
  18. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220901/__init__.py +0 -0
  19. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
  20. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_teo-3.1.192 → tencentcloud_sdk_python_teo-3.1.193}/tencentcloud_sdk_python_teo.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.1.192
3
+ Version: 3.1.193
4
4
  Summary: Tencent Cloud Teo SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.192
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.193
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-teo',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.192,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.193,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Teo SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.192'
17
+ __version__ = '3.1.193'
@@ -27945,6 +27945,180 @@ class DescribeLogAnalysisDownloadTasksResponse(AbstractModel):
27945
27945
  self._RequestId = params.get("RequestId")
27946
27946
 
27947
27947
 
27948
+ class DescribeLogAnalysisStatisticsRequest(AbstractModel):
27949
+ r"""DescribeLogAnalysisStatistics请求参数结构体
27950
+
27951
+ """
27952
+
27953
+ def __init__(self):
27954
+ r"""
27955
+ :param _ZoneId: <p>站点 ID。</p>
27956
+ :type ZoneId: str
27957
+ :param _Area: <p>数据归属地区,可选值:</p><ul><li>mainland:中国大陆境内;</li><li>overseas:全球(不含中国大陆)。</li></ul>注意:若站点服务区域为“全球可用区”,获取全部数据需要分别查询 mainland 和 overseas 的数据。<p></p>
27958
+ :type Area: str
27959
+ :param _LogType: <p>日志类型,可选值:</p><ul><li> l7-access-logs:七层访问日志;</li><li>web-attack:托管规则日志。</li></ul>默认为 l7-access-logs 。<p></p>
27960
+ :type LogType: str
27961
+ :param _StartTime: <p>开始时间,示例值:2020-04-29T00:00:00Z。套餐版本不同,支持的可查询开始时间至今的最大时间跨度不同,详情请见 <a href="https://cloud.tencent.com/document/product/1552/94165#45435466-9103-4ff6-be22-e31717044fb2">套餐选型对比</a>。</p>
27962
+ :type StartTime: str
27963
+ :param _EndTime: <p>结束时间,示例值:2020-04-30T00:00:00Z。单次查询的开始时间到结束时间跨度最大为 31 天。</p>
27964
+ :type EndTime: str
27965
+ :param _Query: <p>统计查询语句,由 [<a href="https://cloud.tencent.com/document/product/1552/124662">检索条件</a>] | [<a href="https://cloud.tencent.com/document/product/1552/124662">SQL语句</a>] 构成,管道符 “|” 后的 SQL 段必填;检索条件段可为空(如 | SELECT ...),表示在全量数据上聚合。长度上限 12KB,SQL 默认 Limit 100,最大 Limit 10000 。<br>示例:</p><p>带检索条件: <code>${EdgeCacheStatus} in [&#39;miss&#39;,&#39;other&#39;] | select EdgeCacheStatus as status, count(\*) as cnt group by status limit 2</code></p><p>不带检索条件:<code>| select EdgeCacheStatus as status, count(\*) as cnt group by status</code></p>
27966
+ :type Query: str
27967
+ """
27968
+ self._ZoneId = None
27969
+ self._Area = None
27970
+ self._LogType = None
27971
+ self._StartTime = None
27972
+ self._EndTime = None
27973
+ self._Query = None
27974
+
27975
+ @property
27976
+ def ZoneId(self):
27977
+ r"""<p>站点 ID。</p>
27978
+ :rtype: str
27979
+ """
27980
+ return self._ZoneId
27981
+
27982
+ @ZoneId.setter
27983
+ def ZoneId(self, ZoneId):
27984
+ self._ZoneId = ZoneId
27985
+
27986
+ @property
27987
+ def Area(self):
27988
+ r"""<p>数据归属地区,可选值:</p><ul><li>mainland:中国大陆境内;</li><li>overseas:全球(不含中国大陆)。</li></ul>注意:若站点服务区域为“全球可用区”,获取全部数据需要分别查询 mainland 和 overseas 的数据。<p></p>
27989
+ :rtype: str
27990
+ """
27991
+ return self._Area
27992
+
27993
+ @Area.setter
27994
+ def Area(self, Area):
27995
+ self._Area = Area
27996
+
27997
+ @property
27998
+ def LogType(self):
27999
+ r"""<p>日志类型,可选值:</p><ul><li> l7-access-logs:七层访问日志;</li><li>web-attack:托管规则日志。</li></ul>默认为 l7-access-logs 。<p></p>
28000
+ :rtype: str
28001
+ """
28002
+ return self._LogType
28003
+
28004
+ @LogType.setter
28005
+ def LogType(self, LogType):
28006
+ self._LogType = LogType
28007
+
28008
+ @property
28009
+ def StartTime(self):
28010
+ r"""<p>开始时间,示例值:2020-04-29T00:00:00Z。套餐版本不同,支持的可查询开始时间至今的最大时间跨度不同,详情请见 <a href="https://cloud.tencent.com/document/product/1552/94165#45435466-9103-4ff6-be22-e31717044fb2">套餐选型对比</a>。</p>
28011
+ :rtype: str
28012
+ """
28013
+ return self._StartTime
28014
+
28015
+ @StartTime.setter
28016
+ def StartTime(self, StartTime):
28017
+ self._StartTime = StartTime
28018
+
28019
+ @property
28020
+ def EndTime(self):
28021
+ r"""<p>结束时间,示例值:2020-04-30T00:00:00Z。单次查询的开始时间到结束时间跨度最大为 31 天。</p>
28022
+ :rtype: str
28023
+ """
28024
+ return self._EndTime
28025
+
28026
+ @EndTime.setter
28027
+ def EndTime(self, EndTime):
28028
+ self._EndTime = EndTime
28029
+
28030
+ @property
28031
+ def Query(self):
28032
+ r"""<p>统计查询语句,由 [<a href="https://cloud.tencent.com/document/product/1552/124662">检索条件</a>] | [<a href="https://cloud.tencent.com/document/product/1552/124662">SQL语句</a>] 构成,管道符 “|” 后的 SQL 段必填;检索条件段可为空(如 | SELECT ...),表示在全量数据上聚合。长度上限 12KB,SQL 默认 Limit 100,最大 Limit 10000 。<br>示例:</p><p>带检索条件: <code>${EdgeCacheStatus} in [&#39;miss&#39;,&#39;other&#39;] | select EdgeCacheStatus as status, count(\*) as cnt group by status limit 2</code></p><p>不带检索条件:<code>| select EdgeCacheStatus as status, count(\*) as cnt group by status</code></p>
28033
+ :rtype: str
28034
+ """
28035
+ return self._Query
28036
+
28037
+ @Query.setter
28038
+ def Query(self, Query):
28039
+ self._Query = Query
28040
+
28041
+
28042
+ def _deserialize(self, params):
28043
+ self._ZoneId = params.get("ZoneId")
28044
+ self._Area = params.get("Area")
28045
+ self._LogType = params.get("LogType")
28046
+ self._StartTime = params.get("StartTime")
28047
+ self._EndTime = params.get("EndTime")
28048
+ self._Query = params.get("Query")
28049
+ memeber_set = set(params.keys())
28050
+ for name, value in vars(self).items():
28051
+ property_name = name[1:]
28052
+ if property_name in memeber_set:
28053
+ memeber_set.remove(property_name)
28054
+ if len(memeber_set) > 0:
28055
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
28056
+
28057
+
28058
+
28059
+ class DescribeLogAnalysisStatisticsResponse(AbstractModel):
28060
+ r"""DescribeLogAnalysisStatistics返回参数结构体
28061
+
28062
+ """
28063
+
28064
+ def __init__(self):
28065
+ r"""
28066
+ :param _Columns: <p>日志分析统计结果的列名,对应入参 Query 中 SQL 部分 SELECT 的字段。<br>示例:<br>入参 Query = <code>${EdgeCacheStatus} in [&#39;miss&#39;,&#39;other&#39;] | select EdgeCacheStatus as status, count(*) as cnt group by status limit 2</code><br>出参 Columns = <code>[&quot;status&quot;,&quot;cnt&quot;]</code></p>
28067
+ :type Columns: list of str
28068
+ :param _Records: <p>日志分析统计结果的数据行,每行值下标与列下标一一对应。<br>示例:<br>Columns = <code>[&quot;status&quot;,&quot;cnt&quot;]</code><br>Records = <code>[[&quot;miss&quot;,&quot;9695&quot;],[&quot;other&quot;,&quot;278&quot;]]</code></p>
28069
+ :type Records: list of StatisticsRecord
28070
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
28071
+ :type RequestId: str
28072
+ """
28073
+ self._Columns = None
28074
+ self._Records = None
28075
+ self._RequestId = None
28076
+
28077
+ @property
28078
+ def Columns(self):
28079
+ r"""<p>日志分析统计结果的列名,对应入参 Query 中 SQL 部分 SELECT 的字段。<br>示例:<br>入参 Query = <code>${EdgeCacheStatus} in [&#39;miss&#39;,&#39;other&#39;] | select EdgeCacheStatus as status, count(*) as cnt group by status limit 2</code><br>出参 Columns = <code>[&quot;status&quot;,&quot;cnt&quot;]</code></p>
28080
+ :rtype: list of str
28081
+ """
28082
+ return self._Columns
28083
+
28084
+ @Columns.setter
28085
+ def Columns(self, Columns):
28086
+ self._Columns = Columns
28087
+
28088
+ @property
28089
+ def Records(self):
28090
+ r"""<p>日志分析统计结果的数据行,每行值下标与列下标一一对应。<br>示例:<br>Columns = <code>[&quot;status&quot;,&quot;cnt&quot;]</code><br>Records = <code>[[&quot;miss&quot;,&quot;9695&quot;],[&quot;other&quot;,&quot;278&quot;]]</code></p>
28091
+ :rtype: list of StatisticsRecord
28092
+ """
28093
+ return self._Records
28094
+
28095
+ @Records.setter
28096
+ def Records(self, Records):
28097
+ self._Records = Records
28098
+
28099
+ @property
28100
+ def RequestId(self):
28101
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
28102
+ :rtype: str
28103
+ """
28104
+ return self._RequestId
28105
+
28106
+ @RequestId.setter
28107
+ def RequestId(self, RequestId):
28108
+ self._RequestId = RequestId
28109
+
28110
+
28111
+ def _deserialize(self, params):
28112
+ self._Columns = params.get("Columns")
28113
+ if params.get("Records") is not None:
28114
+ self._Records = []
28115
+ for item in params.get("Records"):
28116
+ obj = StatisticsRecord()
28117
+ obj._deserialize(item)
28118
+ self._Records.append(obj)
28119
+ self._RequestId = params.get("RequestId")
28120
+
28121
+
27948
28122
  class DescribeMultiPathGatewayLineRequest(AbstractModel):
27949
28123
  r"""DescribeMultiPathGatewayLine请求参数结构体
27950
28124
 
@@ -66460,6 +66634,42 @@ class StandardDebugParameters(AbstractModel):
66460
66634
 
66461
66635
 
66462
66636
 
66637
+ class StatisticsRecord(AbstractModel):
66638
+ r"""统计结果行。
66639
+
66640
+ """
66641
+
66642
+ def __init__(self):
66643
+ r"""
66644
+ :param _Record: <p>列表单行记录。</p>
66645
+ :type Record: list of str
66646
+ """
66647
+ self._Record = None
66648
+
66649
+ @property
66650
+ def Record(self):
66651
+ r"""<p>列表单行记录。</p>
66652
+ :rtype: list of str
66653
+ """
66654
+ return self._Record
66655
+
66656
+ @Record.setter
66657
+ def Record(self, Record):
66658
+ self._Record = Record
66659
+
66660
+
66661
+ def _deserialize(self, params):
66662
+ self._Record = params.get("Record")
66663
+ memeber_set = set(params.keys())
66664
+ for name, value in vars(self).items():
66665
+ property_name = name[1:]
66666
+ if property_name in memeber_set:
66667
+ memeber_set.remove(property_name)
66668
+ if len(memeber_set) > 0:
66669
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
66670
+
66671
+
66672
+
66463
66673
  class StatusCodeCacheParam(AbstractModel):
66464
66674
  r"""状态码缓存 TTL 配置参数内部结构。
66465
66675
 
@@ -2946,6 +2946,29 @@ class TeoClient(AbstractClient):
2946
2946
  raise TencentCloudSDKException(type(e).__name__, str(e))
2947
2947
 
2948
2948
 
2949
+ def DescribeLogAnalysisStatistics(self, request):
2950
+ r"""本接口用于日志分析统计结果查询。用户在检索语句后追加 SQL 聚合语句([检索条件] | [SQL语句]),后端执行聚合并返回列式统计结果(列定义 + 数据行)。
2951
+
2952
+ :param request: Request instance for DescribeLogAnalysisStatistics.
2953
+ :type request: :class:`tencentcloud.teo.v20220901.models.DescribeLogAnalysisStatisticsRequest`
2954
+ :rtype: :class:`tencentcloud.teo.v20220901.models.DescribeLogAnalysisStatisticsResponse`
2955
+
2956
+ """
2957
+ try:
2958
+ params = request._serialize()
2959
+ headers = request.headers
2960
+ body = self.call("DescribeLogAnalysisStatistics", params, headers=headers)
2961
+ response = json.loads(body)
2962
+ model = models.DescribeLogAnalysisStatisticsResponse()
2963
+ model._deserialize(response["Response"])
2964
+ return model
2965
+ except Exception as e:
2966
+ if isinstance(e, TencentCloudSDKException):
2967
+ raise
2968
+ else:
2969
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2970
+
2971
+
2949
2972
  def DescribeMultiPathGateway(self, request):
2950
2973
  r"""通过本接口查询多通道安全加速网关详情。如名称、网关 ID、IP、端口、类型等。
2951
2974
 
@@ -2325,6 +2325,24 @@ class TeoClient(AbstractClient):
2325
2325
 
2326
2326
  return await self.call_and_deserialize(**kwargs)
2327
2327
 
2328
+ async def DescribeLogAnalysisStatistics(
2329
+ self,
2330
+ request: models.DescribeLogAnalysisStatisticsRequest,
2331
+ opts: Dict = None,
2332
+ ) -> models.DescribeLogAnalysisStatisticsResponse:
2333
+ """
2334
+ 本接口用于日志分析统计结果查询。用户在检索语句后追加 SQL 聚合语句([检索条件] | [SQL语句]),后端执行聚合并返回列式统计结果(列定义 + 数据行)。
2335
+ """
2336
+
2337
+ kwargs = {}
2338
+ kwargs["action"] = "DescribeLogAnalysisStatistics"
2339
+ kwargs["params"] = request._serialize()
2340
+ kwargs["resp_cls"] = models.DescribeLogAnalysisStatisticsResponse
2341
+ kwargs["headers"] = request.headers
2342
+ kwargs["opts"] = opts or {}
2343
+
2344
+ return await self.call_and_deserialize(**kwargs)
2345
+
2328
2346
  async def DescribeMultiPathGateway(
2329
2347
  self,
2330
2348
  request: models.DescribeMultiPathGatewayRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.1.192
3
+ Version: 3.1.193
4
4
  Summary: Tencent Cloud Teo SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.192
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.193
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.193
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.192