lib/v20201016/models.rb in tencentcloud-sdk-cls-3.0.560 vs lib/v20201016/models.rb in tencentcloud-sdk-cls-3.0.561
- old
+ new
@@ -1763,21 +1763,24 @@
# @type UpdateStartTime: String
# @param UpdateEndTime: 升级结束时间,建议业务低峰期升级LogListener
# @type UpdateEndTime: String
# @param ServiceLogging: 是否开启服务日志,用于记录因Loglistener 服务自身产生的log,开启后,会创建内部日志集cls_service_logging和日志主题loglistener_status,loglistener_alarm,loglistener_business,不产生计费
# @type ServiceLogging: Boolean
+ # @param MetaTags: 机器组元数据信息列表
+ # @type MetaTags: Array
- attr_accessor :GroupName, :MachineGroupType, :Tags, :AutoUpdate, :UpdateStartTime, :UpdateEndTime, :ServiceLogging
+ attr_accessor :GroupName, :MachineGroupType, :Tags, :AutoUpdate, :UpdateStartTime, :UpdateEndTime, :ServiceLogging, :MetaTags
- def initialize(groupname=nil, machinegrouptype=nil, tags=nil, autoupdate=nil, updatestarttime=nil, updateendtime=nil, servicelogging=nil)
+ def initialize(groupname=nil, machinegrouptype=nil, tags=nil, autoupdate=nil, updatestarttime=nil, updateendtime=nil, servicelogging=nil, metatags=nil)
@GroupName = groupname
@MachineGroupType = machinegrouptype
@Tags = tags
@AutoUpdate = autoupdate
@UpdateStartTime = updatestarttime
@UpdateEndTime = updateendtime
@ServiceLogging = servicelogging
+ @MetaTags = metatags
end
def deserialize(params)
@GroupName = params['GroupName']
unless params['MachineGroupType'].nil?
@@ -1794,10 +1797,18 @@
end
@AutoUpdate = params['AutoUpdate']
@UpdateStartTime = params['UpdateStartTime']
@UpdateEndTime = params['UpdateEndTime']
@ServiceLogging = params['ServiceLogging']
+ unless params['MetaTags'].nil?
+ @MetaTags = []
+ params['MetaTags'].each do |i|
+ metataginfo_tmp = MetaTagInfo.new
+ metataginfo_tmp.deserialize(i)
+ @MetaTags << metataginfo_tmp
+ end
+ end
end
end
# CreateMachineGroup返回参数结构体
class CreateMachineGroupResponse < TencentCloud::Common::AbstractModel
@@ -3895,14 +3906,21 @@
# rfc5424:指定系统日志采集使用RFC5424协议解析日志。
# auto:自动匹配rfc3164或者rfc5424其中一种协议
# 该字段适用于:创建采集规则配置、修改采集规则配置
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ParseProtocol: String
+ # @param MetadataType: 元数据类型,0: 不使用元数据信息,1:使用机器组元数据,2:使用用户自定义元数据,3:使用采集配置路径,
+ # @type MetadataType: Integer
+ # @param PathRegex: 采集配置路径正则表达式,MetadataType为1时必填
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type PathRegex: String
+ # @param MetaTags: 用户自定义元数据信息,MetadataType为2时必填
+ # @type MetaTags: Array
- attr_accessor :TimeKey, :TimeFormat, :Delimiter, :LogRegex, :BeginRegex, :Keys, :FilterKeyRegex, :UnMatchUpLoadSwitch, :UnMatchLogKey, :Backtracking, :IsGBK, :JsonStandard, :Protocol, :Address, :ParseProtocol
+ attr_accessor :TimeKey, :TimeFormat, :Delimiter, :LogRegex, :BeginRegex, :Keys, :FilterKeyRegex, :UnMatchUpLoadSwitch, :UnMatchLogKey, :Backtracking, :IsGBK, :JsonStandard, :Protocol, :Address, :ParseProtocol, :MetadataType, :PathRegex, :MetaTags
- def initialize(timekey=nil, timeformat=nil, delimiter=nil, logregex=nil, beginregex=nil, keys=nil, filterkeyregex=nil, unmatchuploadswitch=nil, unmatchlogkey=nil, backtracking=nil, isgbk=nil, jsonstandard=nil, protocol=nil, address=nil, parseprotocol=nil)
+ def initialize(timekey=nil, timeformat=nil, delimiter=nil, logregex=nil, beginregex=nil, keys=nil, filterkeyregex=nil, unmatchuploadswitch=nil, unmatchlogkey=nil, backtracking=nil, isgbk=nil, jsonstandard=nil, protocol=nil, address=nil, parseprotocol=nil, metadatatype=nil, pathregex=nil, metatags=nil)
@TimeKey = timekey
@TimeFormat = timeformat
@Delimiter = delimiter
@LogRegex = logregex
@BeginRegex = beginregex
@@ -3914,10 +3932,13 @@
@IsGBK = isgbk
@JsonStandard = jsonstandard
@Protocol = protocol
@Address = address
@ParseProtocol = parseprotocol
+ @MetadataType = metadatatype
+ @PathRegex = pathregex
+ @MetaTags = metatags
end
def deserialize(params)
@TimeKey = params['TimeKey']
@TimeFormat = params['TimeFormat']
@@ -3939,10 +3960,20 @@
@IsGBK = params['IsGBK']
@JsonStandard = params['JsonStandard']
@Protocol = params['Protocol']
@Address = params['Address']
@ParseProtocol = params['ParseProtocol']
+ @MetadataType = params['MetadataType']
+ @PathRegex = params['PathRegex']
+ unless params['MetaTags'].nil?
+ @MetaTags = []
+ params['MetaTags'].each do |i|
+ metataginfo_tmp = MetaTagInfo.new
+ metataginfo_tmp.deserialize(i)
+ @MetaTags << metataginfo_tmp
+ end
+ end
end
end
# 过滤器
class Filter < TencentCloud::Common::AbstractModel
@@ -4490,23 +4521,26 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UpdateEndTime: String
# @param ServiceLogging: 是否开启服务日志,用于记录因Loglistener 服务自身产生的log,开启后,会创建内部日志集cls_service_logging和日志主题loglistener_status,loglistener_alarm,loglistener_business,不产生计费
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ServiceLogging: Boolean
+ # @param MetaTags: 机器组元数据信息列表
+ # @type MetaTags: Array
- attr_accessor :GroupId, :GroupName, :MachineGroupType, :CreateTime, :Tags, :AutoUpdate, :UpdateStartTime, :UpdateEndTime, :ServiceLogging
+ attr_accessor :GroupId, :GroupName, :MachineGroupType, :CreateTime, :Tags, :AutoUpdate, :UpdateStartTime, :UpdateEndTime, :ServiceLogging, :MetaTags
- def initialize(groupid=nil, groupname=nil, machinegrouptype=nil, createtime=nil, tags=nil, autoupdate=nil, updatestarttime=nil, updateendtime=nil, servicelogging=nil)
+ def initialize(groupid=nil, groupname=nil, machinegrouptype=nil, createtime=nil, tags=nil, autoupdate=nil, updatestarttime=nil, updateendtime=nil, servicelogging=nil, metatags=nil)
@GroupId = groupid
@GroupName = groupname
@MachineGroupType = machinegrouptype
@CreateTime = createtime
@Tags = tags
@AutoUpdate = autoupdate
@UpdateStartTime = updatestarttime
@UpdateEndTime = updateendtime
@ServiceLogging = servicelogging
+ @MetaTags = metatags
end
def deserialize(params)
@GroupId = params['GroupId']
@GroupName = params['GroupName']
@@ -4525,10 +4559,18 @@
end
@AutoUpdate = params['AutoUpdate']
@UpdateStartTime = params['UpdateStartTime']
@UpdateEndTime = params['UpdateEndTime']
@ServiceLogging = params['ServiceLogging']
+ unless params['MetaTags'].nil?
+ @MetaTags = []
+ params['MetaTags'].each do |i|
+ metataginfo_tmp = MetaTagInfo.new
+ metataginfo_tmp.deserialize(i)
+ @MetaTags << metataginfo_tmp
+ end
+ end
end
end
# 机器组类型描述
class MachineGroupTypeInfo < TencentCloud::Common::AbstractModel
@@ -4639,10 +4681,30 @@
end
@RequestId = params['RequestId']
end
end
+ # 元数据信息
+ class MetaTagInfo < TencentCloud::Common::AbstractModel
+ # @param Key: 元数据key
+ # @type Key: String
+ # @param Value: 元数据value
+ # @type Value: String
+
+ attr_accessor :Key, :Value
+
+ def initialize(key=nil, value=nil)
+ @Key = key
+ @Value = value
+ end
+
+ def deserialize(params)
+ @Key = params['Key']
+ @Value = params['Value']
+ end
+ end
+
# ModifyAlarmNotice请求参数结构体
class ModifyAlarmNoticeRequest < TencentCloud::Common::AbstractModel
# @param AlarmNoticeId: 通知渠道组ID。
# @type AlarmNoticeId: String
# @param Name: 通知渠道组名称。
@@ -5208,22 +5270,25 @@
# @type UpdateStartTime: String
# @param UpdateEndTime: 升级结束时间,建议业务低峰期升级LogListener
# @type UpdateEndTime: String
# @param ServiceLogging: 是否开启服务日志,用于记录因Loglistener 服务自身产生的log,开启后,会创建内部日志集cls_service_logging和日志主题loglistener_status,loglistener_alarm,loglistener_business,不产生计费
# @type ServiceLogging: Boolean
+ # @param MetaTags: 机器组元数据信息列表
+ # @type MetaTags: Array
- attr_accessor :GroupId, :GroupName, :MachineGroupType, :Tags, :AutoUpdate, :UpdateStartTime, :UpdateEndTime, :ServiceLogging
+ attr_accessor :GroupId, :GroupName, :MachineGroupType, :Tags, :AutoUpdate, :UpdateStartTime, :UpdateEndTime, :ServiceLogging, :MetaTags
- def initialize(groupid=nil, groupname=nil, machinegrouptype=nil, tags=nil, autoupdate=nil, updatestarttime=nil, updateendtime=nil, servicelogging=nil)
+ def initialize(groupid=nil, groupname=nil, machinegrouptype=nil, tags=nil, autoupdate=nil, updatestarttime=nil, updateendtime=nil, servicelogging=nil, metatags=nil)
@GroupId = groupid
@GroupName = groupname
@MachineGroupType = machinegrouptype
@Tags = tags
@AutoUpdate = autoupdate
@UpdateStartTime = updatestarttime
@UpdateEndTime = updateendtime
@ServiceLogging = servicelogging
+ @MetaTags = metatags
end
def deserialize(params)
@GroupId = params['GroupId']
@GroupName = params['GroupName']
@@ -5241,9 +5306,17 @@
end
@AutoUpdate = params['AutoUpdate']
@UpdateStartTime = params['UpdateStartTime']
@UpdateEndTime = params['UpdateEndTime']
@ServiceLogging = params['ServiceLogging']
+ unless params['MetaTags'].nil?
+ @MetaTags = []
+ params['MetaTags'].each do |i|
+ metataginfo_tmp = MetaTagInfo.new
+ metataginfo_tmp.deserialize(i)
+ @MetaTags << metataginfo_tmp
+ end
+ end
end
end
# ModifyMachineGroup返回参数结构体
class ModifyMachineGroupResponse < TencentCloud::Common::AbstractModel