MaintenanceEvent

class oci.mysql.models.MaintenanceEvent(**kwargs)

Bases: object

The details of a maintenance event.

Attributes

MAINTENANCE_ACTION_DATABASE A constant which can be used with the maintenance_action property of a MaintenanceEvent.
MAINTENANCE_ACTION_HARDWARE A constant which can be used with the maintenance_action property of a MaintenanceEvent.
MAINTENANCE_ACTION_ONLINE_UPDATE A constant which can be used with the maintenance_action property of a MaintenanceEvent.
MAINTENANCE_ACTION_OS_UPDATE A constant which can be used with the maintenance_action property of a MaintenanceEvent.
MAINTENANCE_SCOPE_ALL A constant which can be used with the maintenance_scope property of a MaintenanceEvent.
MAINTENANCE_SCOPE_ALL_BUT_PRIMARY A constant which can be used with the maintenance_scope property of a MaintenanceEvent.
MAINTENANCE_SCOPE_PRIMARY_ONLY A constant which can be used with the maintenance_scope property of a MaintenanceEvent.
MAINTENANCE_STATUS_CANCELED A constant which can be used with the maintenance_status property of a MaintenanceEvent.
MAINTENANCE_STATUS_FAILED A constant which can be used with the maintenance_status property of a MaintenanceEvent.
MAINTENANCE_STATUS_SUCCEEDED A constant which can be used with the maintenance_status property of a MaintenanceEvent.
MAINTENANCE_TYPE_AUTOMATIC A constant which can be used with the maintenance_type property of a MaintenanceEvent.
MAINTENANCE_TYPE_MANUAL A constant which can be used with the maintenance_type property of a MaintenanceEvent.
MAINTENANCE_TYPE_SHAPE A constant which can be used with the maintenance_type property of a MaintenanceEvent.
compartment_id [Required] Gets the compartment_id of this MaintenanceEvent.
db_system_id [Required] Gets the db_system_id of this MaintenanceEvent.
maintenance_action [Required] Gets the maintenance_action of this MaintenanceEvent.
maintenance_notes Gets the maintenance_notes of this MaintenanceEvent.
maintenance_scope Gets the maintenance_scope of this MaintenanceEvent.
maintenance_status [Required] Gets the maintenance_status of this MaintenanceEvent.
maintenance_type [Required] Gets the maintenance_type of this MaintenanceEvent.
mysql_version_after_maintenance [Required] Gets the mysql_version_after_maintenance of this MaintenanceEvent.
mysql_version_before_maintenance [Required] Gets the mysql_version_before_maintenance of this MaintenanceEvent.
time_created [Required] Gets the time_created of this MaintenanceEvent.
time_ended Gets the time_ended of this MaintenanceEvent.
time_mysql_switch_over_ended Gets the time_mysql_switch_over_ended of this MaintenanceEvent.
time_mysql_switch_over_started Gets the time_mysql_switch_over_started of this MaintenanceEvent.
time_started Gets the time_started of this MaintenanceEvent.

Methods

__init__(**kwargs) Initializes a new MaintenanceEvent object with values from keyword arguments.
MAINTENANCE_ACTION_DATABASE = 'DATABASE'

A constant which can be used with the maintenance_action property of a MaintenanceEvent. This constant has a value of “DATABASE”

MAINTENANCE_ACTION_HARDWARE = 'HARDWARE'

A constant which can be used with the maintenance_action property of a MaintenanceEvent. This constant has a value of “HARDWARE”

MAINTENANCE_ACTION_ONLINE_UPDATE = 'ONLINE_UPDATE'

A constant which can be used with the maintenance_action property of a MaintenanceEvent. This constant has a value of “ONLINE_UPDATE”

MAINTENANCE_ACTION_OS_UPDATE = 'OS_UPDATE'

A constant which can be used with the maintenance_action property of a MaintenanceEvent. This constant has a value of “OS_UPDATE”

MAINTENANCE_SCOPE_ALL = 'ALL'

A constant which can be used with the maintenance_scope property of a MaintenanceEvent. This constant has a value of “ALL”

MAINTENANCE_SCOPE_ALL_BUT_PRIMARY = 'ALL_BUT_PRIMARY'

A constant which can be used with the maintenance_scope property of a MaintenanceEvent. This constant has a value of “ALL_BUT_PRIMARY”

MAINTENANCE_SCOPE_PRIMARY_ONLY = 'PRIMARY_ONLY'

A constant which can be used with the maintenance_scope property of a MaintenanceEvent. This constant has a value of “PRIMARY_ONLY”

MAINTENANCE_STATUS_CANCELED = 'CANCELED'

A constant which can be used with the maintenance_status property of a MaintenanceEvent. This constant has a value of “CANCELED”

MAINTENANCE_STATUS_FAILED = 'FAILED'

A constant which can be used with the maintenance_status property of a MaintenanceEvent. This constant has a value of “FAILED”

MAINTENANCE_STATUS_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the maintenance_status property of a MaintenanceEvent. This constant has a value of “SUCCEEDED”

MAINTENANCE_TYPE_AUTOMATIC = 'AUTOMATIC'

A constant which can be used with the maintenance_type property of a MaintenanceEvent. This constant has a value of “AUTOMATIC”

MAINTENANCE_TYPE_MANUAL = 'MANUAL'

A constant which can be used with the maintenance_type property of a MaintenanceEvent. This constant has a value of “MANUAL”

MAINTENANCE_TYPE_SHAPE = 'SHAPE'

A constant which can be used with the maintenance_type property of a MaintenanceEvent. This constant has a value of “SHAPE”

__init__(**kwargs)

