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.
16307 16308 16309 16310 16311 16312 |
# File 'lib/v20180525/models.rb', line 16307 def initialize(targets=nil, jobname=nil, total=nil, up=nil) @Targets = targets @JobName = jobname @Total = total @Up = up end |
Instance Attribute Details
#JobName ⇒ Object
16305 16306 16307 |
# File 'lib/v20180525/models.rb', line 16305 def JobName @JobName end |
#Targets ⇒ Object
16305 16306 16307 |
# File 'lib/v20180525/models.rb', line 16305 def Targets @Targets end |
#Total ⇒ Object
16305 16306 16307 |
# File 'lib/v20180525/models.rb', line 16305 def Total @Total end |
#Up ⇒ Object
16305 16306 16307 |
# File 'lib/v20180525/models.rb', line 16305 def Up @Up end |
Instance Method Details
#deserialize(params) ⇒ Object
16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 |
# File 'lib/v20180525/models.rb', line 16314 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 |