HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/mysqlsh/lib/python3.8/site-packages/oci/database_management/models/my_sql_fleet_metrics.py
# coding: utf-8
# Copyright (c) 2016, 2025, 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.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class MySqlFleetMetrics(object):
    """
    The details of the MySQL Database fleet health metrics.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new MySqlFleetMetrics object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param start_time:
            The value to assign to the start_time property of this MySqlFleetMetrics.
        :type start_time: str

        :param end_time:
            The value to assign to the end_time property of this MySqlFleetMetrics.
        :type end_time: str

        :param fleet_databases:
            The value to assign to the fleet_databases property of this MySqlFleetMetrics.
        :type fleet_databases: list[oci.database_management.models.MySqlDatabaseUsageMetrics]

        :param fleet_summary:
            The value to assign to the fleet_summary property of this MySqlFleetMetrics.
        :type fleet_summary: list[oci.database_management.models.MySqlFleetSummary]

        """
        self.swagger_types = {
            'start_time': 'str',
            'end_time': 'str',
            'fleet_databases': 'list[MySqlDatabaseUsageMetrics]',
            'fleet_summary': 'list[MySqlFleetSummary]'
        }
        self.attribute_map = {
            'start_time': 'startTime',
            'end_time': 'endTime',
            'fleet_databases': 'fleetDatabases',
            'fleet_summary': 'fleetSummary'
        }
        self._start_time = None
        self._end_time = None
        self._fleet_databases = None
        self._fleet_summary = None

    @property
    def start_time(self):
        """
        **[Required]** Gets the start_time of this MySqlFleetMetrics.
        The beginning of the time range during which metric data is retrieved.


        :return: The start_time of this MySqlFleetMetrics.
        :rtype: str
        """
        return self._start_time

    @start_time.setter
    def start_time(self, start_time):
        """
        Sets the start_time of this MySqlFleetMetrics.
        The beginning of the time range during which metric data is retrieved.


        :param start_time: The start_time of this MySqlFleetMetrics.
        :type: str
        """
        self._start_time = start_time

    @property
    def end_time(self):
        """
        **[Required]** Gets the end_time of this MySqlFleetMetrics.
        The end of the time range during which metric data is retrieved.


        :return: The end_time of this MySqlFleetMetrics.
        :rtype: str
        """
        return self._end_time

    @end_time.setter
    def end_time(self, end_time):
        """
        Sets the end_time of this MySqlFleetMetrics.
        The end of the time range during which metric data is retrieved.


        :param end_time: The end_time of this MySqlFleetMetrics.
        :type: str
        """
        self._end_time = end_time

    @property
    def fleet_databases(self):
        """
        **[Required]** Gets the fleet_databases of this MySqlFleetMetrics.
        The list of MySQL Databases in the fleet and their usage metrics.


        :return: The fleet_databases of this MySqlFleetMetrics.
        :rtype: list[oci.database_management.models.MySqlDatabaseUsageMetrics]
        """
        return self._fleet_databases

    @fleet_databases.setter
    def fleet_databases(self, fleet_databases):
        """
        Sets the fleet_databases of this MySqlFleetMetrics.
        The list of MySQL Databases in the fleet and their usage metrics.


        :param fleet_databases: The fleet_databases of this MySqlFleetMetrics.
        :type: list[oci.database_management.models.MySqlDatabaseUsageMetrics]
        """
        self._fleet_databases = fleet_databases

    @property
    def fleet_summary(self):
        """
        **[Required]** Gets the fleet_summary of this MySqlFleetMetrics.
        A summary of the inventory count and the metrics that describe the aggregated usage of CPU, storage, and so on of all the MySQL Databases in the fleet.


        :return: The fleet_summary of this MySqlFleetMetrics.
        :rtype: list[oci.database_management.models.MySqlFleetSummary]
        """
        return self._fleet_summary

    @fleet_summary.setter
    def fleet_summary(self, fleet_summary):
        """
        Sets the fleet_summary of this MySqlFleetMetrics.
        A summary of the inventory count and the metrics that describe the aggregated usage of CPU, storage, and so on of all the MySQL Databases in the fleet.


        :param fleet_summary: The fleet_summary of this MySqlFleetMetrics.
        :type: list[oci.database_management.models.MySqlFleetSummary]
        """
        self._fleet_summary = fleet_summary

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other