Show / Hide Table of Contents

Class MaintenanceEvent

The details of a maintenance event.

Inheritance
object
MaintenanceEvent
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.MysqlService.Models
Assembly: OCI.DotNetSDK.Mysql.dll
Syntax
public class MaintenanceEvent

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment the maintenance event belongs to.

Remarks

Required

DbSystemId

Declaration
[Required(ErrorMessage = "DbSystemId is required.")]
[JsonProperty(PropertyName = "dbSystemId")]
public string DbSystemId { get; set; }
Property Value
Type Description
string

The OCID of the DB System this maintenance event is associated with.

Remarks

Required

MaintenanceAction

Declaration
[Required(ErrorMessage = "MaintenanceAction is required.")]
[JsonProperty(PropertyName = "maintenanceAction")]
[JsonConverter(typeof(ResponseEnumConverter))]
public MaintenanceAction? MaintenanceAction { get; set; }
Property Value
Type Description
MaintenanceAction?

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.

Remarks

Required

MaintenanceNotes

Declaration
[JsonProperty(PropertyName = "maintenanceNotes")]
public string MaintenanceNotes { get; set; }
Property Value
Type Description
string

Information regarding what was performed during that maintenance.

MaintenanceScope

Declaration
[JsonProperty(PropertyName = "maintenanceScope")]
[JsonConverter(typeof(ResponseEnumConverter))]
public MaintenanceScope? MaintenanceScope { get; set; }
Property Value
Type Description
MaintenanceScope?

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.

MaintenanceStatus

Declaration
[Required(ErrorMessage = "MaintenanceStatus is required.")]
[JsonProperty(PropertyName = "maintenanceStatus")]
[JsonConverter(typeof(ResponseEnumConverter))]
public MaintenanceEvent.MaintenanceStatusEnum? MaintenanceStatus { get; set; }
Property Value
Type Description
MaintenanceEvent.MaintenanceStatusEnum?

The last status of the maintenance event.

Remarks

Required

MaintenanceType

Declaration
[Required(ErrorMessage = "MaintenanceType is required.")]
[JsonProperty(PropertyName = "maintenanceType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public MaintenanceType? MaintenanceType { get; set; }
Property Value
Type Description
MaintenanceType?

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.

Remarks

Required

MysqlVersionAfterMaintenance

Declaration
[Required(ErrorMessage = "MysqlVersionAfterMaintenance is required.")]
[JsonProperty(PropertyName = "mysqlVersionAfterMaintenance")]
public string MysqlVersionAfterMaintenance { get; set; }
Property Value
Type Description
string

The MySQL version after the maintenance.

Remarks

Required

MysqlVersionBeforeMaintenance

Declaration
[Required(ErrorMessage = "MysqlVersionBeforeMaintenance is required.")]
[JsonProperty(PropertyName = "mysqlVersionBeforeMaintenance")]
public string MysqlVersionBeforeMaintenance { get; set; }
Property Value
Type Description
string

The MySQL version prior to the maintenance.

Remarks

Required

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the record was created, as described by RFC 3339.

Remarks

Required

TimeEnded

Declaration
[JsonProperty(PropertyName = "timeEnded")]
public DateTime? TimeEnded { get; set; }
Property Value
Type Description
DateTime?

The date and time the maintenance event ended, as described by RFC 3339.

TimeMysqlSwitchOverEnded

Declaration
[JsonProperty(PropertyName = "timeMysqlSwitchOverEnded")]
public DateTime? TimeMysqlSwitchOverEnded { get; set; }
Property Value
Type Description
DateTime?

The date and time the DB System came back online during the maintenance, as described by RFC 3339.

TimeMysqlSwitchOverStarted

Declaration
[JsonProperty(PropertyName = "timeMysqlSwitchOverStarted")]
public DateTime? TimeMysqlSwitchOverStarted { get; set; }
Property Value
Type Description
DateTime?

The date and time the DB System was initially down during the maintenance, as described by RFC 3339.

TimeStarted

Declaration
[JsonProperty(PropertyName = "timeStarted")]
public DateTime? TimeStarted { get; set; }
Property Value
Type Description
DateTime?

The date and time the maintenance event started, as described by RFC 3339.

In this article
Back to top