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.
15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 |
# File 'lib/v20180525/models.rb', line 15995 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
15993 15994 15995 |
# File 'lib/v20180525/models.rb', line 15993 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
15993 15994 15995 |
# File 'lib/v20180525/models.rb', line 15993 def ClusterType @ClusterType end |
#EnableExternal ⇒ Object
15993 15994 15995 |
# File 'lib/v20180525/models.rb', line 15993 def EnableExternal @EnableExternal end |
#ExternalLabels ⇒ Object
15993 15994 15995 |
# File 'lib/v20180525/models.rb', line 15993 def ExternalLabels @ExternalLabels end |
#InClusterPodConfig ⇒ Object
15993 15994 15995 |
# File 'lib/v20180525/models.rb', line 15993 def InClusterPodConfig @InClusterPodConfig end |
#NotInstallBasicScrape ⇒ Object
15993 15994 15995 |
# File 'lib/v20180525/models.rb', line 15993 def NotInstallBasicScrape @NotInstallBasicScrape end |
#NotScrape ⇒ Object
15993 15994 15995 |
# File 'lib/v20180525/models.rb', line 15993 def NotScrape @NotScrape end |
#Region ⇒ Object
15993 15994 15995 |
# File 'lib/v20180525/models.rb', line 15993 def Region @Region end |
Instance Method Details
#deserialize(params) ⇒ Object
16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 |
# File 'lib/v20180525/models.rb', line 16006 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 |