RecurrentMaintenanceWindowSchedule¶
- class oci.stack_monitoring.models.RecurrentMaintenanceWindowSchedule(**kwargs)¶
Bases:
MaintenanceWindowScheduleSchedule information for the Maintenance Window that is executed multiple times.
Attributes:
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule.
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule.
Gets the maintenance_window_duration of this RecurrentMaintenanceWindowSchedule.
[Required] Gets the maintenance_window_recurrences of this RecurrentMaintenanceWindowSchedule.
[Required] Gets the schedule_type of this MaintenanceWindowSchedule.
Gets the time_maintenance_window_end of this RecurrentMaintenanceWindowSchedule.
Gets the time_maintenance_window_start of this RecurrentMaintenanceWindowSchedule.
Methods:
__init__(**kwargs)Initializes a new RecurrentMaintenanceWindowSchedule 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.
- SCHEDULE_TYPE_ONE_TIME = 'ONE_TIME'¶
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule. This constant has a value of “ONE_TIME”
- SCHEDULE_TYPE_RECURRENT = 'RECURRENT'¶
A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule. This constant has a value of “RECURRENT”
- __init__(**kwargs)¶
Initializes a new RecurrentMaintenanceWindowSchedule object with values from keyword arguments. The default value of the
schedule_typeattribute of this class isRECURRENTand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
schedule_type (str) – The value to assign to the schedule_type property of this RecurrentMaintenanceWindowSchedule. Allowed values for this property are: “ONE_TIME”, “RECURRENT”
time_maintenance_window_start (datetime) – The value to assign to the time_maintenance_window_start property of this RecurrentMaintenanceWindowSchedule.
time_maintenance_window_end (datetime) – The value to assign to the time_maintenance_window_end property of this RecurrentMaintenanceWindowSchedule.
maintenance_window_recurrences (str) – The value to assign to the maintenance_window_recurrences property of this RecurrentMaintenanceWindowSchedule.
maintenance_window_duration (str) – The value to assign to the maintenance_window_duration property of this RecurrentMaintenanceWindowSchedule.
- 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 maintenance_window_duration¶
Gets the maintenance_window_duration of this RecurrentMaintenanceWindowSchedule. Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- Returns
The maintenance_window_duration of this RecurrentMaintenanceWindowSchedule.
- Return type
str
- property maintenance_window_recurrences¶
[Required] Gets the maintenance_window_recurrences of this RecurrentMaintenanceWindowSchedule. A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after timeMaintenanceWindowStart value. BYMINUTE: Specifies the start minute of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 Other Rules are not supported.
- Returns
The maintenance_window_recurrences of this RecurrentMaintenanceWindowSchedule.
- Return type
str
- property schedule_type¶
[Required] Gets the schedule_type of this MaintenanceWindowSchedule. Property to identify the type of the Maintenance Window.
Allowed values for this property are: “ONE_TIME”, “RECURRENT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The schedule_type of this MaintenanceWindowSchedule.
- Return type
str
- property time_maintenance_window_end¶
Gets the time_maintenance_window_end of this RecurrentMaintenanceWindowSchedule. Start time of Maintenance window. A RFC3339 formatted datetime string
- Returns
The time_maintenance_window_end of this RecurrentMaintenanceWindowSchedule.
- Return type
datetime
- property time_maintenance_window_start¶
Gets the time_maintenance_window_start of this RecurrentMaintenanceWindowSchedule. Start time of Maintenance window. A RFC3339 formatted datetime string
- Returns
The time_maintenance_window_start of this RecurrentMaintenanceWindowSchedule.
- Return type
datetime