Class: TencentCloud::Mna::V20210119::FlowDetails

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

Overview

设备流量信息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#AvgValueObject

Parameters:

  • NetDetails:

    流量数据点

  • DeviceId:

    设备ID

  • MaxValue:

    流量最大值(单位:bytes)

  • AvgValue:

    流量平均值(单位:bytes)

  • TotalValue:

    流量总值(单位:bytes)



785
786
787
# File 'lib/v20210119/models.rb', line 785

def AvgValue
  @AvgValue
end

#DeviceIdObject

Parameters:

  • NetDetails:

    流量数据点

  • DeviceId:

    设备ID

  • MaxValue:

    流量最大值(单位:bytes)

  • AvgValue:

    流量平均值(单位:bytes)

  • TotalValue:

    流量总值(单位:bytes)



785
786
787
# File 'lib/v20210119/models.rb', line 785

def DeviceId
  @DeviceId
end

#MaxValueObject

Parameters:

  • NetDetails:

    流量数据点

  • DeviceId:

    设备ID

  • MaxValue:

    流量最大值(单位:bytes)

  • AvgValue:

    流量平均值(单位:bytes)

  • TotalValue:

    流量总值(单位:bytes)



785
786
787
# File 'lib/v20210119/models.rb', line 785

def MaxValue
  @MaxValue
end

#NetDetailsObject

Parameters:

  • NetDetails:

    流量数据点

  • DeviceId:

    设备ID

  • MaxValue:

    流量最大值(单位:bytes)

  • AvgValue:

    流量平均值(单位:bytes)

  • TotalValue:

    流量总值(单位:bytes)



785
786
787
# File 'lib/v20210119/models.rb', line 785

def NetDetails
  @NetDetails
end

#TotalValueObject

Parameters:

  • NetDetails:

    流量数据点

  • DeviceId:

    设备ID

  • MaxValue:

    流量最大值(单位:bytes)

  • AvgValue:

    流量平均值(单位:bytes)

  • TotalValue:

    流量总值(单位:bytes)



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