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.



4321
4322
4323
4324
4325
4326
4327
4328
# File 'lib/v20221121/models.rb', line 4321

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。



4319
4320
4321
# File 'lib/v20221121/models.rb', line 4319

def AlertList
  @AlertList
end

#AlertTypeCountObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



4319
4320
4321
# File 'lib/v20221121/models.rb', line 4319

def AlertTypeCount
  @AlertTypeCount
end

#RequestIdObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



4319
4320
4321
# File 'lib/v20221121/models.rb', line 4319

def RequestId
  @RequestId
end

#ReturnCodeObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



4319
4320
4321
# File 'lib/v20221121/models.rb', line 4319

def ReturnCode
  @ReturnCode
end

#ReturnMsgObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



4319
4320
4321
# File 'lib/v20221121/models.rb', line 4319

def ReturnMsg
  @ReturnMsg
end

#TotalCountObject

Parameters:

  • AlertList:

    全量告警列表

  • AlertTypeCount:

    告警大类数量

  • TotalCount:

    告警总数

  • ReturnCode:

    0:succeed 1:timeout

  • ReturnMsg:

    返回状态信息

  • RequestId:

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



4319
4320
4321
# File 'lib/v20221121/models.rb', line 4319

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
# File 'lib/v20221121/models.rb', line 4330

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