Class: TencentCloud::Live::V20180801::HttpCodeInfo

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

Overview

HTTP返回码和统计数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(httpcode = nil, valuelist = nil) ⇒ HttpCodeInfo

Returns a new instance of HttpCodeInfo.



11156
11157
11158
11159
# File 'lib/v20180801/models.rb', line 11156

def initialize(httpcode=nil, valuelist=nil)
  @HttpCode = httpcode
  @ValueList = valuelist
end

Instance Attribute Details

#HttpCodeObject

例:“2xx”, “3xx”, “4xx”, “5xx”。

Parameters:

  • HttpCode:

    HTTP协议返回码。

  • ValueList:

    统计信息,对于无数据的时间点,会补0。



11154
11155
11156
# File 'lib/v20180801/models.rb', line 11154

def HttpCode
  @HttpCode
end

#ValueListObject

例:“2xx”, “3xx”, “4xx”, “5xx”。

Parameters:

  • HttpCode:

    HTTP协议返回码。

  • ValueList:

    统计信息,对于无数据的时间点,会补0。



11154
11155
11156
# File 'lib/v20180801/models.rb', line 11154

def ValueList
  @ValueList
end

Instance Method Details

#deserialize(params) ⇒ Object



11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
# File 'lib/v20180801/models.rb', line 11161

def deserialize(params)
  @HttpCode = params['HttpCode']
  unless params['ValueList'].nil?
    @ValueList = []
    params['ValueList'].each do |i|
      httpcodevalue_tmp = HttpCodeValue.new
      httpcodevalue_tmp.deserialize(i)
      @ValueList << httpcodevalue_tmp
    end
  end
end