tencentcloud-sdk-cls 3.0.924 → 3.0.926
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201016/client.rb +98 -1
- data/lib/v20201016/models.rb +395 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09d737fb9d0c31b429cee75c16ff9f88621c622d
|
4
|
+
data.tar.gz: 669650e5b5d233ec1f39ae8af4f92f7b27bc74a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fd281809a6ae439290ad4236ce6b3acecb3062041b5162d0415eefc8b33db2b0f8a32b11f28f0149d6b40fc7cff76a528a25715585c04791db1fc8b34c3a60c
|
7
|
+
data.tar.gz: 11fcbaad8e2665719bbafb3e45a304ba62a6270cde2f0cbe031ad5e80e65246624b2bce4aa89e426156480cdad5223a4aa161224b8416ebb5d117c0c95290c8c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.926
|
data/lib/v20201016/client.rb
CHANGED
@@ -533,6 +533,30 @@ module TencentCloud
|
|
533
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
534
|
end
|
535
535
|
|
536
|
+
# 该接口用于创建通知内容。
|
537
|
+
|
538
|
+
# @param request: Request instance for CreateNoticeContent.
|
539
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::CreateNoticeContentRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::CreateNoticeContentResponse`
|
541
|
+
def CreateNoticeContent(request)
|
542
|
+
body = send_request('CreateNoticeContent', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = CreateNoticeContentResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
536
560
|
# 本接口用于创建定时SQL分析任务
|
537
561
|
|
538
562
|
# @param request: Request instance for CreateScheduledSql.
|
@@ -989,6 +1013,30 @@ module TencentCloud
|
|
989
1013
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
1014
|
end
|
991
1015
|
|
1016
|
+
# 该接口用于删除通知内容配置
|
1017
|
+
|
1018
|
+
# @param request: Request instance for DeleteNoticeContent.
|
1019
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::DeleteNoticeContentRequest`
|
1020
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::DeleteNoticeContentResponse`
|
1021
|
+
def DeleteNoticeContent(request)
|
1022
|
+
body = send_request('DeleteNoticeContent', request.serialize)
|
1023
|
+
response = JSON.parse(body)
|
1024
|
+
if response['Response'].key?('Error') == false
|
1025
|
+
model = DeleteNoticeContentResponse.new
|
1026
|
+
model.deserialize(response['Response'])
|
1027
|
+
model
|
1028
|
+
else
|
1029
|
+
code = response['Response']['Error']['Code']
|
1030
|
+
message = response['Response']['Error']['Message']
|
1031
|
+
reqid = response['Response']['RequestId']
|
1032
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1033
|
+
end
|
1034
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1035
|
+
raise e
|
1036
|
+
rescue StandardError => e
|
1037
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1038
|
+
end
|
1039
|
+
|
992
1040
|
# 本接口用于删除定时SQL分析任务
|
993
1041
|
|
994
1042
|
# @param request: Request instance for DeleteScheduledSql.
|
@@ -1614,6 +1662,30 @@ module TencentCloud
|
|
1614
1662
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1615
1663
|
end
|
1616
1664
|
|
1665
|
+
# 获取通知内容列表
|
1666
|
+
|
1667
|
+
# @param request: Request instance for DescribeNoticeContents.
|
1668
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::DescribeNoticeContentsRequest`
|
1669
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::DescribeNoticeContentsResponse`
|
1670
|
+
def DescribeNoticeContents(request)
|
1671
|
+
body = send_request('DescribeNoticeContents', request.serialize)
|
1672
|
+
response = JSON.parse(body)
|
1673
|
+
if response['Response'].key?('Error') == false
|
1674
|
+
model = DescribeNoticeContentsResponse.new
|
1675
|
+
model.deserialize(response['Response'])
|
1676
|
+
model
|
1677
|
+
else
|
1678
|
+
code = response['Response']['Error']['Code']
|
1679
|
+
message = response['Response']['Error']['Message']
|
1680
|
+
reqid = response['Response']['RequestId']
|
1681
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1682
|
+
end
|
1683
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1684
|
+
raise e
|
1685
|
+
rescue StandardError => e
|
1686
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1687
|
+
end
|
1688
|
+
|
1617
1689
|
# 该接口已废弃,如需获取分区数量,请使用DescribeTopics接口。
|
1618
1690
|
|
1619
1691
|
# @param request: Request instance for DescribePartitions.
|
@@ -2142,6 +2214,30 @@ module TencentCloud
|
|
2142
2214
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2143
2215
|
end
|
2144
2216
|
|
2217
|
+
# 该接口用于修改通知内容配置
|
2218
|
+
|
2219
|
+
# @param request: Request instance for ModifyNoticeContent.
|
2220
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::ModifyNoticeContentRequest`
|
2221
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::ModifyNoticeContentResponse`
|
2222
|
+
def ModifyNoticeContent(request)
|
2223
|
+
body = send_request('ModifyNoticeContent', request.serialize)
|
2224
|
+
response = JSON.parse(body)
|
2225
|
+
if response['Response'].key?('Error') == false
|
2226
|
+
model = ModifyNoticeContentResponse.new
|
2227
|
+
model.deserialize(response['Response'])
|
2228
|
+
model
|
2229
|
+
else
|
2230
|
+
code = response['Response']['Error']['Code']
|
2231
|
+
message = response['Response']['Error']['Message']
|
2232
|
+
reqid = response['Response']['RequestId']
|
2233
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2234
|
+
end
|
2235
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2236
|
+
raise e
|
2237
|
+
rescue StandardError => e
|
2238
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2239
|
+
end
|
2240
|
+
|
2145
2241
|
# 本接口用于修改定时SQL分析任务
|
2146
2242
|
|
2147
2243
|
# @param request: Request instance for ModifyScheduledSql.
|
@@ -2262,7 +2358,8 @@ module TencentCloud
|
|
2262
2358
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2263
2359
|
end
|
2264
2360
|
|
2265
|
-
#
|
2361
|
+
# 查询指定时刻指标的最新值。
|
2362
|
+
# 如果该时刻向前推5分钟内均无指标数据,则无相应的查询结果。
|
2266
2363
|
|
2267
2364
|
# @param request: Request instance for QueryMetric.
|
2268
2365
|
# @type request: :class:`Tencentcloud::cls::V20201016::QueryMetricRequest`
|
data/lib/v20201016/models.rb
CHANGED
@@ -3052,6 +3052,57 @@ module TencentCloud
|
|
3052
3052
|
end
|
3053
3053
|
end
|
3054
3054
|
|
3055
|
+
# CreateNoticeContent请求参数结构体
|
3056
|
+
class CreateNoticeContentRequest < TencentCloud::Common::AbstractModel
|
3057
|
+
# @param Name: 模版名称。
|
3058
|
+
# @type Name: String
|
3059
|
+
# @param Type: 模版内容语言。0:中文1:英文
|
3060
|
+
# @type Type: Integer
|
3061
|
+
# @param NoticeContents: 模版详细配置。
|
3062
|
+
# @type NoticeContents: Array
|
3063
|
+
|
3064
|
+
attr_accessor :Name, :Type, :NoticeContents
|
3065
|
+
|
3066
|
+
def initialize(name=nil, type=nil, noticecontents=nil)
|
3067
|
+
@Name = name
|
3068
|
+
@Type = type
|
3069
|
+
@NoticeContents = noticecontents
|
3070
|
+
end
|
3071
|
+
|
3072
|
+
def deserialize(params)
|
3073
|
+
@Name = params['Name']
|
3074
|
+
@Type = params['Type']
|
3075
|
+
unless params['NoticeContents'].nil?
|
3076
|
+
@NoticeContents = []
|
3077
|
+
params['NoticeContents'].each do |i|
|
3078
|
+
noticecontent_tmp = NoticeContent.new
|
3079
|
+
noticecontent_tmp.deserialize(i)
|
3080
|
+
@NoticeContents << noticecontent_tmp
|
3081
|
+
end
|
3082
|
+
end
|
3083
|
+
end
|
3084
|
+
end
|
3085
|
+
|
3086
|
+
# CreateNoticeContent返回参数结构体
|
3087
|
+
class CreateNoticeContentResponse < TencentCloud::Common::AbstractModel
|
3088
|
+
# @param NoticeContentId: 通知内容配置ID
|
3089
|
+
# @type NoticeContentId: String
|
3090
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3091
|
+
# @type RequestId: String
|
3092
|
+
|
3093
|
+
attr_accessor :NoticeContentId, :RequestId
|
3094
|
+
|
3095
|
+
def initialize(noticecontentid=nil, requestid=nil)
|
3096
|
+
@NoticeContentId = noticecontentid
|
3097
|
+
@RequestId = requestid
|
3098
|
+
end
|
3099
|
+
|
3100
|
+
def deserialize(params)
|
3101
|
+
@NoticeContentId = params['NoticeContentId']
|
3102
|
+
@RequestId = params['RequestId']
|
3103
|
+
end
|
3104
|
+
end
|
3105
|
+
|
3055
3106
|
# CreateScheduledSql请求参数结构体
|
3056
3107
|
class CreateScheduledSqlRequest < TencentCloud::Common::AbstractModel
|
3057
3108
|
# @param SrcTopicId: 源日志主题
|
@@ -4224,6 +4275,38 @@ module TencentCloud
|
|
4224
4275
|
end
|
4225
4276
|
end
|
4226
4277
|
|
4278
|
+
# DeleteNoticeContent请求参数结构体
|
4279
|
+
class DeleteNoticeContentRequest < TencentCloud::Common::AbstractModel
|
4280
|
+
# @param NoticeContentId: 通知内容模版ID
|
4281
|
+
# @type NoticeContentId: String
|
4282
|
+
|
4283
|
+
attr_accessor :NoticeContentId
|
4284
|
+
|
4285
|
+
def initialize(noticecontentid=nil)
|
4286
|
+
@NoticeContentId = noticecontentid
|
4287
|
+
end
|
4288
|
+
|
4289
|
+
def deserialize(params)
|
4290
|
+
@NoticeContentId = params['NoticeContentId']
|
4291
|
+
end
|
4292
|
+
end
|
4293
|
+
|
4294
|
+
# DeleteNoticeContent返回参数结构体
|
4295
|
+
class DeleteNoticeContentResponse < TencentCloud::Common::AbstractModel
|
4296
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4297
|
+
# @type RequestId: String
|
4298
|
+
|
4299
|
+
attr_accessor :RequestId
|
4300
|
+
|
4301
|
+
def initialize(requestid=nil)
|
4302
|
+
@RequestId = requestid
|
4303
|
+
end
|
4304
|
+
|
4305
|
+
def deserialize(params)
|
4306
|
+
@RequestId = params['RequestId']
|
4307
|
+
end
|
4308
|
+
end
|
4309
|
+
|
4227
4310
|
# DeleteScheduledSql请求参数结构体
|
4228
4311
|
class DeleteScheduledSqlRequest < TencentCloud::Common::AbstractModel
|
4229
4312
|
# @param TaskId: 任务ID
|
@@ -5925,6 +6008,79 @@ module TencentCloud
|
|
5925
6008
|
end
|
5926
6009
|
end
|
5927
6010
|
|
6011
|
+
# DescribeNoticeContents请求参数结构体
|
6012
|
+
class DescribeNoticeContentsRequest < TencentCloud::Common::AbstractModel
|
6013
|
+
# @param Filters: <li> name
|
6014
|
+
# 按照【通知内容模版名称】进行过滤。
|
6015
|
+
# 类型:String
|
6016
|
+
# 必选:否
|
6017
|
+
# </li>
|
6018
|
+
# <li> noticeContentId
|
6019
|
+
# 按照【通知内容模版ID】进行过滤。
|
6020
|
+
# 类型:String
|
6021
|
+
# 必选:否
|
6022
|
+
# </li>
|
6023
|
+
# 每次请求的Filters的上限为10,Filter.Values的上限为100。
|
6024
|
+
# @type Filters: Array
|
6025
|
+
# @param Offset: 分页的偏移量,默认值为0。
|
6026
|
+
# @type Offset: Integer
|
6027
|
+
# @param Limit: 分页单页限制数目,默认值为20,最大值100。
|
6028
|
+
# @type Limit: Integer
|
6029
|
+
|
6030
|
+
attr_accessor :Filters, :Offset, :Limit
|
6031
|
+
|
6032
|
+
def initialize(filters=nil, offset=nil, limit=nil)
|
6033
|
+
@Filters = filters
|
6034
|
+
@Offset = offset
|
6035
|
+
@Limit = limit
|
6036
|
+
end
|
6037
|
+
|
6038
|
+
def deserialize(params)
|
6039
|
+
unless params['Filters'].nil?
|
6040
|
+
@Filters = []
|
6041
|
+
params['Filters'].each do |i|
|
6042
|
+
filter_tmp = Filter.new
|
6043
|
+
filter_tmp.deserialize(i)
|
6044
|
+
@Filters << filter_tmp
|
6045
|
+
end
|
6046
|
+
end
|
6047
|
+
@Offset = params['Offset']
|
6048
|
+
@Limit = params['Limit']
|
6049
|
+
end
|
6050
|
+
end
|
6051
|
+
|
6052
|
+
# DescribeNoticeContents返回参数结构体
|
6053
|
+
class DescribeNoticeContentsResponse < TencentCloud::Common::AbstractModel
|
6054
|
+
# @param NoticeContents: 通知内容模版列表。
|
6055
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6056
|
+
# @type NoticeContents: Array
|
6057
|
+
# @param TotalCount: 符合条件的通知内容模版总数。
|
6058
|
+
# @type TotalCount: Integer
|
6059
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6060
|
+
# @type RequestId: String
|
6061
|
+
|
6062
|
+
attr_accessor :NoticeContents, :TotalCount, :RequestId
|
6063
|
+
|
6064
|
+
def initialize(noticecontents=nil, totalcount=nil, requestid=nil)
|
6065
|
+
@NoticeContents = noticecontents
|
6066
|
+
@TotalCount = totalcount
|
6067
|
+
@RequestId = requestid
|
6068
|
+
end
|
6069
|
+
|
6070
|
+
def deserialize(params)
|
6071
|
+
unless params['NoticeContents'].nil?
|
6072
|
+
@NoticeContents = []
|
6073
|
+
params['NoticeContents'].each do |i|
|
6074
|
+
noticecontenttemplate_tmp = NoticeContentTemplate.new
|
6075
|
+
noticecontenttemplate_tmp.deserialize(i)
|
6076
|
+
@NoticeContents << noticecontenttemplate_tmp
|
6077
|
+
end
|
6078
|
+
end
|
6079
|
+
@TotalCount = params['TotalCount']
|
6080
|
+
@RequestId = params['RequestId']
|
6081
|
+
end
|
6082
|
+
end
|
6083
|
+
|
5928
6084
|
# DescribePartitions请求参数结构体
|
5929
6085
|
class DescribePartitionsRequest < TencentCloud::Common::AbstractModel
|
5930
6086
|
# @param TopicId: 日志主题ID
|
@@ -8798,6 +8954,59 @@ module TencentCloud
|
|
8798
8954
|
end
|
8799
8955
|
end
|
8800
8956
|
|
8957
|
+
# ModifyNoticeContent请求参数结构体
|
8958
|
+
class ModifyNoticeContentRequest < TencentCloud::Common::AbstractModel
|
8959
|
+
# @param NoticeContentId: 通知内容模版ID。
|
8960
|
+
# @type NoticeContentId: String
|
8961
|
+
# @param Name: 通知内容模版名称。
|
8962
|
+
# @type Name: String
|
8963
|
+
# @param Type: 通知内容语言。
|
8964
|
+
|
8965
|
+
# 0:中文 1:英文
|
8966
|
+
# @type Type: Integer
|
8967
|
+
# @param NoticeContents: 通知内容模版详细信息。
|
8968
|
+
# @type NoticeContents: Array
|
8969
|
+
|
8970
|
+
attr_accessor :NoticeContentId, :Name, :Type, :NoticeContents
|
8971
|
+
|
8972
|
+
def initialize(noticecontentid=nil, name=nil, type=nil, noticecontents=nil)
|
8973
|
+
@NoticeContentId = noticecontentid
|
8974
|
+
@Name = name
|
8975
|
+
@Type = type
|
8976
|
+
@NoticeContents = noticecontents
|
8977
|
+
end
|
8978
|
+
|
8979
|
+
def deserialize(params)
|
8980
|
+
@NoticeContentId = params['NoticeContentId']
|
8981
|
+
@Name = params['Name']
|
8982
|
+
@Type = params['Type']
|
8983
|
+
unless params['NoticeContents'].nil?
|
8984
|
+
@NoticeContents = []
|
8985
|
+
params['NoticeContents'].each do |i|
|
8986
|
+
noticecontent_tmp = NoticeContent.new
|
8987
|
+
noticecontent_tmp.deserialize(i)
|
8988
|
+
@NoticeContents << noticecontent_tmp
|
8989
|
+
end
|
8990
|
+
end
|
8991
|
+
end
|
8992
|
+
end
|
8993
|
+
|
8994
|
+
# ModifyNoticeContent返回参数结构体
|
8995
|
+
class ModifyNoticeContentResponse < TencentCloud::Common::AbstractModel
|
8996
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8997
|
+
# @type RequestId: String
|
8998
|
+
|
8999
|
+
attr_accessor :RequestId
|
9000
|
+
|
9001
|
+
def initialize(requestid=nil)
|
9002
|
+
@RequestId = requestid
|
9003
|
+
end
|
9004
|
+
|
9005
|
+
def deserialize(params)
|
9006
|
+
@RequestId = params['RequestId']
|
9007
|
+
end
|
9008
|
+
end
|
9009
|
+
|
8801
9010
|
# ModifyScheduledSql请求参数结构体
|
8802
9011
|
class ModifyScheduledSqlRequest < TencentCloud::Common::AbstractModel
|
8803
9012
|
# @param TaskId: 任务ID
|
@@ -9005,10 +9214,12 @@ module TencentCloud
|
|
9005
9214
|
# @type Extends: :class:`Tencentcloud::Cls.v20201016.models.TopicExtendInfo`
|
9006
9215
|
# @param PartitionCount: 日志主题分区数量
|
9007
9216
|
# @type PartitionCount: Integer
|
9217
|
+
# @param CancelTopicAsyncTaskID: 取消切换存储任务的id
|
9218
|
+
# @type CancelTopicAsyncTaskID: String
|
9008
9219
|
|
9009
|
-
attr_accessor :TopicId, :TopicName, :Tags, :Status, :AutoSplit, :MaxSplitPartitions, :Period, :Describes, :HotPeriod, :IsWebTracking, :Extends, :PartitionCount
|
9220
|
+
attr_accessor :TopicId, :TopicName, :Tags, :Status, :AutoSplit, :MaxSplitPartitions, :Period, :Describes, :HotPeriod, :IsWebTracking, :Extends, :PartitionCount, :CancelTopicAsyncTaskID
|
9010
9221
|
|
9011
|
-
def initialize(topicid=nil, topicname=nil, tags=nil, status=nil, autosplit=nil, maxsplitpartitions=nil, period=nil, describes=nil, hotperiod=nil, iswebtracking=nil, extends=nil, partitioncount=nil)
|
9222
|
+
def initialize(topicid=nil, topicname=nil, tags=nil, status=nil, autosplit=nil, maxsplitpartitions=nil, period=nil, describes=nil, hotperiod=nil, iswebtracking=nil, extends=nil, partitioncount=nil, canceltopicasynctaskid=nil)
|
9012
9223
|
@TopicId = topicid
|
9013
9224
|
@TopicName = topicname
|
9014
9225
|
@Tags = tags
|
@@ -9021,6 +9232,7 @@ module TencentCloud
|
|
9021
9232
|
@IsWebTracking = iswebtracking
|
9022
9233
|
@Extends = extends
|
9023
9234
|
@PartitionCount = partitioncount
|
9235
|
+
@CancelTopicAsyncTaskID = canceltopicasynctaskid
|
9024
9236
|
end
|
9025
9237
|
|
9026
9238
|
def deserialize(params)
|
@@ -9046,6 +9258,7 @@ module TencentCloud
|
|
9046
9258
|
@Extends.deserialize(params['Extends'])
|
9047
9259
|
end
|
9048
9260
|
@PartitionCount = params['PartitionCount']
|
9261
|
+
@CancelTopicAsyncTaskID = params['CancelTopicAsyncTaskID']
|
9049
9262
|
end
|
9050
9263
|
end
|
9051
9264
|
|
@@ -9076,17 +9289,23 @@ module TencentCloud
|
|
9076
9289
|
# @param Time: 执行的周期,或者定制执行的时间节点。单位为分钟,取值范围为1~1440。
|
9077
9290
|
# 当type为`Period`,`Fixed`时,time字段生效。
|
9078
9291
|
# @type Time: Integer
|
9292
|
+
# @param CronExpression: 执行的周期cron表达式。示例:`"*/1 * * * *"` 从左到右每个field的含义 Minutes field, Hours field,Day of month field,Month field,Day of week field, 不支持秒级别。
|
9293
|
+
# 当type为`Cron`时,CronExpression字段生效。
|
9294
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9295
|
+
# @type CronExpression: String
|
9079
9296
|
|
9080
|
-
attr_accessor :Type, :Time
|
9297
|
+
attr_accessor :Type, :Time, :CronExpression
|
9081
9298
|
|
9082
|
-
def initialize(type=nil, time=nil)
|
9299
|
+
def initialize(type=nil, time=nil, cronexpression=nil)
|
9083
9300
|
@Type = type
|
9084
9301
|
@Time = time
|
9302
|
+
@CronExpression = cronexpression
|
9085
9303
|
end
|
9086
9304
|
|
9087
9305
|
def deserialize(params)
|
9088
9306
|
@Type = params['Type']
|
9089
9307
|
@Time = params['Time']
|
9308
|
+
@CronExpression = params['CronExpression']
|
9090
9309
|
end
|
9091
9310
|
end
|
9092
9311
|
|
@@ -9133,6 +9352,139 @@ module TencentCloud
|
|
9133
9352
|
end
|
9134
9353
|
end
|
9135
9354
|
|
9355
|
+
# 通知内容模版详细配置
|
9356
|
+
class NoticeContent < TencentCloud::Common::AbstractModel
|
9357
|
+
# @param Type: 渠道类型
|
9358
|
+
|
9359
|
+
# Email:邮件;Sms:短信;WeChat:微信;Phone:电话;WeCom:企业微信;DingTalk:钉钉;Lark:飞书;Http:自定义回调;
|
9360
|
+
# @type Type: String
|
9361
|
+
# @param TriggerContent: 告警触发通知内容模版。
|
9362
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9363
|
+
# @type TriggerContent: :class:`Tencentcloud::Cls.v20201016.models.NoticeContentInfo`
|
9364
|
+
# @param RecoveryContent: 告警恢复通知内容模版。
|
9365
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9366
|
+
# @type RecoveryContent: :class:`Tencentcloud::Cls.v20201016.models.NoticeContentInfo`
|
9367
|
+
|
9368
|
+
attr_accessor :Type, :TriggerContent, :RecoveryContent
|
9369
|
+
|
9370
|
+
def initialize(type=nil, triggercontent=nil, recoverycontent=nil)
|
9371
|
+
@Type = type
|
9372
|
+
@TriggerContent = triggercontent
|
9373
|
+
@RecoveryContent = recoverycontent
|
9374
|
+
end
|
9375
|
+
|
9376
|
+
def deserialize(params)
|
9377
|
+
@Type = params['Type']
|
9378
|
+
unless params['TriggerContent'].nil?
|
9379
|
+
@TriggerContent = NoticeContentInfo.new
|
9380
|
+
@TriggerContent.deserialize(params['TriggerContent'])
|
9381
|
+
end
|
9382
|
+
unless params['RecoveryContent'].nil?
|
9383
|
+
@RecoveryContent = NoticeContentInfo.new
|
9384
|
+
@RecoveryContent.deserialize(params['RecoveryContent'])
|
9385
|
+
end
|
9386
|
+
end
|
9387
|
+
end
|
9388
|
+
|
9389
|
+
# 通知模板内容
|
9390
|
+
class NoticeContentInfo < TencentCloud::Common::AbstractModel
|
9391
|
+
# @param Title: 通知内容模板标题信息。
|
9392
|
+
# 部分通知渠道类型不支持“标题”,请参照腾讯云控制台页面。
|
9393
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9394
|
+
# @type Title: String
|
9395
|
+
# @param Content: 通知内容模板正文信息。
|
9396
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9397
|
+
# @type Content: String
|
9398
|
+
# @param Headers: 请求头(Request Headers):在HTTP请求中,请求头包含了客户端向服务器发送的附加信息,如用户代理、授权凭证、期望的响应格式等。
|
9399
|
+
# 仅“自定义回调”支持该配置。
|
9400
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9401
|
+
# @type Headers: Array
|
9402
|
+
|
9403
|
+
attr_accessor :Title, :Content, :Headers
|
9404
|
+
|
9405
|
+
def initialize(title=nil, content=nil, headers=nil)
|
9406
|
+
@Title = title
|
9407
|
+
@Content = content
|
9408
|
+
@Headers = headers
|
9409
|
+
end
|
9410
|
+
|
9411
|
+
def deserialize(params)
|
9412
|
+
@Title = params['Title']
|
9413
|
+
@Content = params['Content']
|
9414
|
+
@Headers = params['Headers']
|
9415
|
+
end
|
9416
|
+
end
|
9417
|
+
|
9418
|
+
# 通知内容模板信息
|
9419
|
+
class NoticeContentTemplate < TencentCloud::Common::AbstractModel
|
9420
|
+
# @param NoticeContentId: 通知内容模板ID。
|
9421
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9422
|
+
# @type NoticeContentId: String
|
9423
|
+
# @param Name: 通知内容模板名称
|
9424
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9425
|
+
# @type Name: String
|
9426
|
+
# @param Type: 语言类型。
|
9427
|
+
|
9428
|
+
# 0: 中文
|
9429
|
+
# 1: 英文
|
9430
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9431
|
+
# @type Type: Integer
|
9432
|
+
# @param NoticeContents: 通知内容模板信息。
|
9433
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9434
|
+
# @type NoticeContents: Array
|
9435
|
+
# @param Flag: 通知内容模板标记。
|
9436
|
+
|
9437
|
+
# 0: 用户自定义
|
9438
|
+
# 1: 系统内置
|
9439
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9440
|
+
# @type Flag: Integer
|
9441
|
+
# @param Uin: 创建者主账号。
|
9442
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9443
|
+
# @type Uin: Integer
|
9444
|
+
# @param SubUin: 创建/修改者子账号。
|
9445
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9446
|
+
# @type SubUin: Integer
|
9447
|
+
# @param CreateTime: 创建时间 秒级时间戳。
|
9448
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9449
|
+
# @type CreateTime: Integer
|
9450
|
+
# @param UpdateTime: 更新时间 秒级时间戳。
|
9451
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9452
|
+
# @type UpdateTime: Integer
|
9453
|
+
|
9454
|
+
attr_accessor :NoticeContentId, :Name, :Type, :NoticeContents, :Flag, :Uin, :SubUin, :CreateTime, :UpdateTime
|
9455
|
+
|
9456
|
+
def initialize(noticecontentid=nil, name=nil, type=nil, noticecontents=nil, flag=nil, uin=nil, subuin=nil, createtime=nil, updatetime=nil)
|
9457
|
+
@NoticeContentId = noticecontentid
|
9458
|
+
@Name = name
|
9459
|
+
@Type = type
|
9460
|
+
@NoticeContents = noticecontents
|
9461
|
+
@Flag = flag
|
9462
|
+
@Uin = uin
|
9463
|
+
@SubUin = subuin
|
9464
|
+
@CreateTime = createtime
|
9465
|
+
@UpdateTime = updatetime
|
9466
|
+
end
|
9467
|
+
|
9468
|
+
def deserialize(params)
|
9469
|
+
@NoticeContentId = params['NoticeContentId']
|
9470
|
+
@Name = params['Name']
|
9471
|
+
@Type = params['Type']
|
9472
|
+
unless params['NoticeContents'].nil?
|
9473
|
+
@NoticeContents = []
|
9474
|
+
params['NoticeContents'].each do |i|
|
9475
|
+
noticecontent_tmp = NoticeContent.new
|
9476
|
+
noticecontent_tmp.deserialize(i)
|
9477
|
+
@NoticeContents << noticecontent_tmp
|
9478
|
+
end
|
9479
|
+
end
|
9480
|
+
@Flag = params['Flag']
|
9481
|
+
@Uin = params['Uin']
|
9482
|
+
@SubUin = params['SubUin']
|
9483
|
+
@CreateTime = params['CreateTime']
|
9484
|
+
@UpdateTime = params['UpdateTime']
|
9485
|
+
end
|
9486
|
+
end
|
9487
|
+
|
9136
9488
|
# 告警通知接收者信息
|
9137
9489
|
class NoticeReceiver < TencentCloud::Common::AbstractModel
|
9138
9490
|
# @param ReceiverType: 接受者类型。可选值:
|
@@ -9159,16 +9511,20 @@ module TencentCloud
|
|
9159
9511
|
# - 入参时无效。
|
9160
9512
|
# - 出参时有效。
|
9161
9513
|
# @type Index: Integer
|
9514
|
+
# @param NoticeContentId: 通知内容模板ID。
|
9515
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9516
|
+
# @type NoticeContentId: String
|
9162
9517
|
|
9163
|
-
attr_accessor :ReceiverType, :ReceiverIds, :ReceiverChannels, :StartTime, :EndTime, :Index
|
9518
|
+
attr_accessor :ReceiverType, :ReceiverIds, :ReceiverChannels, :StartTime, :EndTime, :Index, :NoticeContentId
|
9164
9519
|
|
9165
|
-
def initialize(receivertype=nil, receiverids=nil, receiverchannels=nil, starttime=nil, endtime=nil, index=nil)
|
9520
|
+
def initialize(receivertype=nil, receiverids=nil, receiverchannels=nil, starttime=nil, endtime=nil, index=nil, noticecontentid=nil)
|
9166
9521
|
@ReceiverType = receivertype
|
9167
9522
|
@ReceiverIds = receiverids
|
9168
9523
|
@ReceiverChannels = receiverchannels
|
9169
9524
|
@StartTime = starttime
|
9170
9525
|
@EndTime = endtime
|
9171
9526
|
@Index = index
|
9527
|
+
@NoticeContentId = noticecontentid
|
9172
9528
|
end
|
9173
9529
|
|
9174
9530
|
def deserialize(params)
|
@@ -9178,6 +9534,7 @@ module TencentCloud
|
|
9178
9534
|
@StartTime = params['StartTime']
|
9179
9535
|
@EndTime = params['EndTime']
|
9180
9536
|
@Index = params['Index']
|
9537
|
+
@NoticeContentId = params['NoticeContentId']
|
9181
9538
|
end
|
9182
9539
|
end
|
9183
9540
|
|
@@ -9547,7 +9904,7 @@ module TencentCloud
|
|
9547
9904
|
# @type Query: String
|
9548
9905
|
# @param TopicId: 指标主题ID
|
9549
9906
|
# @type TopicId: String
|
9550
|
-
# @param Time: 查询时间,秒级Unix
|
9907
|
+
# @param Time: 查询时间,秒级Unix时间戳。为空时代表当前时间戳。
|
9551
9908
|
# @type Time: Integer
|
9552
9909
|
|
9553
9910
|
attr_accessor :Query, :TopicId, :Time
|
@@ -10701,10 +11058,19 @@ module TencentCloud
|
|
10701
11058
|
# @param Extends: 日志主题扩展信息
|
10702
11059
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10703
11060
|
# @type Extends: :class:`Tencentcloud::Cls.v20201016.models.TopicExtendInfo`
|
11061
|
+
# @param TopicAsyncTaskID: 异步迁移任务ID
|
11062
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11063
|
+
# @type TopicAsyncTaskID: String
|
11064
|
+
# @param MigrationStatus: 异步迁移状态
|
11065
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11066
|
+
# @type MigrationStatus: Integer
|
11067
|
+
# @param EffectiveDate: 异步迁移完成后,预计生效日期
|
11068
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11069
|
+
# @type EffectiveDate: String
|
10704
11070
|
|
10705
|
-
attr_accessor :LogsetId, :TopicId, :TopicName, :PartitionCount, :Index, :AssumerName, :CreateTime, :Status, :Tags, :AutoSplit, :MaxSplitPartitions, :StorageType, :Period, :SubAssumerName, :Describes, :HotPeriod, :BizType, :IsWebTracking, :Extends
|
11071
|
+
attr_accessor :LogsetId, :TopicId, :TopicName, :PartitionCount, :Index, :AssumerName, :CreateTime, :Status, :Tags, :AutoSplit, :MaxSplitPartitions, :StorageType, :Period, :SubAssumerName, :Describes, :HotPeriod, :BizType, :IsWebTracking, :Extends, :TopicAsyncTaskID, :MigrationStatus, :EffectiveDate
|
10706
11072
|
|
10707
|
-
def initialize(logsetid=nil, topicid=nil, topicname=nil, partitioncount=nil, index=nil, assumername=nil, createtime=nil, status=nil, tags=nil, autosplit=nil, maxsplitpartitions=nil, storagetype=nil, period=nil, subassumername=nil, describes=nil, hotperiod=nil, biztype=nil, iswebtracking=nil, extends=nil)
|
11073
|
+
def initialize(logsetid=nil, topicid=nil, topicname=nil, partitioncount=nil, index=nil, assumername=nil, createtime=nil, status=nil, tags=nil, autosplit=nil, maxsplitpartitions=nil, storagetype=nil, period=nil, subassumername=nil, describes=nil, hotperiod=nil, biztype=nil, iswebtracking=nil, extends=nil, topicasynctaskid=nil, migrationstatus=nil, effectivedate=nil)
|
10708
11074
|
@LogsetId = logsetid
|
10709
11075
|
@TopicId = topicid
|
10710
11076
|
@TopicName = topicname
|
@@ -10724,6 +11090,9 @@ module TencentCloud
|
|
10724
11090
|
@BizType = biztype
|
10725
11091
|
@IsWebTracking = iswebtracking
|
10726
11092
|
@Extends = extends
|
11093
|
+
@TopicAsyncTaskID = topicasynctaskid
|
11094
|
+
@MigrationStatus = migrationstatus
|
11095
|
+
@EffectiveDate = effectivedate
|
10727
11096
|
end
|
10728
11097
|
|
10729
11098
|
def deserialize(params)
|
@@ -10756,6 +11125,9 @@ module TencentCloud
|
|
10756
11125
|
@Extends = TopicExtendInfo.new
|
10757
11126
|
@Extends.deserialize(params['Extends'])
|
10758
11127
|
end
|
11128
|
+
@TopicAsyncTaskID = params['TopicAsyncTaskID']
|
11129
|
+
@MigrationStatus = params['MigrationStatus']
|
11130
|
+
@EffectiveDate = params['EffectiveDate']
|
10759
11131
|
end
|
10760
11132
|
end
|
10761
11133
|
|
@@ -10853,27 +11225,35 @@ module TencentCloud
|
|
10853
11225
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10854
11226
|
# @type Method: String
|
10855
11227
|
# @param Headers: 请求头。
|
10856
|
-
#
|
11228
|
+
# 注意:该参数已废弃,请使用NoticeContentId。
|
10857
11229
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10858
11230
|
# @type Headers: Array
|
10859
11231
|
# @param Body: 请求内容。
|
10860
|
-
#
|
11232
|
+
# 注意:该参数已废弃,请使用NoticeContentId。
|
10861
11233
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10862
11234
|
# @type Body: String
|
10863
11235
|
# @param Index: 序号。
|
10864
11236
|
# - 入参无效。
|
10865
11237
|
# - 出参有效。
|
10866
11238
|
# @type Index: Integer
|
11239
|
+
# @param NoticeContentId: 通知内容模板ID。
|
11240
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11241
|
+
# @type NoticeContentId: String
|
11242
|
+
# @param WebCallbackId: 集成配置ID。
|
11243
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11244
|
+
# @type WebCallbackId: String
|
10867
11245
|
|
10868
|
-
attr_accessor :Url, :CallbackType, :Method, :Headers, :Body, :Index
|
11246
|
+
attr_accessor :Url, :CallbackType, :Method, :Headers, :Body, :Index, :NoticeContentId, :WebCallbackId
|
10869
11247
|
|
10870
|
-
def initialize(url=nil, callbacktype=nil, method=nil, headers=nil, body=nil, index=nil)
|
11248
|
+
def initialize(url=nil, callbacktype=nil, method=nil, headers=nil, body=nil, index=nil, noticecontentid=nil, webcallbackid=nil)
|
10871
11249
|
@Url = url
|
10872
11250
|
@CallbackType = callbacktype
|
10873
11251
|
@Method = method
|
10874
11252
|
@Headers = headers
|
10875
11253
|
@Body = body
|
10876
11254
|
@Index = index
|
11255
|
+
@NoticeContentId = noticecontentid
|
11256
|
+
@WebCallbackId = webcallbackid
|
10877
11257
|
end
|
10878
11258
|
|
10879
11259
|
def deserialize(params)
|
@@ -10883,6 +11263,8 @@ module TencentCloud
|
|
10883
11263
|
@Headers = params['Headers']
|
10884
11264
|
@Body = params['Body']
|
10885
11265
|
@Index = params['Index']
|
11266
|
+
@NoticeContentId = params['NoticeContentId']
|
11267
|
+
@WebCallbackId = params['WebCallbackId']
|
10886
11268
|
end
|
10887
11269
|
end
|
10888
11270
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.926
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|