Class: TencentCloud::Cls::V20201016::DescribeLogHistogramResponse

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

Overview

DescribeLogHistogram返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interval = nil, totalcount = nil, histograminfos = nil, requestid = nil) ⇒ DescribeLogHistogramResponse

Returns a new instance of DescribeLogHistogramResponse.



8996
8997
8998
8999
9000
9001
# File 'lib/v20201016/models.rb', line 8996

def initialize(interval=nil, totalcount=nil, histograminfos=nil, requestid=nil)
  @Interval = interval
  @TotalCount = totalcount
  @HistogramInfos = histograminfos
  @RequestId = requestid
end

Instance Attribute Details

#HistogramInfos ⇒ Object

Parameters:

  • Interval: —

    统计周期: 单位ms

  • TotalCount: —

    命中关键字的日志总条数

  • HistogramInfos: —

    周期内统计结果详情

  • RequestId: —

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



8994
8995
8996
# File 'lib/v20201016/models.rb', line 8994

def HistogramInfos
  @HistogramInfos
end

#Interval ⇒ Object

Parameters:

  • Interval: —

    统计周期: 单位ms

  • TotalCount: —

    命中关键字的日志总条数

  • HistogramInfos: —

    周期内统计结果详情

  • RequestId: —

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



8994
8995
8996
# File 'lib/v20201016/models.rb', line 8994

def Interval
  @Interval
end

#RequestId ⇒ Object

Parameters:

  • Interval: —

    统计周期: 单位ms

  • TotalCount: —

    命中关键字的日志总条数

  • HistogramInfos: —

    周期内统计结果详情

  • RequestId: —

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



8994
8995
8996
# File 'lib/v20201016/models.rb', line 8994

def RequestId
  @RequestId
end

#TotalCount ⇒ Object

Parameters:

  • Interval: —

    统计周期: 单位ms

  • TotalCount: —

    命中关键字的日志总条数

  • HistogramInfos: —

    周期内统计结果详情

  • RequestId: —

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



8994
8995
8996
# File 'lib/v20201016/models.rb', line 8994

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
# File 'lib/v20201016/models.rb', line 9003

def deserialize(params)
  @Interval = params['Interval']
  @TotalCount = params['TotalCount']
  unless params['HistogramInfos'].nil?
    @HistogramInfos = []
    params['HistogramInfos'].each do |i|
      histograminfo_tmp = HistogramInfo.new
      histograminfo_tmp.deserialize(i)
      @HistogramInfos << histograminfo_tmp
    end
  end
  @RequestId = params['RequestId']
end