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.
18030 18031 18032 18033 18034 18035 |
# File 'lib/v20180525/models.rb', line 18030 def initialize(targets=nil, jobname=nil, total=nil, up=nil) @Targets = targets @JobName = jobname @Total = total @Up = up end |
Instance Attribute Details
#JobName ⇒ Object
18028 18029 18030 |
# File 'lib/v20180525/models.rb', line 18028 def JobName @JobName end |
#Targets ⇒ Object
18028 18029 18030 |
# File 'lib/v20180525/models.rb', line 18028 def Targets @Targets end |
#Total ⇒ Object
18028 18029 18030 |
# File 'lib/v20180525/models.rb', line 18028 def Total @Total end |
#Up ⇒ Object
18028 18029 18030 |
# File 'lib/v20180525/models.rb', line 18028 def Up @Up end |
Instance Method Details
#deserialize(params) ⇒ Object
18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 |
# File 'lib/v20180525/models.rb', line 18037 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 |