Initializes a new MaintenanceEvent object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • db_system_id (str) – The value to assign to the db_system_id property of this MaintenanceEvent.
  • compartment_id (str) – The value to assign to the compartment_id property of this MaintenanceEvent.
  • maintenance_notes (str) – The value to assign to the maintenance_notes property of this MaintenanceEvent.
  • time_created (datetime) – The value to assign to the time_created property of this MaintenanceEvent.
  • time_started (datetime) – The value to assign to the time_started property of this MaintenanceEvent.
  • time_ended (datetime) – The value to assign to the time_ended property of this MaintenanceEvent.
  • time_mysql_switch_over_started (datetime) – The value to assign to the time_mysql_switch_over_started property of this MaintenanceEvent.
  • time_mysql_switch_over_ended (datetime) – The value to assign to the time_mysql_switch_over_ended property of this MaintenanceEvent.
  • mysql_version_before_maintenance (str) – The value to assign to the mysql_version_before_maintenance property of this MaintenanceEvent.
  • mysql_version_after_maintenance (str) – The value to assign to the mysql_version_after_maintenance property of this MaintenanceEvent.
  • maintenance_scope (str) – The value to assign to the maintenance_scope property of this MaintenanceEvent. Allowed values for this property are: “ALL”, “ALL_BUT_PRIMARY”, “PRIMARY_ONLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • maintenance_type (str) – The value to assign to the maintenance_type property of this MaintenanceEvent. Allowed values for this property are: “AUTOMATIC”, “MANUAL”, “SHAPE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • maintenance_action (str) – The value to assign to the maintenance_action property of this MaintenanceEvent. Allowed values for this property are: “DATABASE”, “OS_UPDATE”, “ONLINE_UPDATE”, “HARDWARE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • maintenance_status (str) – The value to assign to the maintenance_status property of this MaintenanceEvent. Allowed values for this property are: “SUCCEEDED”, “FAILED”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
compartment_id

[Required] Gets the compartment_id of this MaintenanceEvent. The OCID of the compartment the maintenance event belongs to.

Returns:The compartment_id of this MaintenanceEvent.
Return type:str
db_system_id

[Required] Gets the db_system_id of this MaintenanceEvent. The OCID of the DB System this maintenance event is associated with.

Returns:The db_system_id of this MaintenanceEvent.
Return type:str
maintenance_action

[Required] Gets the maintenance_action of this MaintenanceEvent. The nature of the maintenance event.

DATABASE: maintenance event causing a MySQL version upgrade. This may also include OS updates. OS_UPDATE: maintenance event causing an OS update. ONLINE_UPDATE: maintenance event causing downtime-free OS security patches. HARDWARE: hardware maintenance event affecting the DB System’s VMs and BMs.

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

Returns:The maintenance_action of this MaintenanceEvent.
Return type:str
maintenance_notes

Gets the maintenance_notes of this MaintenanceEvent. Information regarding what was performed during that maintenance.

Returns:The maintenance_notes of this MaintenanceEvent.
Return type:str
maintenance_scope

Gets the maintenance_scope of this MaintenanceEvent. The MySQL instances operated during a maintenance event.

ALL: maintenance event targeting all MySQL instances in a DB System. ALL_BUT_PRIMARY: maintenance event targeting all MySQL instances in a highly available DB System except the primary group member. PRIMARY_ONLY: maintenance event targeting only the primary group member in a highly available DB System.

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

Returns:The maintenance_scope of this MaintenanceEvent.
Return type:str
maintenance_status

[Required] Gets the maintenance_status of this MaintenanceEvent. The last status of the maintenance event.

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

Returns:The maintenance_status of this MaintenanceEvent.
Return type:str
maintenance_type

[Required] Gets the maintenance_type of this MaintenanceEvent. How the maintenance event was triggered.

AUTOMATIC: maintenance event triggered as part of scheduled maintenance. MANUAL: maintenance event triggered manually. SHAPE: maintenance event triggered by a shape update.

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

Returns:The maintenance_type of this MaintenanceEvent.
Return type:str
mysql_version_after_maintenance

[Required] Gets the mysql_version_after_maintenance of this MaintenanceEvent. The MySQL version after the maintenance.

Returns:The mysql_version_after_maintenance of this MaintenanceEvent.
Return type:str
mysql_version_before_maintenance

[Required] Gets the mysql_version_before_maintenance of this MaintenanceEvent. The MySQL version prior to the maintenance.

Returns:The mysql_version_before_maintenance of this MaintenanceEvent.
Return type:str
time_created

[Required] Gets the time_created of this MaintenanceEvent. The date and time the record was created, as described by RFC 3339.

Returns:The time_created of this MaintenanceEvent.
Return type:datetime
time_ended

Gets the time_ended of this MaintenanceEvent. The date and time the maintenance event ended, as described by RFC 3339.

Returns:The time_ended of this MaintenanceEvent.
Return type:datetime
time_mysql_switch_over_ended

Gets the time_mysql_switch_over_ended of this MaintenanceEvent. The date and time the DB System came back online during the maintenance, as described by RFC 3339.

Returns:The time_mysql_switch_over_ended of this MaintenanceEvent.
Return type:datetime
time_mysql_switch_over_started

Gets the time_mysql_switch_over_started of this MaintenanceEvent. The date and time the DB System was initially down during the maintenance, as described by RFC 3339.

Returns:The time_mysql_switch_over_started of this MaintenanceEvent.
Return type:datetime
time_started

Gets the time_started of this MaintenanceEvent. The date and time the maintenance event started, as described by RFC 3339.

Returns:The time_started of this MaintenanceEvent.
Return type:datetime