Class: TencentCloud::Monitor::V20180724::Targets

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

Overview

抓取目标数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, up = nil, down = nil, unknown = nil) ⇒ Targets

Returns a new instance of Targets.



15061
15062
15063
15064
15065
15066
# File 'lib/v20180724/models.rb', line 15061

def initialize(total=nil, up=nil, down=nil, unknown=nil)
  @Total = total
  @Up = up
  @Down = down
  @Unknown = unknown
end

Instance Attribute Details

#DownObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 总数

  • 在线数

  • 不在线数

  • 未知状态数



15059
15060
15061
# File 'lib/v20180724/models.rb', line 15059

def Down
  @Down
end

#TotalObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 总数

  • 在线数

  • 不在线数

  • 未知状态数



15059
15060
15061
# File 'lib/v20180724/models.rb', line 15059

def Total
  @Total
end

#UnknownObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 总数

  • 在线数

  • 不在线数

  • 未知状态数



15059
15060
15061
# File 'lib/v20180724/models.rb', line 15059

def Unknown
  @Unknown
end

#UpObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • 总数

  • 在线数

  • 不在线数

  • 未知状态数



15059
15060
15061
# File 'lib/v20180724/models.rb', line 15059

def Up
  @Up
end

Instance Method Details

#deserialize(params) ⇒ Object



15068
15069
15070
15071
15072
15073
# File 'lib/v20180724/models.rb', line 15068

def deserialize(params)
  @Total = params['Total']
  @Up = params['Up']
  @Down = params['Down']
  @Unknown = params['Unknown']
end