CronExecutionSchedule

class oci.autoscaling.models.CronExecutionSchedule(**kwargs)

Bases: oci.autoscaling.models.execution_schedule.ExecutionSchedule

An autoscaling execution schedule that uses a cron expression.

Attributes

TIMEZONE_UTC str(object=’’) -> str
expression [Required] Gets the expression of this CronExecutionSchedule.
timezone [Required] Gets the timezone of this ExecutionSchedule.
type [Required] Gets the type of this ExecutionSchedule.

Methods

__init__(**kwargs) Initializes a new CronExecutionSchedule object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
TIMEZONE_UTC = 'UTC'
__init__(**kwargs)

Initializes a new CronExecutionSchedule object with values from keyword arguments. The default value of the type attribute of this class is cron and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this CronExecutionSchedule.
  • timezone (str) – The value to assign to the timezone property of this CronExecutionSchedule. Allowed values for this property are: “UTC”
  • expression (str) – The value to assign to the expression property of this CronExecutionSchedule.
expression

[Required] Gets the expression of this CronExecutionSchedule. A cron expression that represents the time at which to execute the autoscaling policy.

Cron expressions have this format: <second> <minute> <hour> <day of month> <month> <day of week> <year>

You can use special characters that are supported with the Quartz cron implementation.

You must specify 0 as the value for seconds.

Example: 0 15 10 ? * *

Returns:The expression of this CronExecutionSchedule.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

timezone

[Required] Gets the timezone of this ExecutionSchedule. The time zone for the execution schedule.

Allowed values for this property are: “UTC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The timezone of this ExecutionSchedule.
Return type:str
type

[Required] Gets the type of this ExecutionSchedule. The type of execution schedule.

Returns:The type of this ExecutionSchedule.
Return type:str