Class: TencentCloud::Monitor::V20180724::PrometheusClusterAgentBasic
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::PrometheusClusterAgentBasic
- Defined in:
- lib/v20180724/models.rb
Overview
与腾讯云可观测平台融合托管 Prometheus 实例,关联集群基础信息
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #ClusterType ⇒ Object
- #DropAll ⇒ Object
- #EnableExternal ⇒ Object
- #ExternalLabels ⇒ Object
- #InClusterPodConfig ⇒ Object
- #NotInstallBasicScrape ⇒ Object
- #NotScrape ⇒ Object
- #OpenDefaultRecord ⇒ Object
- #Region ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(region = nil, clustertype = nil, clusterid = nil, enableexternal = nil, inclusterpodconfig = nil, externallabels = nil, notinstallbasicscrape = nil, notscrape = nil, dropall = nil, opendefaultrecord = nil) ⇒ PrometheusClusterAgentBasic
constructor
A new instance of PrometheusClusterAgentBasic.
Constructor Details
#initialize(region = nil, clustertype = nil, clusterid = nil, enableexternal = nil, inclusterpodconfig = nil, externallabels = nil, notinstallbasicscrape = nil, notscrape = nil, dropall = nil, opendefaultrecord = nil) ⇒ PrometheusClusterAgentBasic
Returns a new instance of PrometheusClusterAgentBasic.
13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 |
# File 'lib/v20180724/models.rb', line 13226 def initialize(region=nil, clustertype=nil, clusterid=nil, enableexternal=nil, inclusterpodconfig=nil, externallabels=nil, notinstallbasicscrape=nil, notscrape=nil, dropall=nil, opendefaultrecord=nil) @Region = region @ClusterType = clustertype @ClusterId = clusterid @EnableExternal = enableexternal @InClusterPodConfig = inclusterpodconfig @ExternalLabels = externallabels @NotInstallBasicScrape = notinstallbasicscrape @NotScrape = notscrape @DropAll = dropall @OpenDefaultRecord = opendefaultrecord end |
Instance Attribute Details
#ClusterId ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def ClusterType @ClusterType end |
#DropAll ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def DropAll @DropAll end |
#EnableExternal ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def EnableExternal @EnableExternal end |
#ExternalLabels ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def ExternalLabels @ExternalLabels end |
#InClusterPodConfig ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def InClusterPodConfig @InClusterPodConfig end |
#NotInstallBasicScrape ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def NotInstallBasicScrape @NotInstallBasicScrape end |
#NotScrape ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def NotScrape @NotScrape end |
#OpenDefaultRecord ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def OpenDefaultRecord @OpenDefaultRecord end |
#Region ⇒ Object
13224 13225 13226 |
# File 'lib/v20180724/models.rb', line 13224 def Region @Region end |
Instance Method Details
#deserialize(params) ⇒ Object
13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 |
# File 'lib/v20180724/models.rb', line 13239 def deserialize(params) @Region = params['Region'] @ClusterType = params['ClusterType'] @ClusterId = params['ClusterId'] @EnableExternal = params['EnableExternal'] unless params['InClusterPodConfig'].nil? @InClusterPodConfig = PrometheusClusterAgentPodConfig.new @InClusterPodConfig.deserialize(params['InClusterPodConfig']) end unless params['ExternalLabels'].nil? @ExternalLabels = [] params['ExternalLabels'].each do |i| label_tmp = Label.new label_tmp.deserialize(i) @ExternalLabels << label_tmp end end @NotInstallBasicScrape = params['NotInstallBasicScrape'] @NotScrape = params['NotScrape'] @DropAll = params['DropAll'] @OpenDefaultRecord = params['OpenDefaultRecord'] end |