Class: TencentCloud::Tke::V20180525::ModifyPrometheusAlertPolicyRequest

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

Overview

ModifyPrometheusAlertPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ModifyPrometheusAlertPolicyRequest.



14526
14527
14528
14529
# File 'lib/v20180525/models.rb', line 14526

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

Instance Attribute Details

#AlertRuleObject

Parameters:

  • InstanceId:

    实例id

  • AlertRule:

    告警配置



14524
14525
14526
# File 'lib/v20180525/models.rb', line 14524

def AlertRule
  @AlertRule
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例id

  • AlertRule:

    告警配置



14524
14525
14526
# File 'lib/v20180525/models.rb', line 14524

def InstanceId
  @InstanceId
end

Instance Method Details

#deserialize(params) ⇒ Object



14531
14532
14533
14534
14535
14536
14537
# File 'lib/v20180525/models.rb', line 14531

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