Class: TencentCloud::Tke::V20180525::PrometheusJobTargets
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::PrometheusJobTargets
- Defined in:
- lib/v20180525/models.rb
Overview
prometheus一个job的targets
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(targets = nil, jobname = nil, total = nil, up = nil) ⇒ PrometheusJobTargets
constructor
A new instance of PrometheusJobTargets.
Constructor Details
#initialize(targets = nil, jobname = nil, total = nil, up = nil) ⇒ PrometheusJobTargets
Returns a new instance of PrometheusJobTargets.
16613 16614 16615 16616 16617 16618 |
# File 'lib/v20180525/models.rb', line 16613 def initialize(targets=nil, jobname=nil, total=nil, up=nil) @Targets = targets @JobName = jobname @Total = total @Up = up end |
Instance Attribute Details
#JobName ⇒ Object
16611 16612 16613 |
# File 'lib/v20180525/models.rb', line 16611 def JobName @JobName end |
#Targets ⇒ Object
16611 16612 16613 |
# File 'lib/v20180525/models.rb', line 16611 def Targets @Targets end |
#Total ⇒ Object
16611 16612 16613 |
# File 'lib/v20180525/models.rb', line 16611 def Total @Total end |
#Up ⇒ Object
16611 16612 16613 |
# File 'lib/v20180525/models.rb', line 16611 def Up @Up end |
Instance Method Details
#deserialize(params) ⇒ Object
16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 |
# File 'lib/v20180525/models.rb', line 16620 def deserialize(params) unless params['Targets'].nil? @Targets = [] params['Targets'].each do |i| prometheustarget_tmp = PrometheusTarget.new prometheustarget_tmp.deserialize(i) @Targets << prometheustarget_tmp end end @JobName = params['JobName'] @Total = params['Total'] @Up = params['Up'] end |