DBExternalInstance¶
- class oci.opsi.models.DBExternalInstance(**kwargs)¶
Bases:
DatabaseConfigurationMetricGroupConfiguration parameters defined for external databases instance level.
Attributes:
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
Gets the cpu_count of this DBExternalInstance.
Gets the database_status of this DBExternalInstance.
Gets the edition of this DBExternalInstance.
Gets the host_memory_capacity of this DBExternalInstance.
[Required] Gets the host_name of this DBExternalInstance.
[Required] Gets the instance_name of this DBExternalInstance.
Gets the instance_role of this DBExternalInstance.
Gets the logins of this DBExternalInstance.
[Required] Gets the metric_name of this DatabaseConfigurationMetricGroup.
Gets the parallel of this DBExternalInstance.
Gets the startup_time of this DBExternalInstance.
Gets the status of this DBExternalInstance.
Gets the time_collected of this DatabaseConfigurationMetricGroup.
Gets the version of this DBExternalInstance.
Methods:
__init__(**kwargs)Initializes a new DBExternalInstance object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- METRIC_NAME_ASM_ENTITY = 'ASM_ENTITY'¶
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. This constant has a value of “ASM_ENTITY”
- METRIC_NAME_DB_CONNECTION_STATUS = 'DB_CONNECTION_STATUS'¶
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. This constant has a value of “DB_CONNECTION_STATUS”
- METRIC_NAME_DB_EXTERNAL_INSTANCE = 'DB_EXTERNAL_INSTANCE'¶
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. This constant has a value of “DB_EXTERNAL_INSTANCE”
- METRIC_NAME_DB_EXTERNAL_PROPERTIES = 'DB_EXTERNAL_PROPERTIES'¶
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. This constant has a value of “DB_EXTERNAL_PROPERTIES”
- METRIC_NAME_DB_OS_CONFIG_INSTANCE = 'DB_OS_CONFIG_INSTANCE'¶
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. This constant has a value of “DB_OS_CONFIG_INSTANCE”
- METRIC_NAME_DB_PARAMETERS = 'DB_PARAMETERS'¶
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. This constant has a value of “DB_PARAMETERS”
- METRIC_NAME_EXADATA_CELL_CONFIG = 'EXADATA_CELL_CONFIG'¶
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. This constant has a value of “EXADATA_CELL_CONFIG”
- METRIC_NAME_HOST_RESOURCE_ALLOCATION = 'HOST_RESOURCE_ALLOCATION'¶
A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. This constant has a value of “HOST_RESOURCE_ALLOCATION”
- __init__(**kwargs)¶
Initializes a new DBExternalInstance object with values from keyword arguments. The default value of the
metric_nameattribute of this class isDB_EXTERNAL_INSTANCEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
metric_name (str) – The value to assign to the metric_name property of this DBExternalInstance. Allowed values for this property are: “DB_EXTERNAL_PROPERTIES”, “DB_EXTERNAL_INSTANCE”, “DB_OS_CONFIG_INSTANCE”, “DB_PARAMETERS”, “DB_CONNECTION_STATUS”, “HOST_RESOURCE_ALLOCATION”, “ASM_ENTITY”, “EXADATA_CELL_CONFIG”
time_collected (datetime) – The value to assign to the time_collected property of this DBExternalInstance.
instance_name (str) – The value to assign to the instance_name property of this DBExternalInstance.
host_name (str) – The value to assign to the host_name property of this DBExternalInstance.
cpu_count (int) – The value to assign to the cpu_count property of this DBExternalInstance.
host_memory_capacity (float) – The value to assign to the host_memory_capacity property of this DBExternalInstance.
version (str) – The value to assign to the version property of this DBExternalInstance.
parallel (str) – The value to assign to the parallel property of this DBExternalInstance.
instance_role (str) – The value to assign to the instance_role property of this DBExternalInstance.
logins (str) – The value to assign to the logins property of this DBExternalInstance.
database_status (str) – The value to assign to the database_status property of this DBExternalInstance.
status (str) – The value to assign to the status property of this DBExternalInstance.
edition (str) – The value to assign to the edition property of this DBExternalInstance.
startup_time (datetime) – The value to assign to the startup_time property of this DBExternalInstance.
- property cpu_count¶
Gets the cpu_count of this DBExternalInstance. Total number of CPUs allocated for the host.
- Returns
The cpu_count of this DBExternalInstance.
- Return type
int
- property database_status¶
Gets the database_status of this DBExternalInstance. Status of the database.
- Returns
The database_status of this DBExternalInstance.
- Return type
str
- property edition¶
Gets the edition of this DBExternalInstance. The edition of the database.
- Returns
The edition of this DBExternalInstance.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property host_memory_capacity¶
Gets the host_memory_capacity of this DBExternalInstance. Total amount of usable Physical RAM Memory available in gigabytes.
- Returns
The host_memory_capacity of this DBExternalInstance.
- Return type
float
- property host_name¶
[Required] Gets the host_name of this DBExternalInstance. Host name of the database instance.
- Returns
The host_name of this DBExternalInstance.
- Return type
str
- property instance_name¶
[Required] Gets the instance_name of this DBExternalInstance. Name of the database instance.
- Returns
The instance_name of this DBExternalInstance.
- Return type
str
- property instance_role¶
Gets the instance_role of this DBExternalInstance. Role (permissions) of the database instance.
- Returns
The instance_role of this DBExternalInstance.
- Return type
str
- property logins¶
Gets the logins of this DBExternalInstance. Indicates if logins are allowed or restricted.
- Returns
The logins of this DBExternalInstance.
- Return type
str
- property metric_name¶
[Required] Gets the metric_name of this DatabaseConfigurationMetricGroup. Name of the metric group.
Allowed values for this property are: “DB_EXTERNAL_PROPERTIES”, “DB_EXTERNAL_INSTANCE”, “DB_OS_CONFIG_INSTANCE”, “DB_PARAMETERS”, “DB_CONNECTION_STATUS”, “HOST_RESOURCE_ALLOCATION”, “ASM_ENTITY”, “EXADATA_CELL_CONFIG”
- Returns
The metric_name of this DatabaseConfigurationMetricGroup.
- Return type
str
- property parallel¶
Gets the parallel of this DBExternalInstance. Indicates whether the instance is mounted in cluster database mode (YES) or not (NO).
- Returns
The parallel of this DBExternalInstance.
- Return type
str
- property startup_time¶
Gets the startup_time of this DBExternalInstance. Start up time of the database instance.
- Returns
The startup_time of this DBExternalInstance.
- Return type
datetime
- property status¶
Gets the status of this DBExternalInstance. Status of the instance.
- Returns
The status of this DBExternalInstance.
- Return type
str
- property time_collected¶
Gets the time_collected of this DatabaseConfigurationMetricGroup. Collection timestamp Example: “2020-05-06T00:00:00.000Z”
- Returns
The time_collected of this DatabaseConfigurationMetricGroup.
- Return type
datetime
- property version¶
Gets the version of this DBExternalInstance. Database version.
- Returns
The version of this DBExternalInstance.
- Return type
str