Class: TencentCloud::Tke::V20180525::CreatePrometheusAlertPolicyRequest

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

Overview

CreatePrometheusAlertPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CreatePrometheusAlertPolicyRequest.



3251
3252
3253
3254
# File 'lib/v20180525/models.rb', line 3251

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

Instance Attribute Details

#AlertRuleObject

Parameters:

  • InstanceId:

    实例id

  • AlertRule:

    告警配置



3249
3250
3251
# File 'lib/v20180525/models.rb', line 3249

def AlertRule
  @AlertRule
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例id

  • AlertRule:

    告警配置



3249
3250
3251
# File 'lib/v20180525/models.rb', line 3249

def InstanceId
  @InstanceId
end

Instance Method Details

#deserialize(params) ⇒ Object



3256
3257
3258
3259
3260
3261
3262
# File 'lib/v20180525/models.rb', line 3256

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