Class: TencentCloud::Cls::V20201016::DescribeAlertRecordHistoryResponse

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

Overview

DescribeAlertRecordHistory返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, records = nil, requestid = nil) ⇒ DescribeAlertRecordHistoryResponse

Returns a new instance of DescribeAlertRecordHistoryResponse.



6988
6989
6990
6991
6992
# File 'lib/v20201016/models.rb', line 6988

def initialize(totalcount=nil, records=nil, requestid=nil)
  @TotalCount = totalcount
  @Records = records
  @RequestId = requestid
end

Instance Attribute Details

#Records ⇒ Object

Parameters:

  • TotalCount: —

    告警历史总数

  • Records: —

    告警历史详情

  • RequestId: —

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



6986
6987
6988
# File 'lib/v20201016/models.rb', line 6986

def Records
  @Records
end

#RequestId ⇒ Object

Parameters:

  • TotalCount: —

    告警历史总数

  • Records: —

    告警历史详情

  • RequestId: —

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



6986
6987
6988
# File 'lib/v20201016/models.rb', line 6986

def RequestId
  @RequestId
end

#TotalCount ⇒ Object

Parameters:

  • TotalCount: —

    告警历史总数

  • Records: —

    告警历史详情

  • RequestId: —

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



6986
6987
6988
# File 'lib/v20201016/models.rb', line 6986

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
# File 'lib/v20201016/models.rb', line 6994

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Records'].nil?
    @Records = []
    params['Records'].each do |i|
      alerthistoryrecord_tmp = AlertHistoryRecord.new
      alerthistoryrecord_tmp.deserialize(i)
      @Records << alerthistoryrecord_tmp
    end
  end
  @RequestId = params['RequestId']
end