lib/v20201016/models.rb in tencentcloud-sdk-cls-3.0.711 vs lib/v20201016/models.rb in tencentcloud-sdk-cls-3.0.712

- old
+ new

@@ -77,10 +77,30 @@ @Key = params['Key'] @Value = params['Value'] end end + # 告警分类信息 + class AlarmClassification < TencentCloud::Common::AbstractModel + # @param Key: 分类键 + # @type Key: String + # @param 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 + # 告警策略描述 class AlarmInfo < TencentCloud::Common::AbstractModel # @param Name: 告警策略名称。 # @type Name: String # @param AlarmTargets: 监控对象列表。 @@ -1446,10 +1466,12 @@ # @type MultiConditions: Array # @param Status: 是否开启告警策略。 # 默认值为true # @type Status: Boolean + # @param Enable: 是否开启告警策略。默认值为true + # @type Enable: Boolean # @param MessageTemplate: 用户自定义告警内容 # @type MessageTemplate: String # @param CallBack: 用户自定义回调 # @type CallBack: :class:`Tencentcloud::Cls.v20201016.models.CallBackInfo` # @param Analysis: 多维分析 @@ -1468,31 +1490,41 @@ # 不填则默认为0。 # 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 # @type MonitorObjectType: Integer + # @param Classifications: 告警附加分类信息列表。 - attr_accessor :Name, :AlarmTargets, :MonitorTime, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Condition, :AlarmLevel, :MultiConditions, :Status, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :Tags, :MonitorObjectType + # Classifications元素个数不能超过20个。 - def initialize(name=nil, alarmtargets=nil, monitortime=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, condition=nil, alarmlevel=nil, multiconditions=nil, status=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil) + # Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,字符规则 ^[a-z]([a-z0-9_]{0,49})$。 + + # Classifications元素的Value长度不能超过200个字符。 + # @type Classifications: Array + + attr_accessor :Name, :AlarmTargets, :MonitorTime, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Condition, :AlarmLevel, :MultiConditions, :Status, :Enable, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :Tags, :MonitorObjectType, :Classifications + + def initialize(name=nil, alarmtargets=nil, monitortime=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, condition=nil, alarmlevel=nil, multiconditions=nil, status=nil, enable=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil, classifications=nil) @Name = name @AlarmTargets = alarmtargets @MonitorTime = monitortime @TriggerCount = triggercount @AlarmPeriod = alarmperiod @AlarmNoticeIds = alarmnoticeids @Condition = condition @AlarmLevel = alarmlevel @MultiConditions = multiconditions @Status = status + @Enable = enable @MessageTemplate = messagetemplate @CallBack = callback @Analysis = analysis @GroupTriggerStatus = grouptriggerstatus @GroupTriggerCondition = grouptriggercondition @Tags = tags @MonitorObjectType = monitorobjecttype + @Classifications = classifications end def deserialize(params) @Name = params['Name'] unless params['AlarmTargets'].nil? @@ -1519,10 +1551,11 @@ multicondition_tmp.deserialize(i) @MultiConditions << multicondition_tmp end end @Status = params['Status'] + @Enable = params['Enable'] @MessageTemplate = params['MessageTemplate'] unless params['CallBack'].nil? @CallBack = CallBackInfo.new @CallBack.deserialize(params['CallBack']) end @@ -1543,10 +1576,18 @@ tag_tmp.deserialize(i) @Tags << tag_tmp end end @MonitorObjectType = params['MonitorObjectType'] + unless params['Classifications'].nil? + @Classifications = [] + params['Classifications'].each do |i| + alarmclassification_tmp = AlarmClassification.new + alarmclassification_tmp.deserialize(i) + @Classifications << alarmclassification_tmp + end + end end end # CreateAlarm返回参数结构体 class CreateAlarmResponse < TencentCloud::Common::AbstractModel @@ -2518,11 +2559,11 @@ # @param Describes: 日志主题描述 # @type Describes: String # @param HotPeriod: 0:关闭日志沉降。 # 非0:开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。仅在StorageType为 hot 时生效 # @type HotPeriod: Integer - # @param IsWebTracking: webtracking开关; false: 关闭 true: 开启 + # @param IsWebTracking: 免鉴权开关; false: 关闭 true: 开启 # @type IsWebTracking: Boolean attr_accessor :LogsetId, :TopicName, :PartitionCount, :Tags, :AutoSplit, :MaxSplitPartitions, :StorageType, :Period, :Describes, :HotPeriod, :IsWebTracking def initialize(logsetid=nil, topicname=nil, partitioncount=nil, tags=nil, autosplit=nil, maxsplitpartitions=nil, storagetype=nil, period=nil, describes=nil, hotperiod=nil, iswebtracking=nil) @@ -6339,10 +6380,32 @@ @Key = params['Key'] @Value = params['Value'] end end + # 过滤器 + class MetricLabel < TencentCloud::Common::AbstractModel + # @param Key: 指标名称 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Key: String + # @param Value: 指标内容 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @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: 通知渠道组名称。 @@ -6455,27 +6518,36 @@ # @type AlarmNoticeIds: Array # @param AlarmTargets: 监控对象列表。 # @type AlarmTargets: Array # @param Status: 是否开启告警策略。 # @type Status: Boolean + # @param Enable: 是否开启告警策略。默认值为true + # @type Enable: Boolean # @param MessageTemplate: 用户自定义告警内容 # @type MessageTemplate: String # @param CallBack: 用户自定义回调 # @type CallBack: :class:`Tencentcloud::Cls.v20201016.models.CallBackInfo` # @param Analysis: 多维分析 # @type Analysis: Array # @param GroupTriggerStatus: 分组触发状态。true:开启,false:关闭(默认) # @type GroupTriggerStatus: Boolean # @param GroupTriggerCondition: 分组触发条件。 # @type GroupTriggerCondition: Array + # @param Tags: 标签描述列表,通过指定该参数可以同时绑定标签到相应的告警策略。最大支持10个标签键值对,并且不能有重复的键值对。 + # @type Tags: Array # @param MonitorObjectType: 监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 - # <li> 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 + # 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。 # @type MonitorObjectType: Integer + # @param Classifications: 告警附加分类信息列表。 + # Classifications元素个数不能超过20个。 + # Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 `^[a-z]([a-z0-9_]{0,49})$`。 + # Classifications元素的Value长度不能超过200个字符。 + # @type Classifications: Array - attr_accessor :AlarmId, :Name, :MonitorTime, :Condition, :AlarmLevel, :MultiConditions, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :AlarmTargets, :Status, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :MonitorObjectType + attr_accessor :AlarmId, :Name, :MonitorTime, :Condition, :AlarmLevel, :MultiConditions, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :AlarmTargets, :Status, :Enable, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :Tags, :MonitorObjectType, :Classifications - def initialize(alarmid=nil, name=nil, monitortime=nil, condition=nil, alarmlevel=nil, multiconditions=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, alarmtargets=nil, status=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, monitorobjecttype=nil) + def initialize(alarmid=nil, name=nil, monitortime=nil, condition=nil, alarmlevel=nil, multiconditions=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, alarmtargets=nil, status=nil, enable=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil, classifications=nil) @AlarmId = alarmid @Name = name @MonitorTime = monitortime @Condition = condition @AlarmLevel = alarmlevel @@ -6483,16 +6555,19 @@ @TriggerCount = triggercount @AlarmPeriod = alarmperiod @AlarmNoticeIds = alarmnoticeids @AlarmTargets = alarmtargets @Status = status + @Enable = enable @MessageTemplate = messagetemplate @CallBack = callback @Analysis = analysis @GroupTriggerStatus = grouptriggerstatus @GroupTriggerCondition = grouptriggercondition + @Tags = tags @MonitorObjectType = monitorobjecttype + @Classifications = classifications end def deserialize(params) @AlarmId = params['AlarmId'] @Name = params['Name'] @@ -6520,10 +6595,11 @@ alarmtarget_tmp.deserialize(i) @AlarmTargets << alarmtarget_tmp end end @Status = params['Status'] + @Enable = params['Enable'] @MessageTemplate = params['MessageTemplate'] unless params['CallBack'].nil? @CallBack = CallBackInfo.new @CallBack.deserialize(params['CallBack']) end @@ -6535,11 +6611,27 @@ @Analysis << analysisdimensional_tmp end end @GroupTriggerStatus = params['GroupTriggerStatus'] @GroupTriggerCondition = params['GroupTriggerCondition'] + unless params['Tags'].nil? + @Tags = [] + params['Tags'].each do |i| + tag_tmp = Tag.new + tag_tmp.deserialize(i) + @Tags << tag_tmp + end + end @MonitorObjectType = params['MonitorObjectType'] + unless params['Classifications'].nil? + @Classifications = [] + params['Classifications'].each do |i| + alarmclassification_tmp = AlarmClassification.new + alarmclassification_tmp.deserialize(i) + @Classifications << alarmclassification_tmp + end + end end end # ModifyAlarm返回参数结构体 class ModifyAlarmResponse < TencentCloud::Common::AbstractModel @@ -8116,25 +8208,49 @@ # @type Region: String # @param BizType: 主题类型:0为日志主题,1为指标主题 # @type BizType: Integer # @param MetricName: 指标名称 # @type MetricName: String + # @param MetricNames: 指标名称 + # BizType为1时,优先使用MetricNames字段信息。多指标只能填充到MetricNames字段,单指标建议填充到MetricNames字段 + # @type MetricNames: Array + # @param MetricLabels: 指标项 + # @type MetricLabels: Array + # @param CustomTime: 自定义时间 + # @type CustomTime: String + # @param CustomMetricLabels: 自定义标签 + # @type CustomMetricLabels: Array - attr_accessor :TopicId, :Region, :BizType, :MetricName + attr_accessor :TopicId, :Region, :BizType, :MetricName, :MetricNames, :MetricLabels, :CustomTime, :CustomMetricLabels - def initialize(topicid=nil, region=nil, biztype=nil, metricname=nil) + def initialize(topicid=nil, region=nil, biztype=nil, metricname=nil, metricnames=nil, metriclabels=nil, customtime=nil, custommetriclabels=nil) @TopicId = topicid @Region = region @BizType = biztype @MetricName = metricname + @MetricNames = metricnames + @MetricLabels = metriclabels + @CustomTime = customtime + @CustomMetricLabels = custommetriclabels end def deserialize(params) @TopicId = params['TopicId'] @Region = params['Region'] @BizType = params['BizType'] @MetricName = params['MetricName'] + @MetricNames = params['MetricNames'] + @MetricLabels = params['MetricLabels'] + @CustomTime = params['CustomTime'] + unless params['CustomMetricLabels'].nil? + @CustomMetricLabels = [] + params['CustomMetricLabels'].each do |i| + metriclabel_tmp = MetricLabel.new + metriclabel_tmp.deserialize(i) + @CustomMetricLabels << metriclabel_tmp + end + end end end # ScheduledSql任务详情 class ScheduledSqlTaskInfo < TencentCloud::Common::AbstractModel @@ -8876,14 +8992,24 @@ # @type Describes: String # @param HotPeriod: 开启日志沉降,热存储的生命周期, hotPeriod < Period。 # 热存储为 hotPeriod, 冷存储则为 Period-hotPeriod。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type HotPeriod: Integer + # @param BizType: 主题类型。 + # - 0: 日志主题 + # - 1: 指标主题 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type BizType: Integer + # @param IsWebTracking: 免鉴权开关。 + # - false: 关闭 + # - true: 开启 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type IsWebTracking: Boolean - attr_accessor :LogsetId, :TopicId, :TopicName, :PartitionCount, :Index, :AssumerName, :CreateTime, :Status, :Tags, :AutoSplit, :MaxSplitPartitions, :StorageType, :Period, :SubAssumerName, :Describes, :HotPeriod + attr_accessor :LogsetId, :TopicId, :TopicName, :PartitionCount, :Index, :AssumerName, :CreateTime, :Status, :Tags, :AutoSplit, :MaxSplitPartitions, :StorageType, :Period, :SubAssumerName, :Describes, :HotPeriod, :BizType, :IsWebTracking - 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) + 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) @LogsetId = logsetid @TopicId = topicid @TopicName = topicname @PartitionCount = partitioncount @Index = index @@ -8896,10 +9022,12 @@ @StorageType = storagetype @Period = period @SubAssumerName = subassumername @Describes = describes @HotPeriod = hotperiod + @BizType = biztype + @IsWebTracking = iswebtracking end def deserialize(params) @LogsetId = params['LogsetId'] @TopicId = params['TopicId'] @@ -8922,9 +9050,11 @@ @StorageType = params['StorageType'] @Period = params['Period'] @SubAssumerName = params['SubAssumerName'] @Describes = params['Describes'] @HotPeriod = params['HotPeriod'] + @BizType = params['BizType'] + @IsWebTracking = params['IsWebTracking'] end end # UploadLog请求参数结构体 class UploadLogRequest < TencentCloud::Common::AbstractModel