AwrHubSource

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

Bases: object

Awr hub source object

Attributes:

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a AwrHubSource.

LIFECYCLE_STATE_CREATING

A constant which can be used with the lifecycle_state property of a AwrHubSource.

LIFECYCLE_STATE_DELETED

A constant which can be used with the lifecycle_state property of a AwrHubSource.

LIFECYCLE_STATE_DELETING

A constant which can be used with the lifecycle_state property of a AwrHubSource.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a AwrHubSource.

LIFECYCLE_STATE_UPDATING

A constant which can be used with the lifecycle_state property of a AwrHubSource.

STATUS_ACCEPTING

A constant which can be used with the status property of a AwrHubSource.

STATUS_NOT_ACCEPTING

A constant which can be used with the status property of a AwrHubSource.

STATUS_NOT_REGISTERED

A constant which can be used with the status property of a AwrHubSource.

STATUS_TERMINATED

A constant which can be used with the status property of a AwrHubSource.

TYPE_ADW_D

A constant which can be used with the type property of a AwrHubSource.

TYPE_ADW_S

A constant which can be used with the type property of a AwrHubSource.

TYPE_AJD_D

A constant which can be used with the type property of a AwrHubSource.

TYPE_AJD_S

A constant which can be used with the type property of a AwrHubSource.

TYPE_APEX_D

A constant which can be used with the type property of a AwrHubSource.

TYPE_APEX_S

A constant which can be used with the type property of a AwrHubSource.

TYPE_ATP_D

A constant which can be used with the type property of a AwrHubSource.

TYPE_ATP_S

A constant which can be used with the type property of a AwrHubSource.

TYPE_AVD_D

A constant which can be used with the type property of a AwrHubSource.

TYPE_AVD_S

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_BM_CDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_BM_NONCDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_BM_PDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_EXACS_CDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_EXACS_NONCDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_EXACS_PDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_VM_CDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_VM_NONCDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_COMANAGED_VM_PDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_EXTERNAL_NONCDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_EXTERNAL_PDB

A constant which can be used with the type property of a AwrHubSource.

TYPE_LH_D

A constant which can be used with the type property of a AwrHubSource.

TYPE_LH_S

A constant which can be used with the type property of a AwrHubSource.

TYPE_UNDEFINED

A constant which can be used with the type property of a AwrHubSource.

associated_opsi_id

Gets the associated_opsi_id of this AwrHubSource.

associated_resource_id

Gets the associated_resource_id of this AwrHubSource.

awr_hub_id

[Required] Gets the awr_hub_id of this AwrHubSource.

awr_hub_opsi_source_id

[Required] Gets the awr_hub_opsi_source_id of this AwrHubSource.

awr_source_database_id

Gets the awr_source_database_id of this AwrHubSource.

compartment_id

[Required] Gets the compartment_id of this AwrHubSource.

defined_tags

Gets the defined_tags of this AwrHubSource.

freeform_tags

Gets the freeform_tags of this AwrHubSource.

hours_since_last_import

Gets the hours_since_last_import of this AwrHubSource.

id

[Required] Gets the id of this AwrHubSource.

is_registered_with_awr_hub

Gets the is_registered_with_awr_hub of this AwrHubSource.

lifecycle_state

[Required] Gets the lifecycle_state of this AwrHubSource.

max_snapshot_identifier

Gets the max_snapshot_identifier of this AwrHubSource.

min_snapshot_identifier

Gets the min_snapshot_identifier of this AwrHubSource.

name

[Required] Gets the name of this AwrHubSource.

source_mail_box_url

[Required] Gets the source_mail_box_url of this AwrHubSource.

status

[Required] Gets the status of this AwrHubSource.

system_tags

Gets the system_tags of this AwrHubSource.

time_created

[Required] Gets the time_created of this AwrHubSource.

time_first_snapshot_generated

Gets the time_first_snapshot_generated of this AwrHubSource.

