Class: TencentCloud::Tione::V20211111::CronScaleJob

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

Overview

定时扩缩任务

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schedule = nil, name = nil, targetreplicas = nil, minreplicas = nil, maxreplicas = nil, excludedates = nil) ⇒ CronScaleJob

Returns a new instance of CronScaleJob.



1540
1541
1542
1543
1544
1545
1546
1547
# File 'lib/v20211111/models.rb', line 1540

def initialize(schedule=nil, name=nil, targetreplicas=nil, minreplicas=nil, maxreplicas=nil, excludedates=nil)
  @Schedule = schedule
  @Name = name
  @TargetReplicas = targetreplicas
  @MinReplicas = minreplicas
  @MaxReplicas = maxreplicas
  @ExcludeDates = excludedates
end

Instance Attribute Details

#ExcludeDatesObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Schedule:

    Cron表达式,标识任务的执行时间,精确到分钟级

  • Name:

    定时任务名

  • TargetReplicas:

    目标实例数

  • MinReplicas:

    目标min

  • MaxReplicas:

    目标max

  • ExcludeDates:

    例外时间,Cron表达式,在对应时间内不执行任务。最多支持3条。



1538
1539
1540
# File 'lib/v20211111/models.rb', line 1538

def ExcludeDates
  @ExcludeDates
end

#MaxReplicasObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Schedule:

    Cron表达式,标识任务的执行时间,精确到分钟级

  • Name:

    定时任务名

  • TargetReplicas:

    目标实例数

  • MinReplicas:

    目标min

  • MaxReplicas:

    目标max

  • ExcludeDates:

    例外时间,Cron表达式,在对应时间内不执行任务。最多支持3条。



1538
1539
1540
# File 'lib/v20211111/models.rb', line 1538

def MaxReplicas
  @MaxReplicas
end

#MinReplicasObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Schedule:

    Cron表达式,标识任务的执行时间,精确到分钟级

  • Name:

    定时任务名

  • TargetReplicas:

    目标实例数

  • MinReplicas:

    目标min

  • MaxReplicas:

    目标max

  • ExcludeDates:

    例外时间,Cron表达式,在对应时间内不执行任务。最多支持3条。



1538
1539
1540
# File 'lib/v20211111/models.rb', line 1538

def MinReplicas
  @MinReplicas
end

#NameObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Schedule:

    Cron表达式,标识任务的执行时间,精确到分钟级

  • Name:

    定时任务名

  • TargetReplicas:

    目标实例数

  • MinReplicas:

    目标min

  • MaxReplicas:

    目标max

  • ExcludeDates:

    例外时间,Cron表达式,在对应时间内不执行任务。最多支持3条。



1538
1539
1540
# File 'lib/v20211111/models.rb', line 1538

def Name
  @Name
end

#ScheduleObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Schedule:

    Cron表达式,标识任务的执行时间,精确到分钟级

  • Name:

    定时任务名

  • TargetReplicas:

    目标实例数

  • MinReplicas:

    目标min

  • MaxReplicas:

    目标max

  • ExcludeDates:

    例外时间,Cron表达式,在对应时间内不执行任务。最多支持3条。



1538
1539
1540
# File 'lib/v20211111/models.rb', line 1538

def Schedule
  @Schedule
end

#TargetReplicasObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Schedule:

    Cron表达式,标识任务的执行时间,精确到分钟级

  • Name:

    定时任务名

  • TargetReplicas:

    目标实例数

  • MinReplicas:

    目标min

  • MaxReplicas:

    目标max

  • ExcludeDates:

    例外时间,Cron表达式,在对应时间内不执行任务。最多支持3条。



1538
1539
1540
# File 'lib/v20211111/models.rb', line 1538

def TargetReplicas
  @TargetReplicas
end

Instance Method Details

#deserialize(params) ⇒ Object



1549
1550
1551
1552
1553
1554
1555
1556
# File 'lib/v20211111/models.rb', line 1549

def deserialize(params)
  @Schedule = params['Schedule']
  @Name = params['Name']
  @TargetReplicas = params['TargetReplicas']
  @MinReplicas = params['MinReplicas']
  @MaxReplicas = params['MaxReplicas']
  @ExcludeDates = params['ExcludeDates']
end