MaintenanceWindowSchedule

class oci.apm_synthetics.models.MaintenanceWindowSchedule(**kwargs)

Bases: object

Details required to schedule maintenance window.

Attributes:

RECURRENCE_TYPE_MONTHLY

A constant which can be used with the recurrence_type property of a MaintenanceWindowSchedule.

RECURRENCE_TYPE_WEEKLY

A constant which can be used with the recurrence_type property of a MaintenanceWindowSchedule.

SCHEDULE_TYPE_ONE_TIME

A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule.

SCHEDULE_TYPE_RECURRING

A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule.

recurrence_type

Gets the recurrence_type of this MaintenanceWindowSchedule.

schedule_type

Gets the schedule_type of this MaintenanceWindowSchedule.

time_ended

Gets the time_ended of this MaintenanceWindowSchedule.

time_started

Gets the time_started of this MaintenanceWindowSchedule.

Methods:

__init__(**kwargs)

Initializes a new MaintenanceWindowSchedule object with values from keyword arguments.

RECURRENCE_TYPE_MONTHLY = 'MONTHLY'

A constant which can be used with the recurrence_type property of a MaintenanceWindowSchedule. This constant has a value of “MONTHLY”

RECURRENCE_TYPE_WEEKLY = 'WEEKLY'

A constant which can be used with the recurrence_type property of a MaintenanceWindowSchedule. This constant has a value of “WEEKLY”

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_RECURRING = 'RECURRING'

A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule. This constant has a value of “RECURRING”

__init__(**kwargs)

Initializes a new MaintenanceWindowSchedule object with values from keyword arguments. 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 MaintenanceWindowSchedule. Allowed values for this property are: “ONE_TIME”, “RECURRING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • time_started (datetime) – The value to assign to the time_started property of this MaintenanceWindowSchedule.

  • time_ended (datetime) – The value to assign to the time_ended property of this MaintenanceWindowSchedule.

  • recurrence_type (str) – The value to assign to the recurrence_type property of this MaintenanceWindowSchedule. Allowed values for this property are: “WEEKLY”, “MONTHLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property recurrence_type

Gets the recurrence_type of this MaintenanceWindowSchedule. Type of recurrence for a recurring maintenance window.

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

Returns

The recurrence_type of this MaintenanceWindowSchedule.

Return type

str

property schedule_type

Gets the schedule_type of this MaintenanceWindowSchedule. Type of maintenance window schedule. If not provided, a schedule with timeStarted and timeEnded is treated as ONE_TIME.

Allowed values for this property are: “ONE_TIME”, “RECURRING”, ‘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_ended

Gets the time_ended of this MaintenanceWindowSchedule. End time of the maintenance window, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

Returns

The time_ended of this MaintenanceWindowSchedule.

Return type

datetime

property time_started

Gets the time_started of this MaintenanceWindowSchedule. Start time of the maintenance window, expressed in RFC 3339 timestamp format. Example: 2020-02-12T22:47:12.613Z

Returns

The time_started of this MaintenanceWindowSchedule.

Return type

datetime