Class: TencentCloud::Tke::V20180525::DescribePrometheusAlertPolicyResponse

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

Overview

DescribePrometheusAlertPolicy返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribePrometheusAlertPolicyResponse.



8726
8727
8728
8729
8730
# File 'lib/v20180525/models.rb', line 8726

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

Instance Attribute Details

#AlertRulesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AlertRules:

    告警详情

  • Total:

    总数

  • RequestId:

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



8724
8725
8726
# File 'lib/v20180525/models.rb', line 8724

def AlertRules
  @AlertRules
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AlertRules:

    告警详情

  • Total:

    总数

  • RequestId:

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



8724
8725
8726
# File 'lib/v20180525/models.rb', line 8724

def RequestId
  @RequestId
end

#TotalObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • AlertRules:

    告警详情

  • Total:

    总数

  • RequestId:

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



8724
8725
8726
# File 'lib/v20180525/models.rb', line 8724

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
# File 'lib/v20180525/models.rb', line 8732

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