Class: TencentCloud::Cws::V20180312::DescribeMonitorsResponse

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

Overview

DescribeMonitors返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(monitors = nil, totalcount = nil, requestid = nil) ⇒ DescribeMonitorsResponse

Returns a new instance of DescribeMonitorsResponse.



396
397
398
399
400
# File 'lib/v20180312/models.rb', line 396

def initialize(monitors=nil, totalcount=nil, requestid=nil)
  @Monitors = monitors
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#MonitorsObject

Parameters:

  • Monitors:

    监控任务列表。

  • TotalCount:

    监控任务数量。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



394
395
396
# File 'lib/v20180312/models.rb', line 394

def Monitors
  @Monitors
end

#RequestIdObject

Parameters:

  • Monitors:

    监控任务列表。

  • TotalCount:

    监控任务数量。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



394
395
396
# File 'lib/v20180312/models.rb', line 394

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • Monitors:

    监控任务列表。

  • TotalCount:

    监控任务数量。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



394
395
396
# File 'lib/v20180312/models.rb', line 394

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



402
403
404
405
406
407
408
409
410
411
412
413
# File 'lib/v20180312/models.rb', line 402

def deserialize(params)
  unless params['Monitors'].nil?
    @Monitors = []
    params['Monitors'].each do |i|
      monitorsdetail_tmp = MonitorsDetail.new
      monitorsdetail_tmp.deserialize(i)
      @Monitors << monitorsdetail_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end