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.
16271 16272 16273 16274 16275 16276 |
# File 'lib/v20180525/models.rb', line 16271 def initialize(targets=nil, jobname=nil, total=nil, up=nil) @Targets = targets @JobName = jobname @Total = total @Up = up end |
Instance Attribute Details
#JobName ⇒ Object
16269 16270 16271 |
# File 'lib/v20180525/models.rb', line 16269 def JobName @JobName end |
#Targets ⇒ Object
16269 16270 16271 |
# File 'lib/v20180525/models.rb', line 16269 def Targets @Targets end |
#Total ⇒ Object
16269 16270 16271 |
# File 'lib/v20180525/models.rb', line 16269 def Total @Total end |
#Up ⇒ Object
16269 16270 16271 |
# File 'lib/v20180525/models.rb', line 16269 def Up @Up end |
Instance Method Details
#deserialize(params) ⇒ Object
16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 |
# File 'lib/v20180525/models.rb', line 16278 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 |