DatabaseUsageMetrics

class oci.database_management.models.DatabaseUsageMetrics(**kwargs)

Bases: object

The list of aggregated metrics for Managed Databases in the fleet.

Attributes

DATABASE_SUB_TYPE_CDB A constant which can be used with the database_sub_type property of a DatabaseUsageMetrics.
DATABASE_SUB_TYPE_NON_CDB A constant which can be used with the database_sub_type property of a DatabaseUsageMetrics.
DATABASE_SUB_TYPE_PDB A constant which can be used with the database_sub_type property of a DatabaseUsageMetrics.
DATABASE_TYPE_EXTERNAL_RAC A constant which can be used with the database_type property of a DatabaseUsageMetrics.
DATABASE_TYPE_EXTERNAL_SIDB A constant which can be used with the database_type property of a DatabaseUsageMetrics.
compartment_id Gets the compartment_id of this DatabaseUsageMetrics.
database_container_id Gets the database_container_id of this DatabaseUsageMetrics.
database_name Gets the database_name of this DatabaseUsageMetrics.
database_sub_type Gets the database_sub_type of this DatabaseUsageMetrics.
database_type Gets the database_type of this DatabaseUsageMetrics.
db_id Gets the db_id of this DatabaseUsageMetrics.
metrics Gets the metrics of this DatabaseUsageMetrics.

Methods

__init__(**kwargs) Initializes a new DatabaseUsageMetrics object with values from keyword arguments.
DATABASE_SUB_TYPE_CDB = 'CDB'

A constant which can be used with the database_sub_type property of a DatabaseUsageMetrics. This constant has a value of “CDB”

DATABASE_SUB_TYPE_NON_CDB = 'NON_CDB'

A constant which can be used with the database_sub_type property of a DatabaseUsageMetrics. This constant has a value of “NON_CDB”

DATABASE_SUB_TYPE_PDB = 'PDB'

A constant which can be used with the database_sub_type property of a DatabaseUsageMetrics. This constant has a value of “PDB”

DATABASE_TYPE_EXTERNAL_RAC = 'EXTERNAL_RAC'

A constant which can be used with the database_type property of a DatabaseUsageMetrics. This constant has a value of “EXTERNAL_RAC”

DATABASE_TYPE_EXTERNAL_SIDB = 'EXTERNAL_SIDB'

A constant which can be used with the database_type property of a DatabaseUsageMetrics. This constant has a value of “EXTERNAL_SIDB”

__init__(**kwargs)

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

Parameters:
  • db_id (str) – The value to assign to the db_id property of this DatabaseUsageMetrics.
  • compartment_id (str) – The value to assign to the compartment_id property of this DatabaseUsageMetrics.
  • database_type (str) – The value to assign to the database_type property of this DatabaseUsageMetrics. Allowed values for this property are: “EXTERNAL_SIDB”, “EXTERNAL_RAC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • database_sub_type (str) – The value to assign to the database_sub_type property of this DatabaseUsageMetrics. Allowed values for this property are: “CDB”, “PDB”, “NON_CDB”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • database_name (str) – The value to assign to the database_name property of this DatabaseUsageMetrics.
  • database_container_id (str) – The value to assign to the database_container_id property of this DatabaseUsageMetrics.
  • metrics (list[oci.database_management.models.FleetMetricDefinition]) – The value to assign to the metrics property of this DatabaseUsageMetrics.
compartment_id

Gets the compartment_id of this DatabaseUsageMetrics. The OCID of the compartment where the Managed Database resides.

Returns:The compartment_id of this DatabaseUsageMetrics.
Return type:str
database_container_id

Gets the database_container_id of this DatabaseUsageMetrics. The OCID of the parent Container Database, in the case of a Pluggable Database.

Returns:The database_container_id of this DatabaseUsageMetrics.
Return type:str
database_name

Gets the database_name of this DatabaseUsageMetrics. The display name of the Managed Database.

Returns:The database_name of this DatabaseUsageMetrics.
Return type:str
database_sub_type

Gets the database_sub_type of this DatabaseUsageMetrics. The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, or a Non-container Database.

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

Returns:The database_sub_type of this DatabaseUsageMetrics.
Return type:str
database_type

Gets the database_type of this DatabaseUsageMetrics. The type of Oracle Database installation.

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

Returns:The database_type of this DatabaseUsageMetrics.
Return type:str
db_id

Gets the db_id of this DatabaseUsageMetrics. The OCID of the Managed Database.

Returns:The db_id of this DatabaseUsageMetrics.
Return type:str
metrics

Gets the metrics of this DatabaseUsageMetrics. A list of the database health metrics like CPU, Storage, and Memory.

Returns:The metrics of this DatabaseUsageMetrics.
Return type:list[oci.database_management.models.FleetMetricDefinition]