Class: TencentCloud::Tke::V20180525::CreatePrometheusAlertRuleRequest

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

Overview

CreatePrometheusAlertRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CreatePrometheusAlertRuleRequest.



3294
3295
3296
3297
# File 'lib/v20180525/models.rb', line 3294

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

Instance Attribute Details

#AlertRuleObject

Parameters:

  • InstanceId:

    实例id

  • AlertRule:

    告警配置



3292
3293
3294
# File 'lib/v20180525/models.rb', line 3292

def AlertRule
  @AlertRule
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例id

  • AlertRule:

    告警配置



3292
3293
3294
# File 'lib/v20180525/models.rb', line 3292

def InstanceId
  @InstanceId
end

Instance Method Details

#deserialize(params) ⇒ Object



3299
3300
3301
3302
3303
3304
3305
# File 'lib/v20180525/models.rb', line 3299

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