/** * MySQL Database Service API * The API for the MySQL Database Service * OpenAPI spec version: 20190415 * Contact: mysql-cloud-dev_ww_grp@oracle.com * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ import * as model from "../model"; /** * The details of a maintenance event. * */ export interface MaintenanceEvent { /** * The OCID of the DB System this maintenance event is associated with. */ "dbSystemId": string; /** * The OCID of the compartment the maintenance event belongs to. */ "compartmentId": string; /** * Information regarding what was performed during that maintenance. */ "maintenanceNotes"?: string; /** * The date and time the record was created, * as described by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * */ "timeCreated": Date; /** * The date and time the maintenance event started, * as described by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * */ "timeStarted"?: Date; /** * The date and time the maintenance event ended, * as described by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * */ "timeEnded"?: Date; /** * The date and time the DB System was initially down during the maintenance, * as described by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * */ "timeMysqlSwitchOverStarted"?: Date; /** * The date and time the DB System came back online during the maintenance, * as described by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). * */ "timeMysqlSwitchOverEnded"?: Date; /** * The MySQL version prior to the maintenance. */ "mysqlVersionBeforeMaintenance": string; /** * The MySQL version after the maintenance. */ "mysqlVersionAfterMaintenance": string; /** * 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. * */ "maintenanceScope"?: model.MaintenanceScope; /** * 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. * */ "maintenanceType": model.MaintenanceType; /** * 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. * */ "maintenanceAction": model.MaintenanceAction; /** * The last status of the maintenance event. * */ "maintenanceStatus": MaintenanceEvent.MaintenanceStatus; } export declare namespace MaintenanceEvent { enum MaintenanceStatus { Succeeded = "SUCCEEDED", Failed = "FAILED", Canceled = "CANCELED", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. */ UnknownValue = "UNKNOWN_VALUE" } function getJsonObj(obj: MaintenanceEvent): object; function getDeserializedJsonObj(obj: MaintenanceEvent): object; }