Class: TencentCloud::Waf::V20180125::DescribeFlowTrendResponse

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

Overview

DescribeFlowTrend返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ DescribeFlowTrendResponse

Returns a new instance of DescribeFlowTrendResponse.



5245
5246
5247
5248
# File 'lib/v20180125/models.rb', line 5245

def initialize(data=nil, requestid=nil)
  @Data = data
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    流量趋势数据

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5243
5244
5245
# File 'lib/v20180125/models.rb', line 5243

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    流量趋势数据

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5243
5244
5245
# File 'lib/v20180125/models.rb', line 5243

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
# File 'lib/v20180125/models.rb', line 5250

def deserialize(params)
  unless params['Data'].nil?
    @Data = []
    params['Data'].each do |i|
      botstatpointitem_tmp = BotStatPointItem.new
      botstatpointitem_tmp.deserialize(i)
      @Data << botstatpointitem_tmp
    end
  end
  @RequestId = params['RequestId']
end