Class: TencentCloud::Tem::V20210701::CronHorizontalAutoscalerSchedule

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

Overview

定时伸缩策略明细

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(startat = nil, targetreplicas = nil) ⇒ CronHorizontalAutoscalerSchedule

Returns a new instance of CronHorizontalAutoscalerSchedule.



795
796
797
798
# File 'lib/v20210701/models.rb', line 795

def initialize(startat=nil, targetreplicas=nil)
  @StartAt = startat
  @TargetReplicas = targetreplicas
end

Instance Attribute Details

#StartAtObject

例如00:00(零点零分触发)注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • StartAt:

    触发事件,小时分钟,用:分割

  • TargetReplicas:

    目标实例数(不大于50)



793
794
795
# File 'lib/v20210701/models.rb', line 793

def StartAt
  @StartAt
end

#TargetReplicasObject

例如00:00(零点零分触发)注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • StartAt:

    触发事件,小时分钟,用:分割

  • TargetReplicas:

    目标实例数(不大于50)



793
794
795
# File 'lib/v20210701/models.rb', line 793

def TargetReplicas
  @TargetReplicas
end

Instance Method Details

#deserialize(params) ⇒ Object



800
801
802
803
# File 'lib/v20210701/models.rb', line 800

def deserialize(params)
  @StartAt = params['StartAt']
  @TargetReplicas = params['TargetReplicas']
end