Class: TencentCloud::Mna::V20210119::FlowDetails
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mna::V20210119::FlowDetails
- Defined in:
- lib/v20210119/models.rb
Overview
设备流量信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(netdetails = nil, deviceid = nil, maxvalue = nil, avgvalue = nil, totalvalue = nil) ⇒ FlowDetails
constructor
A new instance of FlowDetails.
Constructor Details
#initialize(netdetails = nil, deviceid = nil, maxvalue = nil, avgvalue = nil, totalvalue = nil) ⇒ FlowDetails
Returns a new instance of FlowDetails.
787 788 789 790 791 792 793 |
# File 'lib/v20210119/models.rb', line 787 def initialize(netdetails=nil, deviceid=nil, maxvalue=nil, avgvalue=nil, totalvalue=nil) @NetDetails = netdetails @DeviceId = deviceid @MaxValue = maxvalue @AvgValue = avgvalue @TotalValue = totalvalue end |
Instance Attribute Details
#AvgValue ⇒ Object
785 786 787 |
# File 'lib/v20210119/models.rb', line 785 def AvgValue @AvgValue end |
#DeviceId ⇒ Object
785 786 787 |
# File 'lib/v20210119/models.rb', line 785 def DeviceId @DeviceId end |
#MaxValue ⇒ Object
785 786 787 |
# File 'lib/v20210119/models.rb', line 785 def MaxValue @MaxValue end |
#NetDetails ⇒ Object
785 786 787 |
# File 'lib/v20210119/models.rb', line 785 def NetDetails @NetDetails end |
#TotalValue ⇒ Object
785 786 787 |
# File 'lib/v20210119/models.rb', line 785 def TotalValue @TotalValue end |
Instance Method Details
#deserialize(params) ⇒ Object
795 796 797 798 799 800 801 802 803 804 805 806 807 808 |
# File 'lib/v20210119/models.rb', line 795 def deserialize(params) unless params['NetDetails'].nil? @NetDetails = [] params['NetDetails'].each do |i| netdetails_tmp = NetDetails.new netdetails_tmp.deserialize(i) @NetDetails << netdetails_tmp end end @DeviceId = params['DeviceId'] @MaxValue = params['MaxValue'] @AvgValue = params['AvgValue'] @TotalValue = params['TotalValue'] end |