Class: TencentCloud::Dbbrain::V20210527::AutonomyUserProfileInfo

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

Overview

自治用户配置详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled = nil, uin = nil, memoryupperlimit = nil, thresholdrule = nil, enableditems = nil) ⇒ AutonomyUserProfileInfo

Returns a new instance of AutonomyUserProfileInfo.



540
541
542
543
544
545
546
# File 'lib/v20210527/models.rb', line 540

def initialize(enabled=nil, uin=nil, memoryupperlimit=nil, thresholdrule=nil, enableditems=nil)
  @Enabled = enabled
  @Uin = uin
  @MemoryUpperLimit = memoryupperlimit
  @ThresholdRule = thresholdrule
  @EnabledItems = enableditems
end

Instance Attribute Details

#EnabledObject

其中: true - 开启 false - 关闭

Parameters:

  • Enabled:

    是否开启自治。枚举值:true,false。

  • Uin:

    用户Uin。

  • MemoryUpperLimit:

    内存上限。

  • ThresholdRule:

    指标阈值规则。

  • EnabledItems:

    自治功能类型。



538
539
540
# File 'lib/v20210527/models.rb', line 538

def Enabled
  @Enabled
end

#EnabledItemsObject

其中: true - 开启 false - 关闭

Parameters:

  • Enabled:

    是否开启自治。枚举值:true,false。

  • Uin:

    用户Uin。

  • MemoryUpperLimit:

    内存上限。

  • ThresholdRule:

    指标阈值规则。

  • EnabledItems:

    自治功能类型。



538
539
540
# File 'lib/v20210527/models.rb', line 538

def EnabledItems
  @EnabledItems
end

#MemoryUpperLimitObject

其中: true - 开启 false - 关闭

Parameters:

  • Enabled:

    是否开启自治。枚举值:true,false。

  • Uin:

    用户Uin。

  • MemoryUpperLimit:

    内存上限。

  • ThresholdRule:

    指标阈值规则。

  • EnabledItems:

    自治功能类型。



538
539
540
# File 'lib/v20210527/models.rb', line 538

def MemoryUpperLimit
  @MemoryUpperLimit
end

#ThresholdRuleObject

其中: true - 开启 false - 关闭

Parameters:

  • Enabled:

    是否开启自治。枚举值:true,false。

  • Uin:

    用户Uin。

  • MemoryUpperLimit:

    内存上限。

  • ThresholdRule:

    指标阈值规则。

  • EnabledItems:

    自治功能类型。



538
539
540
# File 'lib/v20210527/models.rb', line 538

def ThresholdRule
  @ThresholdRule
end

#UinObject

其中: true - 开启 false - 关闭

Parameters:

  • Enabled:

    是否开启自治。枚举值:true,false。

  • Uin:

    用户Uin。

  • MemoryUpperLimit:

    内存上限。

  • ThresholdRule:

    指标阈值规则。

  • EnabledItems:

    自治功能类型。



538
539
540
# File 'lib/v20210527/models.rb', line 538

def Uin
  @Uin
end

Instance Method Details

#deserialize(params) ⇒ Object



548
549
550
551
552
553
554
555
556
557
# File 'lib/v20210527/models.rb', line 548

def deserialize(params)
  @Enabled = params['Enabled']
  @Uin = params['Uin']
  @MemoryUpperLimit = params['MemoryUpperLimit']
  unless params['ThresholdRule'].nil?
    @ThresholdRule = MetricThreshold.new
    @ThresholdRule.deserialize(params['ThresholdRule'])
  end
  @EnabledItems = params['EnabledItems']
end