time_last_snapshot_generated

Gets the time_last_snapshot_generated of this AwrHubSource.

time_updated

Gets the time_updated of this AwrHubSource.

type

[Required] Gets the type of this AwrHubSource.

Methods:

__init__(**kwargs)

Initializes a new AwrHubSource object with values from keyword arguments.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a AwrHubSource. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a AwrHubSource. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a AwrHubSource. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a AwrHubSource. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a AwrHubSource. This constant has a value of “FAILED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a AwrHubSource. This constant has a value of “UPDATING”

STATUS_ACCEPTING = 'ACCEPTING'

A constant which can be used with the status property of a AwrHubSource. This constant has a value of “ACCEPTING”

STATUS_NOT_ACCEPTING = 'NOT_ACCEPTING'

A constant which can be used with the status property of a AwrHubSource. This constant has a value of “NOT_ACCEPTING”

STATUS_NOT_REGISTERED = 'NOT_REGISTERED'

A constant which can be used with the status property of a AwrHubSource. This constant has a value of “NOT_REGISTERED”

STATUS_TERMINATED = 'TERMINATED'

A constant which can be used with the status property of a AwrHubSource. This constant has a value of “TERMINATED”

TYPE_ADW_D = 'ADW_D'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “ADW_D”

TYPE_ADW_S = 'ADW_S'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “ADW_S”

TYPE_AJD_D = 'AJD_D'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “AJD_D”

TYPE_AJD_S = 'AJD_S'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “AJD_S”

TYPE_APEX_D = 'APEX_D'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “APEX_D”

TYPE_APEX_S = 'APEX_S'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “APEX_S”

TYPE_ATP_D = 'ATP_D'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “ATP_D”

TYPE_ATP_S = 'ATP_S'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “ATP_S”

TYPE_AVD_D = 'AVD_D'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “AVD_D”

TYPE_AVD_S = 'AVD_S'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “AVD_S”

TYPE_COMANAGED_BM_CDB = 'COMANAGED_BM_CDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_BM_CDB”

TYPE_COMANAGED_BM_NONCDB = 'COMANAGED_BM_NONCDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_BM_NONCDB”

TYPE_COMANAGED_BM_PDB = 'COMANAGED_BM_PDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_BM_PDB”

TYPE_COMANAGED_EXACS_CDB = 'COMANAGED_EXACS_CDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_EXACS_CDB”

TYPE_COMANAGED_EXACS_NONCDB = 'COMANAGED_EXACS_NONCDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_EXACS_NONCDB”

TYPE_COMANAGED_EXACS_PDB = 'COMANAGED_EXACS_PDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_EXACS_PDB”

TYPE_COMANAGED_VM_CDB = 'COMANAGED_VM_CDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_VM_CDB”

TYPE_COMANAGED_VM_NONCDB = 'COMANAGED_VM_NONCDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_VM_NONCDB”

TYPE_COMANAGED_VM_PDB = 'COMANAGED_VM_PDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “COMANAGED_VM_PDB”

TYPE_EXTERNAL_NONCDB = 'EXTERNAL_NONCDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “EXTERNAL_NONCDB”

TYPE_EXTERNAL_PDB = 'EXTERNAL_PDB'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “EXTERNAL_PDB”

TYPE_LH_D = 'LH_D'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “LH_D”

TYPE_LH_S = 'LH_S'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “LH_S”

TYPE_UNDEFINED = 'UNDEFINED'

A constant which can be used with the type property of a AwrHubSource. This constant has a value of “UNDEFINED”

__init__(**kwargs)

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

