DatabaseHaMetrics¶
-
class
oci.database_management.models.
DatabaseHaMetrics
(**kwargs)¶ Bases:
object
The details of the HA metrics for a single database.
Attributes
DATABASE_SUB_TYPE_ACD
A constant which can be used with the database_sub_type property of a DatabaseHaMetrics. DATABASE_SUB_TYPE_ADB
A constant which can be used with the database_sub_type property of a DatabaseHaMetrics. DATABASE_SUB_TYPE_CDB
A constant which can be used with the database_sub_type property of a DatabaseHaMetrics. DATABASE_SUB_TYPE_NON_CDB
A constant which can be used with the database_sub_type property of a DatabaseHaMetrics. DATABASE_SUB_TYPE_PDB
A constant which can be used with the database_sub_type property of a DatabaseHaMetrics. DATABASE_TYPE_CLOUD_RAC
A constant which can be used with the database_type property of a DatabaseHaMetrics. DATABASE_TYPE_CLOUD_SIDB
A constant which can be used with the database_type property of a DatabaseHaMetrics. DATABASE_TYPE_DEDICATED
A constant which can be used with the database_type property of a DatabaseHaMetrics. DATABASE_TYPE_EXTERNAL_RAC
A constant which can be used with the database_type property of a DatabaseHaMetrics. DATABASE_TYPE_EXTERNAL_SIDB
A constant which can be used with the database_type property of a DatabaseHaMetrics. DATABASE_TYPE_SHARED
A constant which can be used with the database_type property of a DatabaseHaMetrics. DB_ROLE_FAR_SYNC
A constant which can be used with the db_role property of a DatabaseHaMetrics. DB_ROLE_LOGICAL_STANDBY
A constant which can be used with the db_role property of a DatabaseHaMetrics. DB_ROLE_PHYSICAL_STANDBY
A constant which can be used with the db_role property of a DatabaseHaMetrics. DB_ROLE_PRIMARY
A constant which can be used with the db_role property of a DatabaseHaMetrics. DB_ROLE_SNAPSHOT_STANDBY
A constant which can be used with the db_role property of a DatabaseHaMetrics. DEPLOYMENT_TYPE_AUTONOMOUS
A constant which can be used with the deployment_type property of a DatabaseHaMetrics. DEPLOYMENT_TYPE_BM
A constant which can be used with the deployment_type property of a DatabaseHaMetrics. DEPLOYMENT_TYPE_EXADATA
A constant which can be used with the deployment_type property of a DatabaseHaMetrics. DEPLOYMENT_TYPE_EXADATA_CC
A constant which can be used with the deployment_type property of a DatabaseHaMetrics. DEPLOYMENT_TYPE_EXADATA_XS
A constant which can be used with the deployment_type property of a DatabaseHaMetrics. DEPLOYMENT_TYPE_ONPREMISE
A constant which can be used with the deployment_type property of a DatabaseHaMetrics. DEPLOYMENT_TYPE_VM
A constant which can be used with the deployment_type property of a DatabaseHaMetrics. WORKLOAD_TYPE_AJD
A constant which can be used with the workload_type property of a DatabaseHaMetrics. WORKLOAD_TYPE_APEX
A constant which can be used with the workload_type property of a DatabaseHaMetrics. WORKLOAD_TYPE_DW
A constant which can be used with the workload_type property of a DatabaseHaMetrics. WORKLOAD_TYPE_OLTP
A constant which can be used with the workload_type property of a DatabaseHaMetrics. compartment_id
[Required] Gets the compartment_id of this DatabaseHaMetrics. database_id
Gets the database_id of this DatabaseHaMetrics. database_name
[Required] Gets the database_name of this DatabaseHaMetrics. database_sub_type
[Required] Gets the database_sub_type of this DatabaseHaMetrics. database_type
[Required] Gets the database_type of this DatabaseHaMetrics. database_version
Gets the database_version of this DatabaseHaMetrics. db_id
[Required] Gets the db_id of this DatabaseHaMetrics. db_role
[Required] Gets the db_role of this DatabaseHaMetrics. db_unique_name
Gets the db_unique_name of this DatabaseHaMetrics. deployment_type
[Required] Gets the deployment_type of this DatabaseHaMetrics. is_dataguard_enabled
[Required] Gets the is_dataguard_enabled of this DatabaseHaMetrics. last_backup_summary
[Required] Gets the last_backup_summary of this DatabaseHaMetrics. metrics
[Required] Gets the metrics of this DatabaseHaMetrics. workload_type
Gets the workload_type of this DatabaseHaMetrics. Methods
__init__
(**kwargs)Initializes a new DatabaseHaMetrics object with values from keyword arguments. -
DATABASE_SUB_TYPE_ACD
= 'ACD'¶ A constant which can be used with the database_sub_type property of a DatabaseHaMetrics. This constant has a value of “ACD”
-
DATABASE_SUB_TYPE_ADB
= 'ADB'¶ A constant which can be used with the database_sub_type property of a DatabaseHaMetrics. This constant has a value of “ADB”
-
DATABASE_SUB_TYPE_CDB
= 'CDB'¶ A constant which can be used with the database_sub_type property of a DatabaseHaMetrics. 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 DatabaseHaMetrics. 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 DatabaseHaMetrics. This constant has a value of “PDB”
-
DATABASE_TYPE_CLOUD_RAC
= 'CLOUD_RAC'¶ A constant which can be used with the database_type property of a DatabaseHaMetrics. This constant has a value of “CLOUD_RAC”
-
DATABASE_TYPE_CLOUD_SIDB
= 'CLOUD_SIDB'¶ A constant which can be used with the database_type property of a DatabaseHaMetrics. This constant has a value of “CLOUD_SIDB”
-
DATABASE_TYPE_DEDICATED
= 'DEDICATED'¶ A constant which can be used with the database_type property of a DatabaseHaMetrics. This constant has a value of “DEDICATED”
-
DATABASE_TYPE_EXTERNAL_RAC
= 'EXTERNAL_RAC'¶ A constant which can be used with the database_type property of a DatabaseHaMetrics. 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 DatabaseHaMetrics. This constant has a value of “EXTERNAL_SIDB”
-
DATABASE_TYPE_SHARED
= 'SHARED'¶ A constant which can be used with the database_type property of a DatabaseHaMetrics. This constant has a value of “SHARED”
-
DB_ROLE_FAR_SYNC
= 'FAR_SYNC'¶ A constant which can be used with the db_role property of a DatabaseHaMetrics. This constant has a value of “FAR_SYNC”
-
DB_ROLE_LOGICAL_STANDBY
= 'LOGICAL_STANDBY'¶ A constant which can be used with the db_role property of a DatabaseHaMetrics. This constant has a value of “LOGICAL_STANDBY”
-
DB_ROLE_PHYSICAL_STANDBY
= 'PHYSICAL_STANDBY'¶ A constant which can be used with the db_role property of a DatabaseHaMetrics. This constant has a value of “PHYSICAL_STANDBY”
-
DB_ROLE_PRIMARY
= 'PRIMARY'¶ A constant which can be used with the db_role property of a DatabaseHaMetrics. This constant has a value of “PRIMARY”
-
DB_ROLE_SNAPSHOT_STANDBY
= 'SNAPSHOT_STANDBY'¶ A constant which can be used with the db_role property of a DatabaseHaMetrics. This constant has a value of “SNAPSHOT_STANDBY”
-
DEPLOYMENT_TYPE_AUTONOMOUS
= 'AUTONOMOUS'¶ A constant which can be used with the deployment_type property of a DatabaseHaMetrics. This constant has a value of “AUTONOMOUS”
-
DEPLOYMENT_TYPE_BM
= 'BM'¶ A constant which can be used with the deployment_type property of a DatabaseHaMetrics. This constant has a value of “BM”
-
DEPLOYMENT_TYPE_EXADATA
= 'EXADATA'¶ A constant which can be used with the deployment_type property of a DatabaseHaMetrics. This constant has a value of “EXADATA”
-
DEPLOYMENT_TYPE_EXADATA_CC
= 'EXADATA_CC'¶ A constant which can be used with the deployment_type property of a DatabaseHaMetrics. This constant has a value of “EXADATA_CC”
-
DEPLOYMENT_TYPE_EXADATA_XS
= 'EXADATA_XS'¶ A constant which can be used with the deployment_type property of a DatabaseHaMetrics. This constant has a value of “EXADATA_XS”
-
DEPLOYMENT_TYPE_ONPREMISE
= 'ONPREMISE'¶ A constant which can be used with the deployment_type property of a DatabaseHaMetrics. This constant has a value of “ONPREMISE”
-
DEPLOYMENT_TYPE_VM
= 'VM'¶ A constant which can be used with the deployment_type property of a DatabaseHaMetrics. This constant has a value of “VM”
-
WORKLOAD_TYPE_AJD
= 'AJD'¶ A constant which can be used with the workload_type property of a DatabaseHaMetrics. This constant has a value of “AJD”
-
WORKLOAD_TYPE_APEX
= 'APEX'¶ A constant which can be used with the workload_type property of a DatabaseHaMetrics. This constant has a value of “APEX”
-
WORKLOAD_TYPE_DW
= 'DW'¶ A constant which can be used with the workload_type property of a DatabaseHaMetrics. This constant has a value of “DW”
-
WORKLOAD_TYPE_OLTP
= 'OLTP'¶ A constant which can be used with the workload_type property of a DatabaseHaMetrics. This constant has a value of “OLTP”
-
__init__
(**kwargs)¶ Initializes a new DatabaseHaMetrics object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - is_dataguard_enabled (bool) – The value to assign to the is_dataguard_enabled property of this DatabaseHaMetrics.
- last_backup_summary (oci.database_management.models.DatabaseBackupSummary) – The value to assign to the last_backup_summary property of this DatabaseHaMetrics.
- metrics (list[oci.database_management.models.HaMetricDefinition]) – The value to assign to the metrics property of this DatabaseHaMetrics.
- db_id (str) – The value to assign to the db_id property of this DatabaseHaMetrics.
- compartment_id (str) – The value to assign to the compartment_id property of this DatabaseHaMetrics.
- database_type (str) – The value to assign to the database_type property of this DatabaseHaMetrics. Allowed values for this property are: “EXTERNAL_SIDB”, “EXTERNAL_RAC”, “CLOUD_SIDB”, “CLOUD_RAC”, “SHARED”, “DEDICATED”, ‘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 DatabaseHaMetrics. Allowed values for this property are: “CDB”, “PDB”, “NON_CDB”, “ACD”, “ADB”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- deployment_type (str) – The value to assign to the deployment_type property of this DatabaseHaMetrics. Allowed values for this property are: “ONPREMISE”, “BM”, “VM”, “EXADATA”, “EXADATA_CC”, “AUTONOMOUS”, “EXADATA_XS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- database_version (str) – The value to assign to the database_version property of this DatabaseHaMetrics.
- workload_type (str) – The value to assign to the workload_type property of this DatabaseHaMetrics. Allowed values for this property are: “OLTP”, “DW”, “AJD”, “APEX”, ‘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 DatabaseHaMetrics.
- database_id (str) – The value to assign to the database_id property of this DatabaseHaMetrics.
- db_unique_name (str) – The value to assign to the db_unique_name property of this DatabaseHaMetrics.
- db_role (str) – The value to assign to the db_role property of this DatabaseHaMetrics. Allowed values for this property are: “SNAPSHOT_STANDBY”, “LOGICAL_STANDBY”, “PHYSICAL_STANDBY”, “PRIMARY”, “FAR_SYNC”, ‘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 DatabaseHaMetrics. The OCID of the compartment where the Managed Database resides.
Returns: The compartment_id of this DatabaseHaMetrics. Return type: str
-
database_id
¶ Gets the database_id of this DatabaseHaMetrics. The database ID of the Managed Database. Every database had its own ID and that value is captured here.
Returns: The database_id of this DatabaseHaMetrics. Return type: str
-
database_name
¶ [Required] Gets the database_name of this DatabaseHaMetrics. The display name of the Managed Database.
Returns: The database_name of this DatabaseHaMetrics. Return type: str
-
database_sub_type
¶ [Required] Gets the database_sub_type of this DatabaseHaMetrics. The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
Allowed values for this property are: “CDB”, “PDB”, “NON_CDB”, “ACD”, “ADB”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The database_sub_type of this DatabaseHaMetrics. Return type: str
-
database_type
¶ [Required] Gets the database_type of this DatabaseHaMetrics. The type of Oracle Database installation.
Allowed values for this property are: “EXTERNAL_SIDB”, “EXTERNAL_RAC”, “CLOUD_SIDB”, “CLOUD_RAC”, “SHARED”, “DEDICATED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The database_type of this DatabaseHaMetrics. Return type: str
-
database_version
¶ Gets the database_version of this DatabaseHaMetrics. The Oracle Database version.
Returns: The database_version of this DatabaseHaMetrics. Return type: str
-
db_id
¶ [Required] Gets the db_id of this DatabaseHaMetrics. The OCID of the Managed Database.
Returns: The db_id of this DatabaseHaMetrics. Return type: str
-
db_role
¶ [Required] Gets the db_role of this DatabaseHaMetrics. The database role of the Managed Database.
Allowed values for this property are: “SNAPSHOT_STANDBY”, “LOGICAL_STANDBY”, “PHYSICAL_STANDBY”, “PRIMARY”, “FAR_SYNC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The db_role of this DatabaseHaMetrics. Return type: str
-
db_unique_name
¶ Gets the db_unique_name of this DatabaseHaMetrics. The database unique name of the Managed Database.
Returns: The db_unique_name of this DatabaseHaMetrics. Return type: str
-
deployment_type
¶ [Required] Gets the deployment_type of this DatabaseHaMetrics. The infrastructure used to deploy the Oracle Database.
Allowed values for this property are: “ONPREMISE”, “BM”, “VM”, “EXADATA”, “EXADATA_CC”, “AUTONOMOUS”, “EXADATA_XS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The deployment_type of this DatabaseHaMetrics. Return type: str
-
is_dataguard_enabled
¶ [Required] Gets the is_dataguard_enabled of this DatabaseHaMetrics. Indicates whether Data Guard is enabled for the database.
Returns: The is_dataguard_enabled of this DatabaseHaMetrics. Return type: bool
-
last_backup_summary
¶ [Required] Gets the last_backup_summary of this DatabaseHaMetrics.
Returns: The last_backup_summary of this DatabaseHaMetrics. Return type: oci.database_management.models.DatabaseBackupSummary
-
metrics
¶ [Required] Gets the metrics of this DatabaseHaMetrics. A list of database health metrics such as BackupDuration and BackupSize.
Returns: The metrics of this DatabaseHaMetrics. Return type: list[oci.database_management.models.HaMetricDefinition]
-
workload_type
¶ Gets the workload_type of this DatabaseHaMetrics. The workload type of the Autonomous Database.
Allowed values for this property are: “OLTP”, “DW”, “AJD”, “APEX”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The workload_type of this DatabaseHaMetrics. Return type: str
-