Class: TencentCloud::Tke::V20180525::DescribePrometheusAlertRuleResponse

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

Overview

DescribePrometheusAlertRule返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alertrules = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAlertRuleResponse

Returns a new instance of DescribePrometheusAlertRuleResponse.



8815
8816
8817
8818
8819
# File 'lib/v20180525/models.rb', line 8815

def initialize(alertrules=nil, total=nil, requestid=nil)
  @AlertRules = alertrules
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#AlertRulesObject

Parameters:

  • AlertRules:

    告警详情

  • Total:

    总数

  • RequestId:

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



8813
8814
8815
# File 'lib/v20180525/models.rb', line 8813

def AlertRules
  @AlertRules
end

#RequestIdObject

Parameters:

  • AlertRules:

    告警详情

  • Total:

    总数

  • RequestId:

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



8813
8814
8815
# File 'lib/v20180525/models.rb', line 8813

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • AlertRules:

    告警详情

  • Total:

    总数

  • RequestId:

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



8813
8814
8815
# File 'lib/v20180525/models.rb', line 8813

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
# File 'lib/v20180525/models.rb', line 8821

def deserialize(params)
  unless params['AlertRules'].nil?
    @AlertRules = []
    params['AlertRules'].each do |i|
      prometheusalertruledetail_tmp = PrometheusAlertRuleDetail.new
      prometheusalertruledetail_tmp.deserialize(i)
      @AlertRules << prometheusalertruledetail_tmp
    end
  end
  @Total = params['Total']
  @RequestId = params['RequestId']
end