class TencentCloud::Tke::V20180525::PrometheusAlertRule

Prometheus告警规则

def deserialize(params)

def deserialize(params)
  @Name = params['Name']
  @Rule = params['Rule']
  unless params['Labels'].nil?
    @Labels = []
    params['Labels'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @Labels << label_tmp
    end
  end
  @Template = params['Template']
  @For = params['For']
  @Describe = params['Describe']
  unless params['Annotations'].nil?
    @Annotations = []
    params['Annotations'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @Annotations << label_tmp
    end
  end
  @RuleState = params['RuleState']
end

def initialize(name=nil, rule=nil, labels=nil, template=nil, _for=nil, describe=nil, annotations=nil, rulestate=nil)

def initialize(name=nil, rule=nil, labels=nil, template=nil, _for=nil, describe=nil, annotations=nil, rulestate=nil)
  @Name = name
  @Rule = rule
  @Labels = labels
  @Template = template
  @For = _for
  @Describe = describe
  @Annotations = annotations
  @RuleState = rulestate
end