Class: TencentCloud::Cls::V20201016::MetricCollectConfig
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::MetricCollectConfig
- Defined in:
- lib/v20201016/models.rb
Overview
指标采集配置
Instance Attribute Summary collapse
-
#ConfigId ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#CreateTime ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Flag ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#GroupIds ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#HonorLabels ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#MetricLabel ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#MetricRelabels ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Name ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Operate ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Scheme ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#ScrapeInterval ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#ScrapeTimeout ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Source ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Spec ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#TopicIds ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Type ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#UpdateTime ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#YamlSpec ⇒ Object
false:配置数据中冲突的标签重命名 -true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(configid = nil, topicids = nil, source = nil, groupids = nil, type = nil, flag = nil, name = nil, spec = nil, metricrelabels = nil, metriclabel = nil, scheme = nil, scrapeinterval = nil, scrapetimeout = nil, honorlabels = nil, yamlspec = nil, operate = nil, createtime = nil, updatetime = nil) ⇒ MetricCollectConfig
constructor
A new instance of MetricCollectConfig.
Constructor Details
#initialize(configid = nil, topicids = nil, source = nil, groupids = nil, type = nil, flag = nil, name = nil, spec = nil, metricrelabels = nil, metriclabel = nil, scheme = nil, scrapeinterval = nil, scrapetimeout = nil, honorlabels = nil, yamlspec = nil, operate = nil, createtime = nil, updatetime = nil) ⇒ MetricCollectConfig
Returns a new instance of MetricCollectConfig.
12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 |
# File 'lib/v20201016/models.rb', line 12781 def initialize(configid=nil, topicids=nil, source=nil, groupids=nil, type=nil, flag=nil, name=nil, spec=nil, metricrelabels=nil, metriclabel=nil, scheme=nil, scrapeinterval=nil, scrapetimeout=nil, honorlabels=nil, yamlspec=nil, operate=nil, createtime=nil, updatetime=nil) @ConfigId = configid @TopicIds = topicids @Source = source @GroupIds = groupids @Type = type @Flag = flag @Name = name @Spec = spec @MetricRelabels = metricrelabels @MetricLabel = metriclabel @Scheme = scheme @ScrapeInterval = scrapeinterval @ScrapeTimeout = scrapetimeout @HonorLabels = honorlabels @YamlSpec = yamlspec @Operate = operate @CreateTime = createtime @UpdateTime = updatetime end |
Instance Attribute Details
#ConfigId ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def ConfigId @ConfigId end |
#CreateTime ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def CreateTime @CreateTime end |
#Flag ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def Flag @Flag end |
#GroupIds ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def GroupIds @GroupIds end |
#HonorLabels ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def HonorLabels @HonorLabels end |
#MetricLabel ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def MetricLabel @MetricLabel end |
#MetricRelabels ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def MetricRelabels @MetricRelabels end |
#Name ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def Name @Name end |
#Operate ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def Operate @Operate end |
#Scheme ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def Scheme @Scheme end |
#ScrapeInterval ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def ScrapeInterval @ScrapeInterval end |
#ScrapeTimeout ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def ScrapeTimeout @ScrapeTimeout end |
#Source ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def Source @Source end |
#Spec ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def Spec @Spec end |
#TopicIds ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def TopicIds @TopicIds end |
#Type ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def Type @Type end |
#UpdateTime ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def UpdateTime @UpdateTime end |
#YamlSpec ⇒ Object
false:配置数据中冲突的标签重命名true:忽略冲突的服务器端标签 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
12779 12780 12781 |
# File 'lib/v20201016/models.rb', line 12779 def YamlSpec @YamlSpec end |
Instance Method Details
#deserialize(params) ⇒ Object
12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 |
# File 'lib/v20201016/models.rb', line 12802 def deserialize(params) @ConfigId = params['ConfigId'] @TopicIds = params['TopicIds'] @Source = params['Source'] @GroupIds = params['GroupIds'] @Type = params['Type'] @Flag = params['Flag'] @Name = params['Name'] unless params['Spec'].nil? @Spec = MetricSpec.new @Spec.deserialize(params['Spec']) end unless params['MetricRelabels'].nil? @MetricRelabels = [] params['MetricRelabels'].each do |i| relabeling_tmp = Relabeling.new relabeling_tmp.deserialize(i) @MetricRelabels << relabeling_tmp end end unless params['MetricLabel'].nil? @MetricLabel = MetricConfigLabel.new @MetricLabel.deserialize(params['MetricLabel']) end @Scheme = params['Scheme'] @ScrapeInterval = params['ScrapeInterval'] @ScrapeTimeout = params['ScrapeTimeout'] @HonorLabels = params['HonorLabels'] unless params['YamlSpec'].nil? @YamlSpec = MetricYamlSpec.new @YamlSpec.deserialize(params['YamlSpec']) end @Operate = params['Operate'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] end |