Class: TencentCloud::Csip::V20221121::DescribeAlertListResponse

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

Overview

DescribeAlertList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alertlist = nil, alerttypecount = nil, totalcount = nil, returncode = nil, returnmsg = nil, requestid = nil) ⇒ DescribeAlertListResponse

Returns a new instance of DescribeAlertListResponse.



2724
2725
2726
2727
2728
2729
2730
2731
# File 'lib/v20221121/models.rb', line 2724

def initialize(alertlist=nil, alerttypecount=nil, totalcount=nil, returncode=nil, returnmsg=nil, requestid=nil)
  @AlertList = alertlist
  @AlertTypeCount = alerttypecount
  @TotalCount = totalcount
  @ReturnCode = returncode
  @ReturnMsg = returnmsg
  @RequestId = requestid
end

Instance Attribute Details

#AlertListObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



2722
2723
2724
# File 'lib/v20221121/models.rb', line 2722

def AlertList
  @AlertList
end

#AlertTypeCountObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



2722
2723
2724
# File 'lib/v20221121/models.rb', line 2722

def AlertTypeCount
  @AlertTypeCount
end

#RequestIdObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



2722
2723
2724
# File 'lib/v20221121/models.rb', line 2722

def RequestId
  @RequestId
end

#ReturnCodeObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



2722
2723
2724
# File 'lib/v20221121/models.rb', line 2722

def ReturnCode
  @ReturnCode
end

#ReturnMsgObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



2722
2723
2724
# File 'lib/v20221121/models.rb', line 2722

def ReturnMsg
  @ReturnMsg
end

#TotalCountObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



2722
2723
2724
# File 'lib/v20221121/models.rb', line 2722

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
# File 'lib/v20221121/models.rb', line 2733

def deserialize(params)
  unless params['AlertList'].nil?
    @AlertList = []
    params['AlertList'].each do |i|
      alertinfo_tmp = AlertInfo.new
      alertinfo_tmp.deserialize(i)
      @AlertList << alertinfo_tmp
    end
  end
  unless params['AlertTypeCount'].nil?
    @AlertTypeCount = []
    params['AlertTypeCount'].each do |i|
      tagcount_tmp = TagCount.new
      tagcount_tmp.deserialize(i)
      @AlertTypeCount << tagcount_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @ReturnCode = params['ReturnCode']
  @ReturnMsg = params['ReturnMsg']
  @RequestId = params['RequestId']
end