Class: TencentCloud::Tke::V20180525::ModifyPrometheusAlertRuleRequest

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

Overview

ModifyPrometheusAlertRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, alertrule = nil) ⇒ ModifyPrometheusAlertRuleRequest

Returns a new instance of ModifyPrometheusAlertRuleRequest.



14565
14566
14567
14568
# File 'lib/v20180525/models.rb', line 14565

def initialize(instanceid=nil, alertrule=nil)
  @InstanceId = instanceid
  @AlertRule = alertrule
end

Instance Attribute Details

#AlertRuleObject

Parameters:

  • InstanceId:

    实例id

  • AlertRule:

    告警配置



14563
14564
14565
# File 'lib/v20180525/models.rb', line 14563

def AlertRule
  @AlertRule
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例id

  • AlertRule:

    告警配置



14563
14564
14565
# File 'lib/v20180525/models.rb', line 14563

def InstanceId
  @InstanceId
end

Instance Method Details

#deserialize(params) ⇒ Object



14570
14571
14572
14573
14574
14575
14576
# File 'lib/v20180525/models.rb', line 14570

def deserialize(params)
  @InstanceId = params['InstanceId']
  unless params['AlertRule'].nil?
    @AlertRule = PrometheusAlertRuleDetail.new
    @AlertRule.deserialize(params['AlertRule'])
  end
end