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



8947
8948
8949
8950
8951
# File 'lib/v20180525/models.rb', line 8947

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

Instance Attribute Details

#AlertRulesObject



8945
8946
8947
# File 'lib/v20180525/models.rb', line 8945

def AlertRules
  @AlertRules
end

#RequestIdObject



8945
8946
8947
# File 'lib/v20180525/models.rb', line 8945

def RequestId
  @RequestId
end

#TotalObject



8945
8946
8947
# File 'lib/v20180525/models.rb', line 8945

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
# File 'lib/v20180525/models.rb', line 8953

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