tencentcloud-sdk-python-cls 3.0.1138__tar.gz → 3.0.1144__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.
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/setup.py +1 -1
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud/cls/v20201016/cls_client.py +115 -0
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud/cls/v20201016/errorcodes.py +12 -0
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud/cls/v20201016/models.py +694 -63
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cls-3.0.1144/tencentcloud_sdk_python_cls.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cls-3.0.1138/tencentcloud_sdk_python_cls.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/README.rst +0 -0
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud/cls/__init__.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud/cls/v20201016/__init__.py +0 -0
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cls-3.0.1138 → tencentcloud-sdk-python-cls-3.0.1144}/tencentcloud_sdk_python_cls.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cls',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1144"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cls SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -302,6 +302,29 @@ class ClsClient(AbstractClient):
|
|
|
302
302
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
303
|
|
|
304
304
|
|
|
305
|
+
def CreateDashboardSubscribe(self, request):
|
|
306
|
+
"""此接口用于创建仪表盘订阅
|
|
307
|
+
|
|
308
|
+
:param request: Request instance for CreateDashboardSubscribe.
|
|
309
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.CreateDashboardSubscribeRequest`
|
|
310
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.CreateDashboardSubscribeResponse`
|
|
311
|
+
|
|
312
|
+
"""
|
|
313
|
+
try:
|
|
314
|
+
params = request._serialize()
|
|
315
|
+
headers = request.headers
|
|
316
|
+
body = self.call("CreateDashboardSubscribe", params, headers=headers)
|
|
317
|
+
response = json.loads(body)
|
|
318
|
+
model = models.CreateDashboardSubscribeResponse()
|
|
319
|
+
model._deserialize(response["Response"])
|
|
320
|
+
return model
|
|
321
|
+
except Exception as e:
|
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
|
323
|
+
raise
|
|
324
|
+
else:
|
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
|
+
|
|
327
|
+
|
|
305
328
|
def CreateDataTransform(self, request):
|
|
306
329
|
"""本接口用于创建数据加工任务。
|
|
307
330
|
|
|
@@ -693,6 +716,29 @@ class ClsClient(AbstractClient):
|
|
|
693
716
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
694
717
|
|
|
695
718
|
|
|
719
|
+
def DeleteDashboardSubscribe(self, request):
|
|
720
|
+
"""此接口用于删除仪表盘订阅
|
|
721
|
+
|
|
722
|
+
:param request: Request instance for DeleteDashboardSubscribe.
|
|
723
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DeleteDashboardSubscribeRequest`
|
|
724
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DeleteDashboardSubscribeResponse`
|
|
725
|
+
|
|
726
|
+
"""
|
|
727
|
+
try:
|
|
728
|
+
params = request._serialize()
|
|
729
|
+
headers = request.headers
|
|
730
|
+
body = self.call("DeleteDashboardSubscribe", params, headers=headers)
|
|
731
|
+
response = json.loads(body)
|
|
732
|
+
model = models.DeleteDashboardSubscribeResponse()
|
|
733
|
+
model._deserialize(response["Response"])
|
|
734
|
+
return model
|
|
735
|
+
except Exception as e:
|
|
736
|
+
if isinstance(e, TencentCloudSDKException):
|
|
737
|
+
raise
|
|
738
|
+
else:
|
|
739
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
740
|
+
|
|
741
|
+
|
|
696
742
|
def DeleteDataTransform(self, request):
|
|
697
743
|
"""本接口用于删除数据加工任务
|
|
698
744
|
|
|
@@ -1130,6 +1176,29 @@ class ClsClient(AbstractClient):
|
|
|
1130
1176
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1131
1177
|
|
|
1132
1178
|
|
|
1179
|
+
def DescribeDashboardSubscribes(self, request):
|
|
1180
|
+
"""本接口用于获取仪表盘订阅列表,支持分页
|
|
1181
|
+
|
|
1182
|
+
:param request: Request instance for DescribeDashboardSubscribes.
|
|
1183
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.DescribeDashboardSubscribesRequest`
|
|
1184
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.DescribeDashboardSubscribesResponse`
|
|
1185
|
+
|
|
1186
|
+
"""
|
|
1187
|
+
try:
|
|
1188
|
+
params = request._serialize()
|
|
1189
|
+
headers = request.headers
|
|
1190
|
+
body = self.call("DescribeDashboardSubscribes", params, headers=headers)
|
|
1191
|
+
response = json.loads(body)
|
|
1192
|
+
model = models.DescribeDashboardSubscribesResponse()
|
|
1193
|
+
model._deserialize(response["Response"])
|
|
1194
|
+
return model
|
|
1195
|
+
except Exception as e:
|
|
1196
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1197
|
+
raise
|
|
1198
|
+
else:
|
|
1199
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1200
|
+
|
|
1201
|
+
|
|
1133
1202
|
def DescribeDashboards(self, request):
|
|
1134
1203
|
"""本接口用于获取仪表盘
|
|
1135
1204
|
|
|
@@ -1729,6 +1798,29 @@ class ClsClient(AbstractClient):
|
|
|
1729
1798
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1730
1799
|
|
|
1731
1800
|
|
|
1801
|
+
def ModifyDashboardSubscribe(self, request):
|
|
1802
|
+
"""此接口用于修改仪表盘订阅
|
|
1803
|
+
|
|
1804
|
+
:param request: Request instance for ModifyDashboardSubscribe.
|
|
1805
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.ModifyDashboardSubscribeRequest`
|
|
1806
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.ModifyDashboardSubscribeResponse`
|
|
1807
|
+
|
|
1808
|
+
"""
|
|
1809
|
+
try:
|
|
1810
|
+
params = request._serialize()
|
|
1811
|
+
headers = request.headers
|
|
1812
|
+
body = self.call("ModifyDashboardSubscribe", params, headers=headers)
|
|
1813
|
+
response = json.loads(body)
|
|
1814
|
+
model = models.ModifyDashboardSubscribeResponse()
|
|
1815
|
+
model._deserialize(response["Response"])
|
|
1816
|
+
return model
|
|
1817
|
+
except Exception as e:
|
|
1818
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1819
|
+
raise
|
|
1820
|
+
else:
|
|
1821
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1822
|
+
|
|
1823
|
+
|
|
1732
1824
|
def ModifyDataTransform(self, request):
|
|
1733
1825
|
"""本接口用于修改数据加工任务
|
|
1734
1826
|
|
|
@@ -2074,6 +2166,29 @@ class ClsClient(AbstractClient):
|
|
|
2074
2166
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2075
2167
|
|
|
2076
2168
|
|
|
2169
|
+
def SearchDashboardSubscribe(self, request):
|
|
2170
|
+
"""此接口用于预览仪表盘订阅
|
|
2171
|
+
|
|
2172
|
+
:param request: Request instance for SearchDashboardSubscribe.
|
|
2173
|
+
:type request: :class:`tencentcloud.cls.v20201016.models.SearchDashboardSubscribeRequest`
|
|
2174
|
+
:rtype: :class:`tencentcloud.cls.v20201016.models.SearchDashboardSubscribeResponse`
|
|
2175
|
+
|
|
2176
|
+
"""
|
|
2177
|
+
try:
|
|
2178
|
+
params = request._serialize()
|
|
2179
|
+
headers = request.headers
|
|
2180
|
+
body = self.call("SearchDashboardSubscribe", params, headers=headers)
|
|
2181
|
+
response = json.loads(body)
|
|
2182
|
+
model = models.SearchDashboardSubscribeResponse()
|
|
2183
|
+
model._deserialize(response["Response"])
|
|
2184
|
+
return model
|
|
2185
|
+
except Exception as e:
|
|
2186
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2187
|
+
raise
|
|
2188
|
+
else:
|
|
2189
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2190
|
+
|
|
2191
|
+
|
|
2077
2192
|
def SearchLog(self, request):
|
|
2078
2193
|
"""本接口用于检索分析日志,使用该接口时请注意如下事项:
|
|
2079
2194
|
1. 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
|
|
@@ -137,6 +137,9 @@ INVALIDPARAMETER_CONFIGCONFLICT = 'InvalidParameter.ConfigConflict'
|
|
|
137
137
|
# 无效的Content。
|
|
138
138
|
INVALIDPARAMETER_CONTENT = 'InvalidParameter.Content'
|
|
139
139
|
|
|
140
|
+
# 仪表盘命名冲突。
|
|
141
|
+
INVALIDPARAMETER_DASHBOARDNAMECONFLICT = 'InvalidParameter.DashboardNameConflict'
|
|
142
|
+
|
|
140
143
|
# 数据加工任务冲突。
|
|
141
144
|
INVALIDPARAMETER_DATAFROMTASKCONFLICT = 'InvalidParameter.DataFromTaskConflict'
|
|
142
145
|
|
|
@@ -272,6 +275,9 @@ OPERATIONDENIED_TOPICHASEXTERNALDATASOURCECONFIG = 'OperationDenied.TopicHasExte
|
|
|
272
275
|
# topic绑定了scheduleSql任务。
|
|
273
276
|
OPERATIONDENIED_TOPICHASSCHEDULESQLTASK = 'OperationDenied.TopicHasScheduleSqlTask'
|
|
274
277
|
|
|
278
|
+
# 请求的次数超过了频率限制。
|
|
279
|
+
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
|
280
|
+
|
|
275
281
|
# 资源不存在。
|
|
276
282
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
|
277
283
|
|
|
@@ -287,6 +293,12 @@ RESOURCENOTFOUND_ALARMNOTICENOTEXIST = 'ResourceNotFound.AlarmNoticeNotExist'
|
|
|
287
293
|
# 指定的采集规则配置不存在。
|
|
288
294
|
RESOURCENOTFOUND_CONFIGNOTEXIST = 'ResourceNotFound.ConfigNotExist'
|
|
289
295
|
|
|
296
|
+
# 仪表盘记录不存在。
|
|
297
|
+
RESOURCENOTFOUND_DASHBOARDRECORDNOTEXIST = 'ResourceNotFound.DashboardRecordNotExist'
|
|
298
|
+
|
|
299
|
+
# 仪表盘订阅记录不存在。
|
|
300
|
+
RESOURCENOTFOUND_DASHBOARDSUBSCRIBERECORDNOTEXIST = 'ResourceNotFound.DashboardSubscribeRecordNotExist'
|
|
301
|
+
|
|
290
302
|
# 数据加工任务不存在。
|
|
291
303
|
RESOURCENOTFOUND_DATAFROMTASKNOTEXIST = 'ResourceNotFound.DataFromTaskNotExist'
|
|
292
304
|
|
|
@@ -3386,19 +3386,33 @@ class CreateAlarmNoticeRequest(AbstractModel):
|
|
|
3386
3386
|
:param _Name: 通知渠道组名称。
|
|
3387
3387
|
:type Name: str
|
|
3388
3388
|
:param _Type: 通知类型。可选值:
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3389
|
+
- Trigger - 告警触发
|
|
3390
|
+
- Recovery - 告警恢复
|
|
3391
|
+
- All - 告警触发和告警恢复
|
|
3392
|
+
|
|
3393
|
+
|
|
3394
|
+
注意:
|
|
3395
|
+
- Type、NoticeReceivers和WebCallbacks是一组rule配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空;NoticeRules是另一组rule配置,其中rule不许为空
|
|
3396
|
+
- 2组rule配置互斥
|
|
3397
|
+
- rule配置 与 deliver配置(DeliverStatus与DeliverConfig)至少填写一组配置
|
|
3392
3398
|
:type Type: str
|
|
3393
3399
|
:param _NoticeReceivers: 通知接收对象。
|
|
3400
|
+
注意:
|
|
3401
|
+
- Type、NoticeReceivers和WebCallbacks是一组rule配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空;NoticeRules是另一组rule配置,其中rule不许为空
|
|
3402
|
+
- 2组rule配置互斥
|
|
3403
|
+
- rule配置 与 deliver配置(DeliverStatus与DeliverConfig)至少填写一组配置
|
|
3394
3404
|
:type NoticeReceivers: list of NoticeReceiver
|
|
3395
3405
|
:param _WebCallbacks: 接口回调信息(包括企业微信)。
|
|
3406
|
+
注意:
|
|
3407
|
+
- Type、NoticeReceivers和WebCallbacks是一组rule配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空;NoticeRules是另一组rule配置,其中rule不许为空
|
|
3408
|
+
- 2组rule配置互斥
|
|
3409
|
+
- rule配置 与 deliver配置(DeliverStatus与DeliverConfig)至少填写一组配置
|
|
3396
3410
|
:type WebCallbacks: list of WebCallback
|
|
3397
3411
|
:param _NoticeRules: 通知规则。
|
|
3398
|
-
|
|
3399
3412
|
注意:
|
|
3400
|
-
|
|
3401
|
-
-
|
|
3413
|
+
- Type、NoticeReceivers和WebCallbacks是一组rule配置,其中Type必填,NoticeReceivers和WebCallbacks至少一个不为空;NoticeRules是另一组rule配置,其中rule不许为空
|
|
3414
|
+
- 2组rule配置互斥
|
|
3415
|
+
- rule配置 与 deliver配置(DeliverStatus与DeliverConfig)至少填写一组配置
|
|
3402
3416
|
|
|
3403
3417
|
|
|
3404
3418
|
:type NoticeRules: list of NoticeRule
|
|
@@ -3996,11 +4010,20 @@ class CreateConfigExtraRequest(AbstractModel):
|
|
|
3996
4010
|
:type Name: str
|
|
3997
4011
|
:param _TopicId: 日志主题id
|
|
3998
4012
|
:type TopicId: str
|
|
3999
|
-
:param _Type:
|
|
4013
|
+
:param _Type: 日志源类型。支持 container_stdout:容器标准输出;container_file:容器文件路径;host_file:节点文件路径。
|
|
4000
4014
|
:type Type: str
|
|
4001
|
-
:param _LogType:
|
|
4015
|
+
:param _LogType: 采集的日志类型,默认为minimalist_log。支持以下类型:
|
|
4016
|
+
- json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
|
|
4017
|
+
- delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
|
|
4018
|
+
- minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
|
|
4019
|
+
- fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
|
|
4020
|
+
- multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
|
|
4021
|
+
- multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
|
|
4022
|
+
- user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。
|
|
4002
4023
|
:type LogType: str
|
|
4003
|
-
:param _ConfigFlag:
|
|
4024
|
+
:param _ConfigFlag: 采集配置标记。
|
|
4025
|
+
- 目前只支持label_k8s,用于标记自建k8s集群使用的采集配置
|
|
4026
|
+
|
|
4004
4027
|
:type ConfigFlag: str
|
|
4005
4028
|
:param _LogsetId: 日志集id
|
|
4006
4029
|
:type LogsetId: str
|
|
@@ -4008,19 +4031,23 @@ class CreateConfigExtraRequest(AbstractModel):
|
|
|
4008
4031
|
:type LogsetName: str
|
|
4009
4032
|
:param _TopicName: 日志主题名称
|
|
4010
4033
|
:type TopicName: str
|
|
4011
|
-
:param _HostFile:
|
|
4034
|
+
:param _HostFile: 节点文件路径类型配置。
|
|
4012
4035
|
:type HostFile: :class:`tencentcloud.cls.v20201016.models.HostFileInfo`
|
|
4013
|
-
:param _ContainerFile:
|
|
4036
|
+
:param _ContainerFile: 容器文件路径类型配置。
|
|
4014
4037
|
:type ContainerFile: :class:`tencentcloud.cls.v20201016.models.ContainerFileInfo`
|
|
4015
|
-
:param _ContainerStdout:
|
|
4038
|
+
:param _ContainerStdout: 容器标准输出类型配置。
|
|
4016
4039
|
:type ContainerStdout: :class:`tencentcloud.cls.v20201016.models.ContainerStdoutInfo`
|
|
4017
|
-
:param _LogFormat:
|
|
4040
|
+
:param _LogFormat: 日志格式化方式,用于容器采集场景。
|
|
4041
|
+
- stdout-docker-json:用于docker容器采集场景
|
|
4042
|
+
- stdout-containerd:用于containerd容器采集场景
|
|
4018
4043
|
:type LogFormat: str
|
|
4019
4044
|
:param _ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
|
|
4020
4045
|
:type ExtractRule: :class:`tencentcloud.cls.v20201016.models.ExtractRuleInfo`
|
|
4021
4046
|
:param _ExcludePaths: 采集黑名单路径列表
|
|
4022
4047
|
:type ExcludePaths: list of ExcludePathInfo
|
|
4023
|
-
:param _UserDefineRule:
|
|
4048
|
+
:param _UserDefineRule: 组合解析采集规则,用于复杂场景下的日志采集。
|
|
4049
|
+
- 取值参考:[使用组合解析提取模式采集日志
|
|
4050
|
+
](https://cloud.tencent.com/document/product/614/61310)
|
|
4024
4051
|
:type UserDefineRule: str
|
|
4025
4052
|
:param _GroupId: 绑定的机器组id
|
|
4026
4053
|
:type GroupId: str
|
|
@@ -4032,7 +4059,8 @@ class CreateConfigExtraRequest(AbstractModel):
|
|
|
4032
4059
|
- ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
|
|
4033
4060
|
- ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
|
|
4034
4061
|
- ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
|
|
4035
|
-
|
|
4062
|
+
- ClsAgentDefault(自定义默认值,无特殊含义,用于清空其他选项),建议取值0
|
|
4063
|
+
|
|
4036
4064
|
:type AdvancedConfig: str
|
|
4037
4065
|
"""
|
|
4038
4066
|
self._Name = None
|
|
@@ -4304,7 +4332,7 @@ class CreateConfigRequest(AbstractModel):
|
|
|
4304
4332
|
:type Name: str
|
|
4305
4333
|
:param _Output: 采集配置所属日志主题ID即TopicId
|
|
4306
4334
|
:type Output: str
|
|
4307
|
-
:param _Path:
|
|
4335
|
+
:param _Path: 日志采集路径,包含文件名,支持多个路径,多个路径之间英文逗号分隔,文件采集情况下必填
|
|
4308
4336
|
:type Path: str
|
|
4309
4337
|
:param _LogType: 采集的日志类型,默认为minimalist_log。支持以下类型:
|
|
4310
4338
|
- json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
|
|
@@ -4776,6 +4804,37 @@ class CreateCosRechargeResponse(AbstractModel):
|
|
|
4776
4804
|
self._RequestId = params.get("RequestId")
|
|
4777
4805
|
|
|
4778
4806
|
|
|
4807
|
+
class CreateDashboardSubscribeRequest(AbstractModel):
|
|
4808
|
+
"""CreateDashboardSubscribe请求参数结构体
|
|
4809
|
+
|
|
4810
|
+
"""
|
|
4811
|
+
|
|
4812
|
+
|
|
4813
|
+
class CreateDashboardSubscribeResponse(AbstractModel):
|
|
4814
|
+
"""CreateDashboardSubscribe返回参数结构体
|
|
4815
|
+
|
|
4816
|
+
"""
|
|
4817
|
+
|
|
4818
|
+
def __init__(self):
|
|
4819
|
+
r"""
|
|
4820
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4821
|
+
:type RequestId: str
|
|
4822
|
+
"""
|
|
4823
|
+
self._RequestId = None
|
|
4824
|
+
|
|
4825
|
+
@property
|
|
4826
|
+
def RequestId(self):
|
|
4827
|
+
return self._RequestId
|
|
4828
|
+
|
|
4829
|
+
@RequestId.setter
|
|
4830
|
+
def RequestId(self, RequestId):
|
|
4831
|
+
self._RequestId = RequestId
|
|
4832
|
+
|
|
4833
|
+
|
|
4834
|
+
def _deserialize(self, params):
|
|
4835
|
+
self._RequestId = params.get("RequestId")
|
|
4836
|
+
|
|
4837
|
+
|
|
4779
4838
|
class CreateDataTransformRequest(AbstractModel):
|
|
4780
4839
|
"""CreateDataTransform请求参数结构体
|
|
4781
4840
|
|
|
@@ -4789,7 +4848,12 @@ class CreateDataTransformRequest(AbstractModel):
|
|
|
4789
4848
|
:type SrcTopicId: str
|
|
4790
4849
|
:param _Name: 加工任务名称
|
|
4791
4850
|
:type Name: str
|
|
4792
|
-
:param _EtlContent:
|
|
4851
|
+
:param _EtlContent: 加工语句。 当FuncType为2时,EtlContent必须使用[log_auto_output](https://cloud.tencent.com/document/product/614/70733#b3c58797-4825-4807-bef4-68106e25024f)
|
|
4852
|
+
|
|
4853
|
+
其他参考文档:
|
|
4854
|
+
|
|
4855
|
+
- [创建加工任务](https://cloud.tencent.com/document/product/614/63940)
|
|
4856
|
+
- [函数总览](https://cloud.tencent.com/document/product/614/70395)
|
|
4793
4857
|
:type EtlContent: str
|
|
4794
4858
|
:param _TaskType: 加工类型。
|
|
4795
4859
|
1:使用源日志主题中的随机数据,进行加工预览;2:使用用户自定义测试数据,进行加工预览;3:创建真实加工任务。
|
|
@@ -5618,23 +5682,27 @@ class CreateMachineGroupRequest(AbstractModel):
|
|
|
5618
5682
|
r"""
|
|
5619
5683
|
:param _GroupName: 机器组名字,不能重复
|
|
5620
5684
|
:type GroupName: str
|
|
5621
|
-
:param _MachineGroupType:
|
|
5685
|
+
:param _MachineGroupType: 创建机器组类型。取值如下:
|
|
5686
|
+
- Type:ip,Values中为ip字符串列表创建机器组
|
|
5687
|
+
- Type:label,Values中为标签字符串列表创建机器组
|
|
5622
5688
|
:type MachineGroupType: :class:`tencentcloud.cls.v20201016.models.MachineGroupTypeInfo`
|
|
5623
5689
|
:param _Tags: 标签描述列表,通过指定该参数可以同时绑定标签到相应的机器组。最大支持10个标签键值对,同一个资源只能绑定到同一个标签键下。
|
|
5624
5690
|
:type Tags: list of Tag
|
|
5625
|
-
:param _AutoUpdate:
|
|
5691
|
+
:param _AutoUpdate: 是否开启机器组自动更新。默认false
|
|
5626
5692
|
:type AutoUpdate: bool
|
|
5627
5693
|
:param _UpdateStartTime: 升级开始时间,建议业务低峰期升级LogListener
|
|
5628
5694
|
:type UpdateStartTime: str
|
|
5629
5695
|
:param _UpdateEndTime: 升级结束时间,建议业务低峰期升级LogListener
|
|
5630
5696
|
:type UpdateEndTime: str
|
|
5631
|
-
:param _ServiceLogging: 是否开启服务日志,用于记录因Loglistener 服务自身产生的log,开启后,会创建内部日志集cls_service_logging和日志主题loglistener_status,loglistener_alarm,loglistener_business
|
|
5697
|
+
:param _ServiceLogging: 是否开启服务日志,用于记录因Loglistener 服务自身产生的log,开启后,会创建内部日志集cls_service_logging和日志主题loglistener_status,loglistener_alarm,loglistener_business,不产生计费。默认false
|
|
5632
5698
|
:type ServiceLogging: bool
|
|
5633
|
-
:param _DelayCleanupTime:
|
|
5699
|
+
:param _DelayCleanupTime: 机器组中机器离线清理时间。单位:天
|
|
5634
5700
|
:type DelayCleanupTime: int
|
|
5635
5701
|
:param _MetaTags: 机器组元数据信息列表
|
|
5636
5702
|
:type MetaTags: list of MetaTagInfo
|
|
5637
|
-
:param _OSType:
|
|
5703
|
+
:param _OSType: 系统类型,取值如下:
|
|
5704
|
+
- 0:Linux (默认值)
|
|
5705
|
+
- 1:Windows
|
|
5638
5706
|
:type OSType: int
|
|
5639
5707
|
"""
|
|
5640
5708
|
self._GroupName = None
|
|
@@ -6714,6 +6782,252 @@ class DashboardInfo(AbstractModel):
|
|
|
6714
6782
|
|
|
6715
6783
|
|
|
6716
6784
|
|
|
6785
|
+
class DashboardNoticeMode(AbstractModel):
|
|
6786
|
+
"""仪表盘订阅通知方式
|
|
6787
|
+
|
|
6788
|
+
"""
|
|
6789
|
+
|
|
6790
|
+
def __init__(self):
|
|
6791
|
+
r"""
|
|
6792
|
+
:param _ReceiverType: 仪表盘通知方式。<br>
|
|
6793
|
+
<li/>Uin:腾讯云用户<br>
|
|
6794
|
+
<li/>Group:腾讯云用户组<br>
|
|
6795
|
+
<li/>Email:自定义Email<br>
|
|
6796
|
+
<li/>WeCom: 企业微信回调
|
|
6797
|
+
:type ReceiverType: str
|
|
6798
|
+
:param _Values: 知方式对应的值。
|
|
6799
|
+
<br> <li/> 当ReceiverType不是 Wecom 时,Values必填。
|
|
6800
|
+
:type Values: list of str
|
|
6801
|
+
:param _ReceiverChannels: 仪表盘通知渠道。
|
|
6802
|
+
<br><li/> 支持:["Email","Sms","WeChat","Phone"]。
|
|
6803
|
+
<br><li/> 当ReceiverType是 Email 或 Wecom 时,ReceiverChannels不能赋值。
|
|
6804
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6805
|
+
:type ReceiverChannels: list of str
|
|
6806
|
+
:param _Url: 回调Url。
|
|
6807
|
+
<br><li/> 当ReceiverType是 Wecom 时,Url必填。
|
|
6808
|
+
<br><li/> 当ReceiverType不是 Wecom 时,Url不能填写。
|
|
6809
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6810
|
+
:type Url: str
|
|
6811
|
+
"""
|
|
6812
|
+
self._ReceiverType = None
|
|
6813
|
+
self._Values = None
|
|
6814
|
+
self._ReceiverChannels = None
|
|
6815
|
+
self._Url = None
|
|
6816
|
+
|
|
6817
|
+
@property
|
|
6818
|
+
def ReceiverType(self):
|
|
6819
|
+
return self._ReceiverType
|
|
6820
|
+
|
|
6821
|
+
@ReceiverType.setter
|
|
6822
|
+
def ReceiverType(self, ReceiverType):
|
|
6823
|
+
self._ReceiverType = ReceiverType
|
|
6824
|
+
|
|
6825
|
+
@property
|
|
6826
|
+
def Values(self):
|
|
6827
|
+
return self._Values
|
|
6828
|
+
|
|
6829
|
+
@Values.setter
|
|
6830
|
+
def Values(self, Values):
|
|
6831
|
+
self._Values = Values
|
|
6832
|
+
|
|
6833
|
+
@property
|
|
6834
|
+
def ReceiverChannels(self):
|
|
6835
|
+
return self._ReceiverChannels
|
|
6836
|
+
|
|
6837
|
+
@ReceiverChannels.setter
|
|
6838
|
+
def ReceiverChannels(self, ReceiverChannels):
|
|
6839
|
+
self._ReceiverChannels = ReceiverChannels
|
|
6840
|
+
|
|
6841
|
+
@property
|
|
6842
|
+
def Url(self):
|
|
6843
|
+
return self._Url
|
|
6844
|
+
|
|
6845
|
+
@Url.setter
|
|
6846
|
+
def Url(self, Url):
|
|
6847
|
+
self._Url = Url
|
|
6848
|
+
|
|
6849
|
+
|
|
6850
|
+
def _deserialize(self, params):
|
|
6851
|
+
self._ReceiverType = params.get("ReceiverType")
|
|
6852
|
+
self._Values = params.get("Values")
|
|
6853
|
+
self._ReceiverChannels = params.get("ReceiverChannels")
|
|
6854
|
+
self._Url = params.get("Url")
|
|
6855
|
+
memeber_set = set(params.keys())
|
|
6856
|
+
for name, value in vars(self).items():
|
|
6857
|
+
property_name = name[1:]
|
|
6858
|
+
if property_name in memeber_set:
|
|
6859
|
+
memeber_set.remove(property_name)
|
|
6860
|
+
if len(memeber_set) > 0:
|
|
6861
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6862
|
+
|
|
6863
|
+
|
|
6864
|
+
|
|
6865
|
+
class DashboardSubscribeData(AbstractModel):
|
|
6866
|
+
"""仪表盘订阅相关数据
|
|
6867
|
+
|
|
6868
|
+
"""
|
|
6869
|
+
|
|
6870
|
+
def __init__(self):
|
|
6871
|
+
r"""
|
|
6872
|
+
:param _NoticeModes: 仪表盘订阅通知方式。
|
|
6873
|
+
:type NoticeModes: list of DashboardNoticeMode
|
|
6874
|
+
:param _DashboardTime: 仪表盘订阅时间,为空标识取仪表盘默认的时间。
|
|
6875
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6876
|
+
:type DashboardTime: list of str
|
|
6877
|
+
:param _TemplateVariables: 仪表盘订阅模板变量。
|
|
6878
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6879
|
+
:type TemplateVariables: list of DashboardTemplateVariable
|
|
6880
|
+
:param _Timezone: 时区。参考:https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#SHANGHAI
|
|
6881
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6882
|
+
:type Timezone: str
|
|
6883
|
+
:param _SubscribeLanguage: 语言。 zh 中文、en`英文。
|
|
6884
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6885
|
+
:type SubscribeLanguage: str
|
|
6886
|
+
:param _JumpDomain: 调用链接域名。http:// 或者 https:// 开头,不能/结尾
|
|
6887
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6888
|
+
:type JumpDomain: str
|
|
6889
|
+
:param _JumpUrl: 自定义跳转链接。
|
|
6890
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6891
|
+
:type JumpUrl: str
|
|
6892
|
+
"""
|
|
6893
|
+
self._NoticeModes = None
|
|
6894
|
+
self._DashboardTime = None
|
|
6895
|
+
self._TemplateVariables = None
|
|
6896
|
+
self._Timezone = None
|
|
6897
|
+
self._SubscribeLanguage = None
|
|
6898
|
+
self._JumpDomain = None
|
|
6899
|
+
self._JumpUrl = None
|
|
6900
|
+
|
|
6901
|
+
@property
|
|
6902
|
+
def NoticeModes(self):
|
|
6903
|
+
return self._NoticeModes
|
|
6904
|
+
|
|
6905
|
+
@NoticeModes.setter
|
|
6906
|
+
def NoticeModes(self, NoticeModes):
|
|
6907
|
+
self._NoticeModes = NoticeModes
|
|
6908
|
+
|
|
6909
|
+
@property
|
|
6910
|
+
def DashboardTime(self):
|
|
6911
|
+
return self._DashboardTime
|
|
6912
|
+
|
|
6913
|
+
@DashboardTime.setter
|
|
6914
|
+
def DashboardTime(self, DashboardTime):
|
|
6915
|
+
self._DashboardTime = DashboardTime
|
|
6916
|
+
|
|
6917
|
+
@property
|
|
6918
|
+
def TemplateVariables(self):
|
|
6919
|
+
return self._TemplateVariables
|
|
6920
|
+
|
|
6921
|
+
@TemplateVariables.setter
|
|
6922
|
+
def TemplateVariables(self, TemplateVariables):
|
|
6923
|
+
self._TemplateVariables = TemplateVariables
|
|
6924
|
+
|
|
6925
|
+
@property
|
|
6926
|
+
def Timezone(self):
|
|
6927
|
+
return self._Timezone
|
|
6928
|
+
|
|
6929
|
+
@Timezone.setter
|
|
6930
|
+
def Timezone(self, Timezone):
|
|
6931
|
+
self._Timezone = Timezone
|
|
6932
|
+
|
|
6933
|
+
@property
|
|
6934
|
+
def SubscribeLanguage(self):
|
|
6935
|
+
return self._SubscribeLanguage
|
|
6936
|
+
|
|
6937
|
+
@SubscribeLanguage.setter
|
|
6938
|
+
def SubscribeLanguage(self, SubscribeLanguage):
|
|
6939
|
+
self._SubscribeLanguage = SubscribeLanguage
|
|
6940
|
+
|
|
6941
|
+
@property
|
|
6942
|
+
def JumpDomain(self):
|
|
6943
|
+
return self._JumpDomain
|
|
6944
|
+
|
|
6945
|
+
@JumpDomain.setter
|
|
6946
|
+
def JumpDomain(self, JumpDomain):
|
|
6947
|
+
self._JumpDomain = JumpDomain
|
|
6948
|
+
|
|
6949
|
+
@property
|
|
6950
|
+
def JumpUrl(self):
|
|
6951
|
+
return self._JumpUrl
|
|
6952
|
+
|
|
6953
|
+
@JumpUrl.setter
|
|
6954
|
+
def JumpUrl(self, JumpUrl):
|
|
6955
|
+
self._JumpUrl = JumpUrl
|
|
6956
|
+
|
|
6957
|
+
|
|
6958
|
+
def _deserialize(self, params):
|
|
6959
|
+
if params.get("NoticeModes") is not None:
|
|
6960
|
+
self._NoticeModes = []
|
|
6961
|
+
for item in params.get("NoticeModes"):
|
|
6962
|
+
obj = DashboardNoticeMode()
|
|
6963
|
+
obj._deserialize(item)
|
|
6964
|
+
self._NoticeModes.append(obj)
|
|
6965
|
+
self._DashboardTime = params.get("DashboardTime")
|
|
6966
|
+
if params.get("TemplateVariables") is not None:
|
|
6967
|
+
self._TemplateVariables = []
|
|
6968
|
+
for item in params.get("TemplateVariables"):
|
|
6969
|
+
obj = DashboardTemplateVariable()
|
|
6970
|
+
obj._deserialize(item)
|
|
6971
|
+
self._TemplateVariables.append(obj)
|
|
6972
|
+
self._Timezone = params.get("Timezone")
|
|
6973
|
+
self._SubscribeLanguage = params.get("SubscribeLanguage")
|
|
6974
|
+
self._JumpDomain = params.get("JumpDomain")
|
|
6975
|
+
self._JumpUrl = params.get("JumpUrl")
|
|
6976
|
+
memeber_set = set(params.keys())
|
|
6977
|
+
for name, value in vars(self).items():
|
|
6978
|
+
property_name = name[1:]
|
|
6979
|
+
if property_name in memeber_set:
|
|
6980
|
+
memeber_set.remove(property_name)
|
|
6981
|
+
if len(memeber_set) > 0:
|
|
6982
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6983
|
+
|
|
6984
|
+
|
|
6985
|
+
|
|
6986
|
+
class DashboardTemplateVariable(AbstractModel):
|
|
6987
|
+
"""仪表盘订阅模板变量
|
|
6988
|
+
|
|
6989
|
+
"""
|
|
6990
|
+
|
|
6991
|
+
def __init__(self):
|
|
6992
|
+
r"""
|
|
6993
|
+
:param _Key: key的值
|
|
6994
|
+
:type Key: str
|
|
6995
|
+
:param _Values: key对应的values取值values
|
|
6996
|
+
:type Values: list of str
|
|
6997
|
+
"""
|
|
6998
|
+
self._Key = None
|
|
6999
|
+
self._Values = None
|
|
7000
|
+
|
|
7001
|
+
@property
|
|
7002
|
+
def Key(self):
|
|
7003
|
+
return self._Key
|
|
7004
|
+
|
|
7005
|
+
@Key.setter
|
|
7006
|
+
def Key(self, Key):
|
|
7007
|
+
self._Key = Key
|
|
7008
|
+
|
|
7009
|
+
@property
|
|
7010
|
+
def Values(self):
|
|
7011
|
+
return self._Values
|
|
7012
|
+
|
|
7013
|
+
@Values.setter
|
|
7014
|
+
def Values(self, Values):
|
|
7015
|
+
self._Values = Values
|
|
7016
|
+
|
|
7017
|
+
|
|
7018
|
+
def _deserialize(self, params):
|
|
7019
|
+
self._Key = params.get("Key")
|
|
7020
|
+
self._Values = params.get("Values")
|
|
7021
|
+
memeber_set = set(params.keys())
|
|
7022
|
+
for name, value in vars(self).items():
|
|
7023
|
+
property_name = name[1:]
|
|
7024
|
+
if property_name in memeber_set:
|
|
7025
|
+
memeber_set.remove(property_name)
|
|
7026
|
+
if len(memeber_set) > 0:
|
|
7027
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7028
|
+
|
|
7029
|
+
|
|
7030
|
+
|
|
6717
7031
|
class DashboardTopicInfo(AbstractModel):
|
|
6718
7032
|
"""仪表盘关联的topic信息
|
|
6719
7033
|
|
|
@@ -7179,7 +7493,7 @@ class DeleteConfigExtraRequest(AbstractModel):
|
|
|
7179
7493
|
|
|
7180
7494
|
def __init__(self):
|
|
7181
7495
|
r"""
|
|
7182
|
-
:param _ConfigExtraId:
|
|
7496
|
+
:param _ConfigExtraId: 特殊采集规则扩展配置ID
|
|
7183
7497
|
:type ConfigExtraId: str
|
|
7184
7498
|
"""
|
|
7185
7499
|
self._ConfigExtraId = None
|
|
@@ -7416,6 +7730,37 @@ class DeleteConsumerResponse(AbstractModel):
|
|
|
7416
7730
|
self._RequestId = params.get("RequestId")
|
|
7417
7731
|
|
|
7418
7732
|
|
|
7733
|
+
class DeleteDashboardSubscribeRequest(AbstractModel):
|
|
7734
|
+
"""DeleteDashboardSubscribe请求参数结构体
|
|
7735
|
+
|
|
7736
|
+
"""
|
|
7737
|
+
|
|
7738
|
+
|
|
7739
|
+
class DeleteDashboardSubscribeResponse(AbstractModel):
|
|
7740
|
+
"""DeleteDashboardSubscribe返回参数结构体
|
|
7741
|
+
|
|
7742
|
+
"""
|
|
7743
|
+
|
|
7744
|
+
def __init__(self):
|
|
7745
|
+
r"""
|
|
7746
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7747
|
+
:type RequestId: str
|
|
7748
|
+
"""
|
|
7749
|
+
self._RequestId = None
|
|
7750
|
+
|
|
7751
|
+
@property
|
|
7752
|
+
def RequestId(self):
|
|
7753
|
+
return self._RequestId
|
|
7754
|
+
|
|
7755
|
+
@RequestId.setter
|
|
7756
|
+
def RequestId(self, RequestId):
|
|
7757
|
+
self._RequestId = RequestId
|
|
7758
|
+
|
|
7759
|
+
|
|
7760
|
+
def _deserialize(self, params):
|
|
7761
|
+
self._RequestId = params.get("RequestId")
|
|
7762
|
+
|
|
7763
|
+
|
|
7419
7764
|
class DeleteDataTransformRequest(AbstractModel):
|
|
7420
7765
|
"""DeleteDataTransform请求参数结构体
|
|
7421
7766
|
|
|
@@ -8594,7 +8939,24 @@ class DescribeConfigExtrasRequest(AbstractModel):
|
|
|
8594
8939
|
|
|
8595
8940
|
def __init__(self):
|
|
8596
8941
|
r"""
|
|
8597
|
-
:param _Filters:
|
|
8942
|
+
:param _Filters: 过滤器,支持如下选项:
|
|
8943
|
+
name
|
|
8944
|
+
- 按照【特殊采集配置名称】进行模糊匹配过滤。
|
|
8945
|
+
- 类型:String
|
|
8946
|
+
|
|
8947
|
+
configExtraId
|
|
8948
|
+
- 按照【特殊采集配置ID】进行过滤。
|
|
8949
|
+
- 类型:String
|
|
8950
|
+
|
|
8951
|
+
topicId
|
|
8952
|
+
- 按照【日志主题】进行过滤。
|
|
8953
|
+
- 类型:String
|
|
8954
|
+
|
|
8955
|
+
machineGroupId
|
|
8956
|
+
- 按照【机器组ID】进行过滤。
|
|
8957
|
+
- 类型:String
|
|
8958
|
+
|
|
8959
|
+
每次请求的Filters的上限为10,Filter.Values的上限为5。
|
|
8598
8960
|
:type Filters: list of Filter
|
|
8599
8961
|
:param _Offset: 分页的偏移量,默认值为0
|
|
8600
8962
|
:type Offset: int
|
|
@@ -9136,6 +9498,37 @@ class DescribeCosRechargesResponse(AbstractModel):
|
|
|
9136
9498
|
self._RequestId = params.get("RequestId")
|
|
9137
9499
|
|
|
9138
9500
|
|
|
9501
|
+
class DescribeDashboardSubscribesRequest(AbstractModel):
|
|
9502
|
+
"""DescribeDashboardSubscribes请求参数结构体
|
|
9503
|
+
|
|
9504
|
+
"""
|
|
9505
|
+
|
|
9506
|
+
|
|
9507
|
+
class DescribeDashboardSubscribesResponse(AbstractModel):
|
|
9508
|
+
"""DescribeDashboardSubscribes返回参数结构体
|
|
9509
|
+
|
|
9510
|
+
"""
|
|
9511
|
+
|
|
9512
|
+
def __init__(self):
|
|
9513
|
+
r"""
|
|
9514
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
9515
|
+
:type RequestId: str
|
|
9516
|
+
"""
|
|
9517
|
+
self._RequestId = None
|
|
9518
|
+
|
|
9519
|
+
@property
|
|
9520
|
+
def RequestId(self):
|
|
9521
|
+
return self._RequestId
|
|
9522
|
+
|
|
9523
|
+
@RequestId.setter
|
|
9524
|
+
def RequestId(self, RequestId):
|
|
9525
|
+
self._RequestId = RequestId
|
|
9526
|
+
|
|
9527
|
+
|
|
9528
|
+
def _deserialize(self, params):
|
|
9529
|
+
self._RequestId = params.get("RequestId")
|
|
9530
|
+
|
|
9531
|
+
|
|
9139
9532
|
class DescribeDashboardsRequest(AbstractModel):
|
|
9140
9533
|
"""DescribeDashboards请求参数结构体
|
|
9141
9534
|
|
|
@@ -10948,9 +11341,11 @@ class DescribeShipperTasksRequest(AbstractModel):
|
|
|
10948
11341
|
r"""
|
|
10949
11342
|
:param _ShipperId: 投递规则ID
|
|
10950
11343
|
:type ShipperId: str
|
|
10951
|
-
:param _StartTime: 查询的开始时间戳,支持最近3天的查询,
|
|
11344
|
+
:param _StartTime: 查询的开始时间戳,支持最近3天的查询, 毫秒。
|
|
11345
|
+
StartTime必须小于EndTime
|
|
10952
11346
|
:type StartTime: int
|
|
10953
|
-
:param _EndTime: 查询的结束时间戳,
|
|
11347
|
+
:param _EndTime: 查询的结束时间戳, 毫秒。
|
|
11348
|
+
StartTime必须小于EndTime
|
|
10954
11349
|
:type EndTime: int
|
|
10955
11350
|
"""
|
|
10956
11351
|
self._ShipperId = None
|
|
@@ -11679,7 +12074,7 @@ class ExtractRuleInfo(AbstractModel):
|
|
|
11679
12074
|
:param _UnMatchUpLoadSwitch: 解析失败日志是否上传,true表示上传,false表示不上传
|
|
11680
12075
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11681
12076
|
:type UnMatchUpLoadSwitch: bool
|
|
11682
|
-
:param _UnMatchLogKey: 失败日志的key
|
|
12077
|
+
:param _UnMatchLogKey: 失败日志的key,当UnMatchUpLoadSwitch为true时必填
|
|
11683
12078
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11684
12079
|
:type UnMatchLogKey: str
|
|
11685
12080
|
:param _Backtracking: 增量采集模式下的回溯数据量,默认:-1(全量采集);其他非负数表示增量采集(从最新的位置,往前采集${Backtracking}字节(Byte)的日志)最大支持1073741824(1G)。
|
|
@@ -11688,20 +12083,22 @@ class ExtractRuleInfo(AbstractModel):
|
|
|
11688
12083
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11689
12084
|
:type Backtracking: int
|
|
11690
12085
|
:param _IsGBK: 是否为Gbk编码。 0:否;1:是。
|
|
11691
|
-
|
|
12086
|
+
注意
|
|
12087
|
+
- 目前取0值时,表示UTF-8编码
|
|
11692
12088
|
- COS导入不支持此字段。
|
|
11693
12089
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11694
12090
|
:type IsGBK: int
|
|
11695
12091
|
:param _JsonStandard: 是否为标准json。 0:否; 1:是。
|
|
12092
|
+
- 标准json指采集器使用业界标准开源解析器进行json解析,非标json指采集器使用CLS自研json解析器进行解析,两种解析器没有本质区别,建议客户使用标准json进行解析。
|
|
11696
12093
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11697
12094
|
:type JsonStandard: int
|
|
11698
|
-
:param _Protocol: syslog传输协议,取值为tcp或者udp
|
|
12095
|
+
:param _Protocol: syslog传输协议,取值为tcp或者udp,只有在LogType为service_syslog时生效,其余类型无需填写。
|
|
11699
12096
|
注意:
|
|
11700
12097
|
- 该字段适用于:创建采集规则配置、修改采集规则配置。
|
|
11701
12098
|
- COS导入不支持此字段。
|
|
11702
12099
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11703
12100
|
:type Protocol: str
|
|
11704
|
-
:param _Address: syslog系统日志采集指定采集器监听的地址和端口 ,形式:[ip]:[port]
|
|
12101
|
+
:param _Address: syslog系统日志采集指定采集器监听的地址和端口 ,形式:[ip]:[port],只有在LogType为service_syslog时生效,其余类型无需填写。
|
|
11705
12102
|
注意:
|
|
11706
12103
|
- 该字段适用于:创建采集规则配置、修改采集规则配置。
|
|
11707
12104
|
- COS导入不支持此字段。
|
|
@@ -11710,6 +12107,7 @@ class ExtractRuleInfo(AbstractModel):
|
|
|
11710
12107
|
:param _ParseProtocol: rfc3164:指定系统日志采集使用RFC3164协议解析日志。
|
|
11711
12108
|
rfc5424:指定系统日志采集使用RFC5424协议解析日志。
|
|
11712
12109
|
auto:自动匹配rfc3164或者rfc5424其中一种协议。
|
|
12110
|
+
只有在LogType为service_syslog时生效,其余类型无需填写。
|
|
11713
12111
|
注意:
|
|
11714
12112
|
- 该字段适用于:创建采集规则配置、修改采集规则配置
|
|
11715
12113
|
- COS导入不支持此字段。
|
|
@@ -11730,9 +12128,7 @@ auto:自动匹配rfc3164或者rfc5424其中一种协议。
|
|
|
11730
12128
|
- MetadataType为2时必填。
|
|
11731
12129
|
- COS导入不支持此字段。
|
|
11732
12130
|
:type MetaTags: list of MetaTagInfo
|
|
11733
|
-
:param _EventLogRules: Windows
|
|
11734
|
-
注意:
|
|
11735
|
-
- COS导入不支持此字段。
|
|
12131
|
+
:param _EventLogRules: Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。
|
|
11736
12132
|
:type EventLogRules: list of EventLog
|
|
11737
12133
|
"""
|
|
11738
12134
|
self._TimeKey = None
|
|
@@ -14063,9 +14459,11 @@ class MachineGroupTypeInfo(AbstractModel):
|
|
|
14063
14459
|
|
|
14064
14460
|
def __init__(self):
|
|
14065
14461
|
r"""
|
|
14066
|
-
:param _Type:
|
|
14462
|
+
:param _Type: 机器组类型。支持 ip 和 label。
|
|
14463
|
+
- ip:表示该机器组Values中存的是采集机器的ip地址
|
|
14464
|
+
- label:表示该机器组Values中存储的是机器的标签
|
|
14067
14465
|
:type Type: str
|
|
14068
|
-
:param _Values:
|
|
14466
|
+
:param _Values: 机器描述列表。
|
|
14069
14467
|
:type Values: list of str
|
|
14070
14468
|
"""
|
|
14071
14469
|
self._Type = None
|
|
@@ -15045,19 +15443,31 @@ class ModifyConfigExtraRequest(AbstractModel):
|
|
|
15045
15443
|
:type TopicId: str
|
|
15046
15444
|
:param _HostFile: 节点文件配置信息
|
|
15047
15445
|
:type HostFile: :class:`tencentcloud.cls.v20201016.models.HostFileInfo`
|
|
15048
|
-
:param _ContainerFile:
|
|
15446
|
+
:param _ContainerFile: 采集配置标记。
|
|
15447
|
+
- 目前只支持label_k8s,用于标记自建k8s集群使用的采集配置
|
|
15049
15448
|
:type ContainerFile: :class:`tencentcloud.cls.v20201016.models.ContainerFileInfo`
|
|
15050
15449
|
:param _ContainerStdout: 容器标准输出信息
|
|
15051
15450
|
:type ContainerStdout: :class:`tencentcloud.cls.v20201016.models.ContainerStdoutInfo`
|
|
15052
|
-
:param _LogType:
|
|
15451
|
+
:param _LogType: 采集的日志类型,默认为minimalist_log。支持以下类型:
|
|
15452
|
+
- json_log代表:JSON-文件日志(详见[使用 JSON 提取模式采集日志](https://cloud.tencent.com/document/product/614/17419));
|
|
15453
|
+
- delimiter_log代表:分隔符-文件日志(详见[使用分隔符提取模式采集日志](https://cloud.tencent.com/document/product/614/17420));
|
|
15454
|
+
- minimalist_log代表:单行全文-文件日志(详见[使用单行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17421));
|
|
15455
|
+
- fullregex_log代表:单行完全正则-文件日志(详见[使用单行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52365));
|
|
15456
|
+
- multiline_log代表:多行全文-文件日志(详见[使用多行全文提取模式采集日志](https://cloud.tencent.com/document/product/614/17422));
|
|
15457
|
+
- multiline_fullregex_log代表:多行完全正则-文件日志(详见[使用多行-完全正则提取模式采集日志](https://cloud.tencent.com/document/product/614/52366));
|
|
15458
|
+
- user_define_log代表:组合解析(适用于多格式嵌套的日志,详见[使用组合解析提取模式采集日志](https://cloud.tencent.com/document/product/614/61310))。
|
|
15053
15459
|
:type LogType: str
|
|
15054
|
-
:param _LogFormat:
|
|
15460
|
+
:param _LogFormat: 日志格式化方式,用于容器采集场景。
|
|
15461
|
+
- stdout-docker-json:用于docker容器采集场景
|
|
15462
|
+
- stdout-containerd:用于containerd容器采集场景
|
|
15055
15463
|
:type LogFormat: str
|
|
15056
15464
|
:param _ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
|
|
15057
15465
|
:type ExtractRule: :class:`tencentcloud.cls.v20201016.models.ExtractRuleInfo`
|
|
15058
15466
|
:param _ExcludePaths: 采集黑名单路径列表
|
|
15059
15467
|
:type ExcludePaths: list of ExcludePathInfo
|
|
15060
|
-
:param _UserDefineRule:
|
|
15468
|
+
:param _UserDefineRule: 组合解析采集规则,用于复杂场景下的日志采集。
|
|
15469
|
+
- 取值参考:[使用组合解析提取模式采集日志
|
|
15470
|
+
](https://cloud.tencent.com/document/product/614/61310)
|
|
15061
15471
|
:type UserDefineRule: str
|
|
15062
15472
|
:param _Type: 类型:container_stdout、container_file、host_file
|
|
15063
15473
|
:type Type: str
|
|
@@ -15075,7 +15485,8 @@ class ModifyConfigExtraRequest(AbstractModel):
|
|
|
15075
15485
|
- ClsAgentFileTimeout(超时属性), 取值范围: 大于等于0的整数, 0为不超时
|
|
15076
15486
|
- ClsAgentMaxDepth(最大目录深度),取值范围: 大于等于0的整数
|
|
15077
15487
|
- ClsAgentParseFailMerge(合并解析失败日志),取值范围: true或false
|
|
15078
|
-
|
|
15488
|
+
- ClsAgentDefault(自定义默认值,无特殊含义,用于清空其他选项),建议取值0
|
|
15489
|
+
|
|
15079
15490
|
:type AdvancedConfig: str
|
|
15080
15491
|
"""
|
|
15081
15492
|
self._ConfigExtraId = None
|
|
@@ -15802,6 +16213,37 @@ class ModifyCosRechargeResponse(AbstractModel):
|
|
|
15802
16213
|
self._RequestId = params.get("RequestId")
|
|
15803
16214
|
|
|
15804
16215
|
|
|
16216
|
+
class ModifyDashboardSubscribeRequest(AbstractModel):
|
|
16217
|
+
"""ModifyDashboardSubscribe请求参数结构体
|
|
16218
|
+
|
|
16219
|
+
"""
|
|
16220
|
+
|
|
16221
|
+
|
|
16222
|
+
class ModifyDashboardSubscribeResponse(AbstractModel):
|
|
16223
|
+
"""ModifyDashboardSubscribe返回参数结构体
|
|
16224
|
+
|
|
16225
|
+
"""
|
|
16226
|
+
|
|
16227
|
+
def __init__(self):
|
|
16228
|
+
r"""
|
|
16229
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
16230
|
+
:type RequestId: str
|
|
16231
|
+
"""
|
|
16232
|
+
self._RequestId = None
|
|
16233
|
+
|
|
16234
|
+
@property
|
|
16235
|
+
def RequestId(self):
|
|
16236
|
+
return self._RequestId
|
|
16237
|
+
|
|
16238
|
+
@RequestId.setter
|
|
16239
|
+
def RequestId(self, RequestId):
|
|
16240
|
+
self._RequestId = RequestId
|
|
16241
|
+
|
|
16242
|
+
|
|
16243
|
+
def _deserialize(self, params):
|
|
16244
|
+
self._RequestId = params.get("RequestId")
|
|
16245
|
+
|
|
16246
|
+
|
|
15805
16247
|
class ModifyDataTransformRequest(AbstractModel):
|
|
15806
16248
|
"""ModifyDataTransform请求参数结构体
|
|
15807
16249
|
|
|
@@ -15813,7 +16255,12 @@ class ModifyDataTransformRequest(AbstractModel):
|
|
|
15813
16255
|
:type TaskId: str
|
|
15814
16256
|
:param _Name: 加工任务名称
|
|
15815
16257
|
:type Name: str
|
|
15816
|
-
:param _EtlContent:
|
|
16258
|
+
:param _EtlContent: 加工语句。 当FuncType为2时,EtlContent必须使用[log_auto_output](https://cloud.tencent.com/document/product/614/70733#b3c58797-4825-4807-bef4-68106e25024f)
|
|
16259
|
+
|
|
16260
|
+
其他参考文档:
|
|
16261
|
+
|
|
16262
|
+
- [创建加工任务](https://cloud.tencent.com/document/product/614/63940)
|
|
16263
|
+
- [函数总览](https://cloud.tencent.com/document/product/614/70395)
|
|
15817
16264
|
:type EtlContent: str
|
|
15818
16265
|
:param _EnableFlag: 任务启动状态. 默认为1,开启, 2关闭
|
|
15819
16266
|
:type EnableFlag: int
|
|
@@ -16414,7 +16861,7 @@ class ModifyMachineGroupRequest(AbstractModel):
|
|
|
16414
16861
|
:type GroupId: str
|
|
16415
16862
|
:param _GroupName: 机器组名称
|
|
16416
16863
|
:type GroupName: str
|
|
16417
|
-
:param _MachineGroupType:
|
|
16864
|
+
:param _MachineGroupType: 机器组类型。Type:ip,Values中为ip字符串列表机器组;Type:label,Values中为标签字符串列表机器组。
|
|
16418
16865
|
:type MachineGroupType: :class:`tencentcloud.cls.v20201016.models.MachineGroupTypeInfo`
|
|
16419
16866
|
:param _Tags: 标签列表
|
|
16420
16867
|
:type Tags: list of Tag
|
|
@@ -16426,7 +16873,7 @@ class ModifyMachineGroupRequest(AbstractModel):
|
|
|
16426
16873
|
:type UpdateEndTime: str
|
|
16427
16874
|
:param _ServiceLogging: 是否开启服务日志,用于记录因Loglistener 服务自身产生的log,开启后,会创建内部日志集cls_service_logging和日志主题loglistener_status,loglistener_alarm,loglistener_business,不产生计费
|
|
16428
16875
|
:type ServiceLogging: bool
|
|
16429
|
-
:param _DelayCleanupTime:
|
|
16876
|
+
:param _DelayCleanupTime: 机器组中机器定期离线清理时间。单位:天
|
|
16430
16877
|
:type DelayCleanupTime: int
|
|
16431
16878
|
:param _MetaTags: 机器组元数据信息列表
|
|
16432
16879
|
:type MetaTags: list of MetaTagInfo
|
|
@@ -17305,23 +17752,28 @@ class NoticeReceiver(AbstractModel):
|
|
|
17305
17752
|
def __init__(self):
|
|
17306
17753
|
r"""
|
|
17307
17754
|
:param _ReceiverType: 接受者类型。可选值:
|
|
17308
|
-
|
|
17309
|
-
|
|
17755
|
+
- Uin - 用户ID
|
|
17756
|
+
- Group - 用户组ID
|
|
17310
17757
|
暂不支持其余接收者类型。
|
|
17311
17758
|
:type ReceiverType: str
|
|
17312
17759
|
:param _ReceiverIds: 接收者。
|
|
17760
|
+
当ReceiverType为Uin时,ReceiverIds的值为用户uid。[子用户信息查询](https://cloud.tencent.com/document/api/598/53486)
|
|
17761
|
+
当ReceiverType为Group时,ReceiverIds的值为用户组id。[CAM用户组](https://cloud.tencent.com/document/product/598/14985)
|
|
17313
17762
|
:type ReceiverIds: list of int
|
|
17314
17763
|
:param _ReceiverChannels: 通知接收渠道。
|
|
17315
|
-
|
|
17316
|
-
|
|
17317
|
-
|
|
17318
|
-
|
|
17764
|
+
- Email - 邮件
|
|
17765
|
+
- Sms - 短信
|
|
17766
|
+
- WeChat - 微信
|
|
17767
|
+
- Phone - 电话
|
|
17319
17768
|
:type ReceiverChannels: list of str
|
|
17320
|
-
:param _StartTime:
|
|
17769
|
+
:param _StartTime: 允许接收信息的开始时间。格式:`15:04:05`,必填。
|
|
17321
17770
|
:type StartTime: str
|
|
17322
|
-
:param _EndTime:
|
|
17771
|
+
:param _EndTime: 允许接收信息的结束时间。格式:`15:04:05`,必填。
|
|
17323
17772
|
:type EndTime: str
|
|
17324
|
-
:param _Index:
|
|
17773
|
+
:param _Index: 位序。
|
|
17774
|
+
|
|
17775
|
+
- 入参时无效。
|
|
17776
|
+
- 出参时有效。
|
|
17325
17777
|
:type Index: int
|
|
17326
17778
|
"""
|
|
17327
17779
|
self._ReceiverType = None
|
|
@@ -17410,7 +17862,64 @@ class NoticeRule(AbstractModel):
|
|
|
17410
17862
|
:param _WebCallbacks: 告警通知模板回调信息。
|
|
17411
17863
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
17412
17864
|
:type WebCallbacks: list of WebCallback
|
|
17413
|
-
:param _Rule:
|
|
17865
|
+
:param _Rule: 匹配规则 JSON串。
|
|
17866
|
+
**rule规则树格式为嵌套结构体JSON字符串**
|
|
17867
|
+
`{"Value":"AND","Type":"Operation","Children":[{"Value":"OR","Type":"Operation","Children":[{"Type":"Condition","Value":"Level","Children":[{"Value":"In","Type":"Compare"},{"Value":"[1,0]","Type":"Value"}]},{"Type":"Condition","Value":"Level","Children":[{"Value":"NotIn","Type":"Compare"},{"Value":"[2]","Type":"Value"}]}]}]}`
|
|
17868
|
+
|
|
17869
|
+
**rule规则树限制规则如下**:
|
|
17870
|
+
- 顶层rule中Type可取值:`Condition`,`Operation`
|
|
17871
|
+
- Type为`Operation`的子节点支持的Type可取值:`Condition`,`Operation`
|
|
17872
|
+
- Type为`Condition`的子节点支持的Type可取值:`String`,`Compare`,`Array`,`TimeRange`,`Value`,`Key`
|
|
17873
|
+
- 其他Type无子节点
|
|
17874
|
+
- 当rule Type为`Operation`时,value可取值:`AND`,`OR`
|
|
17875
|
+
- 当rule Type为`Condition`时,value不可为空,子节点个数不能小于2
|
|
17876
|
+
- 当子节点Type为 `Compare` 时,value可取值:`>`,`<`,`>=`,`<=`,`=`,`!=`,`Between`,`NotBetween`,`=~`,`!=~`,`In`,`NotIn`
|
|
17877
|
+
- value为`Between`,`NotBetween`时,下一个子节点value必须是长度为2的数组
|
|
17878
|
+
- value为`=~`,`!=~`时,下一个子节点value必须是一个正则表达式
|
|
17879
|
+
- value为`In`,`NotIn`时, 下一个子节点value必须是一个数组
|
|
17880
|
+
|
|
17881
|
+
**业务参数含义**:
|
|
17882
|
+
- Type:Condition 表示是规则条件,Value:Level 表示告警等级
|
|
17883
|
+
- 子节点Type支持`Compare`,Value支持`In`,`NotIn`
|
|
17884
|
+
- 下一个子节点value支持的值:0(警告),1(提醒),2 (紧急)
|
|
17885
|
+
以下示例表示:告警等级属于提醒
|
|
17886
|
+
`{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"Level\",\"Children\":[{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[1]\",\"Type\":\"Value\"}]}]}`
|
|
17887
|
+
|
|
17888
|
+
- Type:Condition 表示是规则条件,Value:NotifyType 表示通知类型
|
|
17889
|
+
- 子节点Type支持`Compare`,Value支持`In`,`NotIn`
|
|
17890
|
+
- 下一个子节点value支持的值:1(告警通知),2 (恢复通知)
|
|
17891
|
+
以下示例表示:通知类型属于告警通知或通知类型不属于恢复通知
|
|
17892
|
+
`{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"NotifyType\",\"Children\":[{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[1]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"NotifyType\",\"Children\":[{\"Value\":\"NotIn\",\"Type\":\"Compare\"},{\"Value\":\"[2]\",\"Type\":\"Value\"}]}]}]}`
|
|
17893
|
+
|
|
17894
|
+
- Type:Condition 表示是规则条件,Value:AlarmID 表示告警策略
|
|
17895
|
+
- 子节点Type支持`Compare`,Value支持`In`,`NotIn`
|
|
17896
|
+
- 下一个子节点value支持的值:告警策略id数组
|
|
17897
|
+
以下示例表示:告警策略属于alarm-53af048c-254b-4c73-bb48-xxx,alarm-6dfa8bc5-08da-4d64-b6cb-xxx或告警策略不属于alarm-1036314c-1e49-4cee-a8fb-xxx
|
|
17898
|
+
`"{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"AlarmID\",\"Children\":[{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"alarm-53af048c-254b-4c73-bb48-xxx\\\",\\\"alarm-6dfa8bc5-08da-4d64-b6cb-xxx\\\"]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"AlarmID\",\"Children\":[{\"Value\":\"NotIn\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"alarm-1036314c-1e49-4cee-a8fb-xxx\\\"]\",\"Type\":\"Value\"}]}]}]}"`
|
|
17899
|
+
|
|
17900
|
+
- Type:Condition 表示是规则条件,Value:AlarmName 表示告警策略名称
|
|
17901
|
+
- 子节点Type支持`Compare`,Value支持`=~`,`!=~`
|
|
17902
|
+
- 下一个子节点value支持的值:必须是正则表达式
|
|
17903
|
+
以下示例表示:告警策略名称正则匹配^test$或告警策略名称正则不匹配^hahaha$
|
|
17904
|
+
`{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"AlarmName\",\"Children\":[{\"Value\":\"=~\",\"Type\":\"Compare\"},{\"Value\":\"^test$\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"AlarmName\",\"Children\":[{\"Value\":\"!=~\",\"Type\":\"Compare\"},{\"Value\":\"^hahaha$\",\"Type\":\"Value\"}]}]}]}`
|
|
17905
|
+
|
|
17906
|
+
- Type:Condition 表示是规则条件,Value:Label 表示告警分类字段
|
|
17907
|
+
- 子节点Type支持`Compare`,Value支持`In`,`NotIn`,`=~`,`!=~`
|
|
17908
|
+
- 下一个子节点value支持的值:`In`,`NotIn` 时value是数组,`=~`,`!=~`时value是正则表达式
|
|
17909
|
+
以下示例表示:告警分类字段key1属于v1或告警分类字段key2不属于v2或告警分类字段key3正则匹配^test$或告警分类字段key4正则不匹配^hahaha$
|
|
17910
|
+
`{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"Label\",\"Children\":[{\"Value\":\"key1\",\"Type\":\"Key\"},{\"Value\":\"In\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"v1\\\"]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Label\",\"Children\":[{\"Value\":\"key2\",\"Type\":\"Key\"},{\"Value\":\"NotIn\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"v2\\\"]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Label\",\"Children\":[{\"Value\":\"key3\",\"Type\":\"Key\"},{\"Value\":\"=~\",\"Type\":\"Compare\"},{\"Value\":\"^test$\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Label\",\"Children\":[{\"Value\":\"key4\",\"Type\":\"Key\"},{\"Value\":\"!=~\",\"Type\":\"Compare\"},{\"Value\":\"^hahaha$\",\"Type\":\"Value\"}]}]}]}`
|
|
17911
|
+
|
|
17912
|
+
- Type:Condition 表示是规则条件,Value:NotifyTime 表示通知时间
|
|
17913
|
+
- 子节点Type支持`Compare`,Value支持`Between `,`NotBetween `
|
|
17914
|
+
- 下一个子节点value支持的值:长度为2,格式为`14:20:36`的字符串数组
|
|
17915
|
+
以下示例表示:通知时间在指定范围内14:18:36至14:33:36或通知时间不在指定范围内14:20:36至14:30:36
|
|
17916
|
+
`{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"NotifyTime\",\"Children\":[{\"Value\":\"Between\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"14:18:36\\\",\\\"14:33:36\\\"]\",\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"NotifyTime\",\"Children\":[{\"Value\":\"NotBetween\",\"Type\":\"Compare\"},{\"Value\":\"[\\\"14:20:36\\\",\\\"14:30:36\\\"]\",\"Type\":\"Value\"}]}]}]}`
|
|
17917
|
+
|
|
17918
|
+
- Type:Condition 表示是规则条件,Value:Duration 表示告警持续时间
|
|
17919
|
+
- 子节点Type支持`Compare`,Value支持`>`,`<`,`>=`,`<=`
|
|
17920
|
+
- 下一个子节点value支持的值:整型值单位分钟
|
|
17921
|
+
以下示例表示:告警持续时间大于1分钟或告警持续时间大于等于2分钟或告警持续时间小于3分钟或告警持续时间小于等于4分钟
|
|
17922
|
+
`{\"Value\":\"AND\",\"Type\":\"Operation\",\"Children\":[{\"Value\":\"OR\",\"Type\":\"Operation\",\"Children\":[{\"Type\":\"Condition\",\"Value\":\"Duration\",\"Children\":[{\"Value\":\">\",\"Type\":\"Compare\"},{\"Value\":1,\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Duration\",\"Children\":[{\"Value\":\">=\",\"Type\":\"Compare\"},{\"Value\":2,\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Duration\",\"Children\":[{\"Value\":\"<\",\"Type\":\"Compare\"},{\"Value\":3,\"Type\":\"Value\"}]},{\"Type\":\"Condition\",\"Value\":\"Duration\",\"Children\":[{\"Value\":\"<=\",\"Type\":\"Compare\"},{\"Value\":4,\"Type\":\"Value\"}]}]}]}`
|
|
17414
17923
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
17415
17924
|
:type Rule: str
|
|
17416
17925
|
"""
|
|
@@ -17961,13 +18470,16 @@ class PreviewLogStatistic(AbstractModel):
|
|
|
17961
18470
|
r"""
|
|
17962
18471
|
:param _LogContent: 日志内容
|
|
17963
18472
|
:type LogContent: str
|
|
17964
|
-
:param _LineNum:
|
|
18473
|
+
:param _LineNum: 行号。从0开始
|
|
17965
18474
|
:type LineNum: int
|
|
17966
18475
|
:param _DstTopicId: 目标日志主题
|
|
17967
18476
|
:type DstTopicId: str
|
|
17968
|
-
:param _FailReason:
|
|
18477
|
+
:param _FailReason: 失败错误信息, 空字符串""表示正常
|
|
17969
18478
|
:type FailReason: str
|
|
17970
|
-
:param _Time:
|
|
18479
|
+
:param _Time: 日志时间,格式:`2024-05-07 17:13:17.105`
|
|
18480
|
+
|
|
18481
|
+
- 入参时无效
|
|
18482
|
+
- 出参时有效,为日志中的时间格式
|
|
17971
18483
|
:type Time: str
|
|
17972
18484
|
:param _DstTopicName: 目标topic-name
|
|
17973
18485
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -18022,10 +18534,14 @@ class PreviewLogStatistic(AbstractModel):
|
|
|
18022
18534
|
|
|
18023
18535
|
@property
|
|
18024
18536
|
def DstTopicName(self):
|
|
18537
|
+
warnings.warn("parameter `DstTopicName` is deprecated", DeprecationWarning)
|
|
18538
|
+
|
|
18025
18539
|
return self._DstTopicName
|
|
18026
18540
|
|
|
18027
18541
|
@DstTopicName.setter
|
|
18028
18542
|
def DstTopicName(self, DstTopicName):
|
|
18543
|
+
warnings.warn("parameter `DstTopicName` is deprecated", DeprecationWarning)
|
|
18544
|
+
|
|
18029
18545
|
self._DstTopicName = DstTopicName
|
|
18030
18546
|
|
|
18031
18547
|
|
|
@@ -18704,6 +19220,9 @@ class ScheduledSqlTaskInfo(AbstractModel):
|
|
|
18704
19220
|
:param _SyntaxRule: 语法规则,0:Lucene语法,1:CQL语法
|
|
18705
19221
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
18706
19222
|
:type SyntaxRule: int
|
|
19223
|
+
:param _HasServicesLog: 是否开启投递服务日志。1:关闭,2:开启。
|
|
19224
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
19225
|
+
:type HasServicesLog: int
|
|
18707
19226
|
"""
|
|
18708
19227
|
self._TaskId = None
|
|
18709
19228
|
self._Name = None
|
|
@@ -18723,6 +19242,7 @@ class ScheduledSqlTaskInfo(AbstractModel):
|
|
|
18723
19242
|
self._ProcessDelay = None
|
|
18724
19243
|
self._SrcTopicRegion = None
|
|
18725
19244
|
self._SyntaxRule = None
|
|
19245
|
+
self._HasServicesLog = None
|
|
18726
19246
|
|
|
18727
19247
|
@property
|
|
18728
19248
|
def TaskId(self):
|
|
@@ -18868,6 +19388,14 @@ class ScheduledSqlTaskInfo(AbstractModel):
|
|
|
18868
19388
|
def SyntaxRule(self, SyntaxRule):
|
|
18869
19389
|
self._SyntaxRule = SyntaxRule
|
|
18870
19390
|
|
|
19391
|
+
@property
|
|
19392
|
+
def HasServicesLog(self):
|
|
19393
|
+
return self._HasServicesLog
|
|
19394
|
+
|
|
19395
|
+
@HasServicesLog.setter
|
|
19396
|
+
def HasServicesLog(self, HasServicesLog):
|
|
19397
|
+
self._HasServicesLog = HasServicesLog
|
|
19398
|
+
|
|
18871
19399
|
|
|
18872
19400
|
def _deserialize(self, params):
|
|
18873
19401
|
self._TaskId = params.get("TaskId")
|
|
@@ -18890,6 +19418,7 @@ class ScheduledSqlTaskInfo(AbstractModel):
|
|
|
18890
19418
|
self._ProcessDelay = params.get("ProcessDelay")
|
|
18891
19419
|
self._SrcTopicRegion = params.get("SrcTopicRegion")
|
|
18892
19420
|
self._SyntaxRule = params.get("SyntaxRule")
|
|
19421
|
+
self._HasServicesLog = params.get("HasServicesLog")
|
|
18893
19422
|
memeber_set = set(params.keys())
|
|
18894
19423
|
for name, value in vars(self).items():
|
|
18895
19424
|
property_name = name[1:]
|
|
@@ -19093,6 +19622,102 @@ class SearchCosRechargeInfoResponse(AbstractModel):
|
|
|
19093
19622
|
self._RequestId = params.get("RequestId")
|
|
19094
19623
|
|
|
19095
19624
|
|
|
19625
|
+
class SearchDashboardSubscribeRequest(AbstractModel):
|
|
19626
|
+
"""SearchDashboardSubscribe请求参数结构体
|
|
19627
|
+
|
|
19628
|
+
"""
|
|
19629
|
+
|
|
19630
|
+
def __init__(self):
|
|
19631
|
+
r"""
|
|
19632
|
+
:param _DashboardId: 仪表盘id。
|
|
19633
|
+
:type DashboardId: str
|
|
19634
|
+
:param _SubscribeData: 仪表盘订阅数据。
|
|
19635
|
+
:type SubscribeData: :class:`tencentcloud.cls.v20201016.models.DashboardSubscribeData`
|
|
19636
|
+
:param _Id: 仪表盘订阅Id。
|
|
19637
|
+
:type Id: int
|
|
19638
|
+
:param _Name: 仪表盘订阅名称。
|
|
19639
|
+
:type Name: str
|
|
19640
|
+
"""
|
|
19641
|
+
self._DashboardId = None
|
|
19642
|
+
self._SubscribeData = None
|
|
19643
|
+
self._Id = None
|
|
19644
|
+
self._Name = None
|
|
19645
|
+
|
|
19646
|
+
@property
|
|
19647
|
+
def DashboardId(self):
|
|
19648
|
+
return self._DashboardId
|
|
19649
|
+
|
|
19650
|
+
@DashboardId.setter
|
|
19651
|
+
def DashboardId(self, DashboardId):
|
|
19652
|
+
self._DashboardId = DashboardId
|
|
19653
|
+
|
|
19654
|
+
@property
|
|
19655
|
+
def SubscribeData(self):
|
|
19656
|
+
return self._SubscribeData
|
|
19657
|
+
|
|
19658
|
+
@SubscribeData.setter
|
|
19659
|
+
def SubscribeData(self, SubscribeData):
|
|
19660
|
+
self._SubscribeData = SubscribeData
|
|
19661
|
+
|
|
19662
|
+
@property
|
|
19663
|
+
def Id(self):
|
|
19664
|
+
return self._Id
|
|
19665
|
+
|
|
19666
|
+
@Id.setter
|
|
19667
|
+
def Id(self, Id):
|
|
19668
|
+
self._Id = Id
|
|
19669
|
+
|
|
19670
|
+
@property
|
|
19671
|
+
def Name(self):
|
|
19672
|
+
return self._Name
|
|
19673
|
+
|
|
19674
|
+
@Name.setter
|
|
19675
|
+
def Name(self, Name):
|
|
19676
|
+
self._Name = Name
|
|
19677
|
+
|
|
19678
|
+
|
|
19679
|
+
def _deserialize(self, params):
|
|
19680
|
+
self._DashboardId = params.get("DashboardId")
|
|
19681
|
+
if params.get("SubscribeData") is not None:
|
|
19682
|
+
self._SubscribeData = DashboardSubscribeData()
|
|
19683
|
+
self._SubscribeData._deserialize(params.get("SubscribeData"))
|
|
19684
|
+
self._Id = params.get("Id")
|
|
19685
|
+
self._Name = params.get("Name")
|
|
19686
|
+
memeber_set = set(params.keys())
|
|
19687
|
+
for name, value in vars(self).items():
|
|
19688
|
+
property_name = name[1:]
|
|
19689
|
+
if property_name in memeber_set:
|
|
19690
|
+
memeber_set.remove(property_name)
|
|
19691
|
+
if len(memeber_set) > 0:
|
|
19692
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
19693
|
+
|
|
19694
|
+
|
|
19695
|
+
|
|
19696
|
+
class SearchDashboardSubscribeResponse(AbstractModel):
|
|
19697
|
+
"""SearchDashboardSubscribe返回参数结构体
|
|
19698
|
+
|
|
19699
|
+
"""
|
|
19700
|
+
|
|
19701
|
+
def __init__(self):
|
|
19702
|
+
r"""
|
|
19703
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19704
|
+
:type RequestId: str
|
|
19705
|
+
"""
|
|
19706
|
+
self._RequestId = None
|
|
19707
|
+
|
|
19708
|
+
@property
|
|
19709
|
+
def RequestId(self):
|
|
19710
|
+
return self._RequestId
|
|
19711
|
+
|
|
19712
|
+
@RequestId.setter
|
|
19713
|
+
def RequestId(self, RequestId):
|
|
19714
|
+
self._RequestId = RequestId
|
|
19715
|
+
|
|
19716
|
+
|
|
19717
|
+
def _deserialize(self, params):
|
|
19718
|
+
self._RequestId = params.get("RequestId")
|
|
19719
|
+
|
|
19720
|
+
|
|
19096
19721
|
class SearchLogErrors(AbstractModel):
|
|
19097
19722
|
"""多日志主题检索错误信息
|
|
19098
19723
|
|
|
@@ -20688,16 +21313,20 @@ class WebCallback(AbstractModel):
|
|
|
20688
21313
|
|
|
20689
21314
|
def __init__(self):
|
|
20690
21315
|
r"""
|
|
20691
|
-
:param _Url:
|
|
21316
|
+
:param _Url: 回调地址。最大支持1024个字节数。
|
|
20692
21317
|
:type Url: str
|
|
20693
21318
|
:param _CallbackType: 回调的类型。可选值:
|
|
20694
|
-
|
|
20695
|
-
|
|
21319
|
+
- WeCom
|
|
21320
|
+
- Http
|
|
21321
|
+
- DingTalk
|
|
21322
|
+
- Lark
|
|
20696
21323
|
:type CallbackType: str
|
|
20697
21324
|
:param _Method: 回调方法。可选值:
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
21325
|
+
- POST(默认值)
|
|
21326
|
+
- PUT
|
|
21327
|
+
|
|
21328
|
+
注意:
|
|
21329
|
+
- 参数CallbackType为Http时为必选。
|
|
20701
21330
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
20702
21331
|
:type Method: str
|
|
20703
21332
|
:param _Headers: 请求头。
|
|
@@ -20708,7 +21337,9 @@ class WebCallback(AbstractModel):
|
|
|
20708
21337
|
注意:该参数已废弃,请在<a href="https://cloud.tencent.com/document/product/614/56466">创建告警策略</a>接口CallBack参数中指定请求内容。
|
|
20709
21338
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
20710
21339
|
:type Body: str
|
|
20711
|
-
:param _Index:
|
|
21340
|
+
:param _Index: 序号。
|
|
21341
|
+
- 入参无效。
|
|
21342
|
+
- 出参有效。
|
|
20712
21343
|
:type Index: int
|
|
20713
21344
|
"""
|
|
20714
21345
|
self._Url = None
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1144
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1138
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|