CronExecutionSchedule¶
- class oci.autoscaling.models.CronExecutionSchedule(**kwargs)¶
Bases:
ExecutionScheduleAn autoscaling execution schedule that uses a cron expression.
Attributes:
A constant which can be used with the timezone property of a ExecutionSchedule.
[Required] Gets the expression of this CronExecutionSchedule.
[Required] Gets the timezone of this ExecutionSchedule.
[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'¶
A constant which can be used with the timezone property of a ExecutionSchedule. This constant has a value of “UTC”
- __init__(**kwargs)¶
Initializes a new CronExecutionSchedule object with values from keyword arguments. The default value of the
typeattribute of this class iscronand 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.
- property 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.
- property 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
- property type¶
[Required] Gets the type of this ExecutionSchedule. The type of execution schedule.
- Returns
The type of this ExecutionSchedule.
- Return type
str