Class: TencentCloud::Tke::V20180525::PrometheusClusterAgentBasic
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::PrometheusClusterAgentBasic
- Defined in:
- lib/v20180525/models.rb
Overview
与云监控融合托管prometheus实例,关联集群基础信息
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #ClusterType ⇒ Object
- #EnableExternal ⇒ Object
- #ExternalLabels ⇒ Object
- #InClusterPodConfig ⇒ Object
- #NotInstallBasicScrape ⇒ Object
- #NotScrape ⇒ 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) ⇒ 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) ⇒ PrometheusClusterAgentBasic
Returns a new instance of PrometheusClusterAgentBasic.
16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 |
# File 'lib/v20180525/models.rb', line 16337 def initialize(region=nil, clustertype=nil, clusterid=nil, enableexternal=nil, inclusterpodconfig=nil, externallabels=nil, notinstallbasicscrape=nil, notscrape=nil) @Region = region @ClusterType = clustertype @ClusterId = clusterid @EnableExternal = enableexternal @InClusterPodConfig = inclusterpodconfig @ExternalLabels = externallabels @NotInstallBasicScrape = notinstallbasicscrape @NotScrape = notscrape end |
Instance Attribute Details
#ClusterId ⇒ Object
16335 16336 16337 |
# File 'lib/v20180525/models.rb', line 16335 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
16335 16336 16337 |
# File 'lib/v20180525/models.rb', line 16335 def ClusterType @ClusterType end |
#EnableExternal ⇒ Object
16335 16336 16337 |
# File 'lib/v20180525/models.rb', line 16335 def EnableExternal @EnableExternal end |
#ExternalLabels ⇒ Object
16335 16336 16337 |
# File 'lib/v20180525/models.rb', line 16335 def ExternalLabels @ExternalLabels end |
#InClusterPodConfig ⇒ Object
16335 16336 16337 |
# File 'lib/v20180525/models.rb', line 16335 def InClusterPodConfig @InClusterPodConfig end |
#NotInstallBasicScrape ⇒ Object
16335 16336 16337 |
# File 'lib/v20180525/models.rb', line 16335 def NotInstallBasicScrape @NotInstallBasicScrape end |
#NotScrape ⇒ Object
16335 16336 16337 |
# File 'lib/v20180525/models.rb', line 16335 def NotScrape @NotScrape end |
#Region ⇒ Object
16335 16336 16337 |
# File 'lib/v20180525/models.rb', line 16335 def Region @Region end |
Instance Method Details
#deserialize(params) ⇒ Object
16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 |
# File 'lib/v20180525/models.rb', line 16348 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'] end |