Class: TencentCloud::Cdb::V20170320::DescribeCPUExpandStrategyInfoResponse

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

Overview

DescribeCPUExpandStrategyInfo返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, expandcpu = nil, autostrategy = nil, periodstrategy = nil, timeintervalstrategy = nil, requestid = nil) ⇒ DescribeCPUExpandStrategyInfoResponse

Returns a new instance of DescribeCPUExpandStrategyInfoResponse.



5630
5631
5632
5633
5634
5635
5636
5637
# File 'lib/v20170320/models.rb', line 5630

def initialize(type=nil, expandcpu=nil, autostrategy=nil, periodstrategy=nil, timeintervalstrategy=nil, requestid=nil)
  @Type = type
  @ExpandCpu = expandcpu
  @AutoStrategy = autostrategy
  @PeriodStrategy = periodstrategy
  @TimeIntervalStrategy = timeintervalstrategy
  @RequestId = requestid
end

Instance Attribute Details

#AutoStrategyObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    策略类型。输出值:auto、manual、timeInterval、period。

  • ExpandCpu:

    自定义扩容,且扩容时间为立即生效时的 CPU。Type 为 manual 时有效。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时有效。

  • PeriodStrategy:

    按周期扩容策略。当 Type 为 period 时有效。

  • TimeIntervalStrategy:

    按时间段扩容策略。当 Type 为 timeInterval 时有效。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5628
5629
5630
# File 'lib/v20170320/models.rb', line 5628

def AutoStrategy
  @AutoStrategy
end

#ExpandCpuObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    策略类型。输出值:auto、manual、timeInterval、period。

  • ExpandCpu:

    自定义扩容,且扩容时间为立即生效时的 CPU。Type 为 manual 时有效。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时有效。

  • PeriodStrategy:

    按周期扩容策略。当 Type 为 period 时有效。

  • TimeIntervalStrategy:

    按时间段扩容策略。当 Type 为 timeInterval 时有效。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5628
5629
5630
# File 'lib/v20170320/models.rb', line 5628

def ExpandCpu
  @ExpandCpu
end

#PeriodStrategyObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    策略类型。输出值:auto、manual、timeInterval、period。

  • ExpandCpu:

    自定义扩容,且扩容时间为立即生效时的 CPU。Type 为 manual 时有效。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时有效。

  • PeriodStrategy:

    按周期扩容策略。当 Type 为 period 时有效。

  • TimeIntervalStrategy:

    按时间段扩容策略。当 Type 为 timeInterval 时有效。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5628
5629
5630
# File 'lib/v20170320/models.rb', line 5628

def PeriodStrategy
  @PeriodStrategy
end

#RequestIdObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    策略类型。输出值:auto、manual、timeInterval、period。

  • ExpandCpu:

    自定义扩容,且扩容时间为立即生效时的 CPU。Type 为 manual 时有效。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时有效。

  • PeriodStrategy:

    按周期扩容策略。当 Type 为 period 时有效。

  • TimeIntervalStrategy:

    按时间段扩容策略。当 Type 为 timeInterval 时有效。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5628
5629
5630
# File 'lib/v20170320/models.rb', line 5628

def RequestId
  @RequestId
end

#TimeIntervalStrategyObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    策略类型。输出值:auto、manual、timeInterval、period。

  • ExpandCpu:

    自定义扩容,且扩容时间为立即生效时的 CPU。Type 为 manual 时有效。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时有效。

  • PeriodStrategy:

    按周期扩容策略。当 Type 为 period 时有效。

  • TimeIntervalStrategy:

    按时间段扩容策略。当 Type 为 timeInterval 时有效。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5628
5629
5630
# File 'lib/v20170320/models.rb', line 5628

def TimeIntervalStrategy
  @TimeIntervalStrategy
end

#TypeObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    策略类型。输出值:auto、manual、timeInterval、period。

  • ExpandCpu:

    自定义扩容,且扩容时间为立即生效时的 CPU。Type 为 manual 时有效。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时有效。

  • PeriodStrategy:

    按周期扩容策略。当 Type 为 period 时有效。

  • TimeIntervalStrategy:

    按时间段扩容策略。当 Type 为 timeInterval 时有效。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5628
5629
5630
# File 'lib/v20170320/models.rb', line 5628

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
# File 'lib/v20170320/models.rb', line 5639

def deserialize(params)
  @Type = params['Type']
  @ExpandCpu = params['ExpandCpu']
  unless params['AutoStrategy'].nil?
    @AutoStrategy = AutoStrategy.new
    @AutoStrategy.deserialize(params['AutoStrategy'])
  end
  unless params['PeriodStrategy'].nil?
    @PeriodStrategy = PeriodStrategy.new
    @PeriodStrategy.deserialize(params['PeriodStrategy'])
  end
  unless params['TimeIntervalStrategy'].nil?
    @TimeIntervalStrategy = TimeIntervalStrategy.new
    @TimeIntervalStrategy.deserialize(params['TimeIntervalStrategy'])
  end
  @RequestId = params['RequestId']
end