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.
17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 |
# File 'lib/v20180525/models.rb', line 17754 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
17752 17753 17754 |
# File 'lib/v20180525/models.rb', line 17752 def ClusterId @ClusterId end |
#ClusterType ⇒ Object
17752 17753 17754 |
# File 'lib/v20180525/models.rb', line 17752 def ClusterType @ClusterType end |
#EnableExternal ⇒ Object
17752 17753 17754 |
# File 'lib/v20180525/models.rb', line 17752 def EnableExternal @EnableExternal end |
#ExternalLabels ⇒ Object
17752 17753 17754 |
# File 'lib/v20180525/models.rb', line 17752 def ExternalLabels @ExternalLabels end |
#InClusterPodConfig ⇒ Object
17752 17753 17754 |
# File 'lib/v20180525/models.rb', line 17752 def InClusterPodConfig @InClusterPodConfig end |
#NotInstallBasicScrape ⇒ Object
17752 17753 17754 |
# File 'lib/v20180525/models.rb', line 17752 def NotInstallBasicScrape @NotInstallBasicScrape end |
#NotScrape ⇒ Object
17752 17753 17754 |
# File 'lib/v20180525/models.rb', line 17752 def NotScrape @NotScrape end |
#Region ⇒ Object
17752 17753 17754 |
# File 'lib/v20180525/models.rb', line 17752 def Region @Region end |
Instance Method Details
#deserialize(params) ⇒ Object
17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 |
# File 'lib/v20180525/models.rb', line 17765 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 |