Class: TencentCloud::Monitor::V20180724::PrometheusJobTargets
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::PrometheusJobTargets
- Defined in:
- lib/v20180724/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.
13833 13834 13835 13836 13837 13838 |
# File 'lib/v20180724/models.rb', line 13833 def initialize(targets=nil, jobname=nil, total=nil, up=nil) @Targets = targets @JobName = jobname @Total = total @Up = up end |
Instance Attribute Details
#JobName ⇒ Object
13831 13832 13833 |
# File 'lib/v20180724/models.rb', line 13831 def JobName @JobName end |
#Targets ⇒ Object
13831 13832 13833 |
# File 'lib/v20180724/models.rb', line 13831 def Targets @Targets end |
#Total ⇒ Object
13831 13832 13833 |
# File 'lib/v20180724/models.rb', line 13831 def Total @Total end |
#Up ⇒ Object
13831 13832 13833 |
# File 'lib/v20180724/models.rb', line 13831 def Up @Up end |
Instance Method Details
#deserialize(params) ⇒ Object
13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 |
# File 'lib/v20180724/models.rb', line 13840 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 |