Parameters
  • name (str) – The value to assign to the name property of this AwrHubSource.

  • awr_hub_id (str) – The value to assign to the awr_hub_id property of this AwrHubSource.

  • compartment_id (str) – The value to assign to the compartment_id property of this AwrHubSource.

  • type (str) – The value to assign to the type property of this AwrHubSource. Allowed values for this property are: “ADW_S”, “ATP_S”, “ADW_D”, “ATP_D”, “EXTERNAL_PDB”, “EXTERNAL_NONCDB”, “COMANAGED_VM_CDB”, “COMANAGED_VM_PDB”, “COMANAGED_VM_NONCDB”, “COMANAGED_BM_CDB”, “COMANAGED_BM_PDB”, “COMANAGED_BM_NONCDB”, “COMANAGED_EXACS_CDB”, “COMANAGED_EXACS_PDB”, “COMANAGED_EXACS_NONCDB”, “LH_S”, “APEX_S”, “AJD_S”, “AVD_S”, “LH_D”, “APEX_D”, “AJD_D”, “AVD_D”, “UNDEFINED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • id (str) – The value to assign to the id property of this AwrHubSource.

  • awr_hub_opsi_source_id (str) – The value to assign to the awr_hub_opsi_source_id property of this AwrHubSource.

  • source_mail_box_url (str) – The value to assign to the source_mail_box_url property of this AwrHubSource.

  • associated_resource_id (str) – The value to assign to the associated_resource_id property of this AwrHubSource.

  • associated_opsi_id (str) – The value to assign to the associated_opsi_id property of this AwrHubSource.

  • time_created (datetime) – The value to assign to the time_created property of this AwrHubSource.

  • time_updated (datetime) – The value to assign to the time_updated property of this AwrHubSource.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this AwrHubSource.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this AwrHubSource.

  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this AwrHubSource.

  • is_registered_with_awr_hub (bool) – The value to assign to the is_registered_with_awr_hub property of this AwrHubSource.

  • awr_source_database_id (str) – The value to assign to the awr_source_database_id property of this AwrHubSource.

  • min_snapshot_identifier (float) – The value to assign to the min_snapshot_identifier property of this AwrHubSource.

  • max_snapshot_identifier (float) – The value to assign to the max_snapshot_identifier property of this AwrHubSource.

  • time_first_snapshot_generated (datetime) – The value to assign to the time_first_snapshot_generated property of this AwrHubSource.

  • time_last_snapshot_generated (datetime) – The value to assign to the time_last_snapshot_generated property of this AwrHubSource.

  • hours_since_last_import (float) – The value to assign to the hours_since_last_import property of this AwrHubSource.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this AwrHubSource. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • status (str) – The value to assign to the status property of this AwrHubSource. Allowed values for this property are: “ACCEPTING”, “NOT_ACCEPTING”, “NOT_REGISTERED”, “TERMINATED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property associated_opsi_id

Gets the associated_opsi_id of this AwrHubSource. The OCID of the database id.

Returns

The associated_opsi_id of this AwrHubSource.

Return type

str

property associated_resource_id

Gets the associated_resource_id of this AwrHubSource. The OCID of the database id.

Returns

The associated_resource_id of this AwrHubSource.

Return type

str

property awr_hub_id

[Required] Gets the awr_hub_id of this AwrHubSource. AWR Hub OCID

Returns

The awr_hub_id of this AwrHubSource.

Return type

str

property awr_hub_opsi_source_id

[Required] Gets the awr_hub_opsi_source_id of this AwrHubSource. The shorted string of the Awr Hub source database identifier.

Returns

The awr_hub_opsi_source_id of this AwrHubSource.

Return type

str

property awr_source_database_id

Gets the awr_source_database_id of this AwrHubSource. DatabaseId of the Source database for which AWR Data will be uploaded to AWR Hub.

Returns

The awr_source_database_id of this AwrHubSource.

Return type

str

property compartment_id

[Required] Gets the compartment_id of this AwrHubSource. The OCID of the compartment.

Returns

The compartment_id of this AwrHubSource.

Return type

str

property defined_tags

Gets the defined_tags of this AwrHubSource. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns

The defined_tags of this AwrHubSource.

Return type

dict(str, dict(str, object))

property freeform_tags

