Class: TencentCloud::Tke::V20180525::DescribePrometheusRecordRulesResponse

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

Overview

DescribePrometheusRecordRules返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(records = nil, total = nil, requestid = nil) ⇒ DescribePrometheusRecordRulesResponse

Returns a new instance of DescribePrometheusRecordRulesResponse.



9374
9375
9376
9377
9378
# File 'lib/v20180525/models.rb', line 9374

def initialize(records=nil, total=nil, requestid=nil)
  @Records = records
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#RecordsObject

Parameters:

  • Records:

    聚合规则

  • Total:

    总数

  • RequestId:

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



9372
9373
9374
# File 'lib/v20180525/models.rb', line 9372

def Records
  @Records
end

#RequestIdObject

Parameters:

  • Records:

    聚合规则

  • Total:

    总数

  • RequestId:

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



9372
9373
9374
# File 'lib/v20180525/models.rb', line 9372

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Records:

    聚合规则

  • Total:

    总数

  • RequestId:

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



9372
9373
9374
# File 'lib/v20180525/models.rb', line 9372

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
# File 'lib/v20180525/models.rb', line 9380

def deserialize(params)
  unless params['Records'].nil?
    @Records = []
    params['Records'].each do |i|
      prometheusrecordruleyamlitem_tmp = PrometheusRecordRuleYamlItem.new
      prometheusrecordruleyamlitem_tmp.deserialize(i)
      @Records << prometheusrecordruleyamlitem_tmp
    end
  end
  @Total = params['Total']
  @RequestId = params['RequestId']
end