Class: TencentCloud::Tke::V20180525::PrometheusJobTargets

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

prometheus一个job的targets

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#JobNameObject

Parameters:

  • Targets:

    该Job的targets列表

  • JobName:

    job的名称

  • Total:

    targets总数

  • Up:

    健康的target总数



16269
16270
16271
# File 'lib/v20180525/models.rb', line 16269

def JobName
  @JobName
end

#TargetsObject

Parameters:

  • Targets:

    该Job的targets列表

  • JobName:

    job的名称

  • Total:

    targets总数

  • Up:

    健康的target总数



16269
16270
16271
# File 'lib/v20180525/models.rb', line 16269

def Targets
  @Targets
end

#TotalObject

Parameters:

  • Targets:

    该Job的targets列表

  • JobName:

    job的名称

  • Total:

    targets总数

  • Up:

    健康的target总数



16269
16270
16271
# File 'lib/v20180525/models.rb', line 16269

def Total
  @Total
end

#UpObject

Parameters:

  • Targets:

    该Job的targets列表

  • JobName:

    job的名称

  • Total:

    targets总数

  • Up:

    健康的target总数



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