Gets the freeform_tags of this AwrHubSource. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns

The freeform_tags of this AwrHubSource.

Return type

dict(str, str)

property hours_since_last_import

Gets the hours_since_last_import of this AwrHubSource. Number of hours since last AWR snapshots import happened from the Source database.

Returns

The hours_since_last_import of this AwrHubSource.

Return type

float

property id

[Required] Gets the id of this AwrHubSource. The OCID of the Awr Hub source database.

Returns

The id of this AwrHubSource.

Return type

str

property is_registered_with_awr_hub

Gets the is_registered_with_awr_hub of this AwrHubSource. This is true if the source databse is registered with a Awr Hub, otherwise false

Returns

The is_registered_with_awr_hub of this AwrHubSource.

Return type

bool

property lifecycle_state

[Required] Gets the lifecycle_state of this AwrHubSource. the current state of the source database

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The lifecycle_state of this AwrHubSource.

Return type

str

property max_snapshot_identifier

Gets the max_snapshot_identifier of this AwrHubSource. The maximum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.

Returns

The max_snapshot_identifier of this AwrHubSource.

Return type

float

property min_snapshot_identifier

Gets the min_snapshot_identifier of this AwrHubSource. The minimum snapshot identifier of the source database for which AWR data is uploaded to AWR Hub.

Returns

The min_snapshot_identifier of this AwrHubSource.

Return type

float

property name

[Required] Gets the name of this AwrHubSource. The name of the Awr Hub source database.

Returns

The name of this AwrHubSource.

Return type

str

property source_mail_box_url

[Required] Gets the source_mail_box_url of this AwrHubSource. Opsi Mailbox URL based on the Awr Hub and Awr Hub source.

Returns

The source_mail_box_url of this AwrHubSource.

Return type

str

property status

[Required] Gets the status of this AwrHubSource. Indicates the status of a source database in Operations Insights

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

Returns

The status of this AwrHubSource.

Return type

str

property system_tags

Gets the system_tags of this AwrHubSource. System tags for this resource. Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns

The system_tags of this AwrHubSource.

Return type

dict(str, dict(str, object))

property time_created

[Required] Gets the time_created of this AwrHubSource. The time at which the resource was first created. An RFC3339 formatted datetime string

Returns

The time_created of this AwrHubSource.

Return type

datetime

property time_first_snapshot_generated

Gets the time_first_snapshot_generated of this AwrHubSource. The time at which the earliest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string

Returns

The time_first_snapshot_generated of this AwrHubSource.

Return type

datetime

property time_last_snapshot_generated

Gets the time_last_snapshot_generated of this AwrHubSource. The time at which the latest snapshot was generated in the source database for which data is uploaded to AWR Hub. An RFC3339 formatted datetime string

Returns

The time_last_snapshot_generated of this AwrHubSource.

Return type

datetime

property time_updated

Gets the time_updated of this AwrHubSource. The time at which the resource was last updated. An RFC3339 formatted datetime string

Returns

The time_updated of this AwrHubSource.

Return type

datetime

property type

[Required] Gets the type of this AwrHubSource. source type of the database

Allowed values for this property are: “ADW_S”, “ATP_S”, “ADW_D”, “ATP_D”, “EXTERNAL_PDB”, “EXTERNAL_NONCDB”, “COMANAGED_VM_CDB”, “COMANAGED_VM_PDB”, “COMANAGED_VM_NONCDB”, “COMANAGED_BM_CDB”, “COMANAGED_BM_PDB”, “COMANAGED_BM_NONCDB”, “COMANAGED_EXACS_CDB”, “COMANAGED_EXACS_PDB”, “COMANAGED_EXACS_NONCDB”, “LH_S”, “APEX_S”, “AJD_S”, “AVD_S”, “LH_D”, “APEX_D”, “AJD_D”, “AVD_D”, “UNDEFINED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The type of this AwrHubSource.

Return type

str