DBOSConfigInstance

class oci.opsi.models.DBOSConfigInstance(**kwargs)

Bases: DatabaseConfigurationMetricGroup

Configuration parameters defined for external databases instance level.

Attributes:

METRIC_NAME_ASM_ENTITY

A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.

METRIC_NAME_DB_CONNECTION_STATUS

A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.

METRIC_NAME_DB_EXTERNAL_INSTANCE

A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.

METRIC_NAME_DB_EXTERNAL_PROPERTIES

A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.

METRIC_NAME_DB_OS_CONFIG_INSTANCE

A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.

METRIC_NAME_DB_PARAMETERS

A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.

METRIC_NAME_EXADATA_CELL_CONFIG

A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.

METRIC_NAME_HOST_RESOURCE_ALLOCATION

A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.

host_name

[Required] Gets the host_name of this DBOSConfigInstance.

instance_name

[Required] Gets the instance_name of this DBOSConfigInstance.

metric_name

[Required] Gets the metric_name of this DatabaseConfigurationMetricGroup.

num_cp_us

Gets the num_cp_us of this DBOSConfigInstance.

num_cpu_cores

Gets the num_cpu_cores of this DBOSConfigInstance.

num_cpu_sockets

Gets the num_cpu_sockets of this DBOSConfigInstance.

physical_memory_bytes

Gets the physical_memory_bytes of this DBOSConfigInstance.

time_collected

Gets the time_collected of this DatabaseConfigurationMetricGroup.

Methods:

__init__(**kwargs)

Initializes a new DBOSConfigInstance 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 DBOSConfigInstance object with values from keyword arguments. The default value of the metric_name attribute of this class is DB_OS_CONFIG_INSTANCE and 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 DBOSConfigInstance. 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 DBOSConfigInstance.

  • instance_name (str) – The value to assign to the instance_name property of this DBOSConfigInstance.

  • host_name (str) – The value to assign to the host_name property of this DBOSConfigInstance.

  • num_cp_us (int) – The value to assign to the num_cp_us property of this DBOSConfigInstance.

  • num_cpu_cores (int) – The value to assign to the num_cpu_cores property of this DBOSConfigInstance.

  • num_cpu_sockets (int) – The value to assign to the num_cpu_sockets property of this DBOSConfigInstance.

  • physical_memory_bytes (float) – The value to assign to the physical_memory_bytes property of this DBOSConfigInstance.

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_name

[Required] Gets the host_name of this DBOSConfigInstance. Host name of the database instance.

Returns

The host_name of this DBOSConfigInstance.

Return type

str

property instance_name

[Required] Gets the instance_name of this DBOSConfigInstance. Name of the database instance.

Returns

The instance_name of this DBOSConfigInstance.

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 num_cp_us

Gets the num_cp_us of this DBOSConfigInstance. Total number of CPUs available.

Returns

The num_cp_us of this DBOSConfigInstance.

Return type

int

property num_cpu_cores

Gets the num_cpu_cores of this DBOSConfigInstance. Number of CPU cores available (includes subcores of multicore CPUs as well as single-core CPUs).

Returns

The num_cpu_cores of this DBOSConfigInstance.

Return type

int

property num_cpu_sockets

Gets the num_cpu_sockets of this DBOSConfigInstance. Number of CPU Sockets available.

Returns

The num_cpu_sockets of this DBOSConfigInstance.

Return type

int

property physical_memory_bytes

Gets the physical_memory_bytes of this DBOSConfigInstance. Total number of bytes of physical memory.

Returns

The physical_memory_bytes of this DBOSConfigInstance.

Return type

float

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