MonitoredResourceAssociation

class oci.stack_monitoring.models.MonitoredResourceAssociation(**kwargs)

Bases: object

Association details between two monitored resources.

Attributes

CATEGORY_SYSTEM A constant which can be used with the category property of a MonitoredResourceAssociation.
CATEGORY_USER_API A constant which can be used with the category property of a MonitoredResourceAssociation.
CATEGORY_USER_TAG_ASSOC A constant which can be used with the category property of a MonitoredResourceAssociation.
association_type [Required] Gets the association_type of this MonitoredResourceAssociation.
category Gets the category of this MonitoredResourceAssociation.
compartment_id [Required] Gets the compartment_id of this MonitoredResourceAssociation.
defined_tags Gets the defined_tags of this MonitoredResourceAssociation.
destination_resource_details Gets the destination_resource_details of this MonitoredResourceAssociation.
destination_resource_id [Required] Gets the destination_resource_id of this MonitoredResourceAssociation.
freeform_tags Gets the freeform_tags of this MonitoredResourceAssociation.
source_resource_details Gets the source_resource_details of this MonitoredResourceAssociation.
source_resource_id [Required] Gets the source_resource_id of this MonitoredResourceAssociation.
system_tags Gets the system_tags of this MonitoredResourceAssociation.
tenant_id [Required] Gets the tenant_id of this MonitoredResourceAssociation.
time_created Gets the time_created of this MonitoredResourceAssociation.

Methods

__init__(**kwargs) Initializes a new MonitoredResourceAssociation object with values from keyword arguments.
CATEGORY_SYSTEM = 'SYSTEM'

A constant which can be used with the category property of a MonitoredResourceAssociation. This constant has a value of “SYSTEM”

CATEGORY_USER_API = 'USER_API'

A constant which can be used with the category property of a MonitoredResourceAssociation. This constant has a value of “USER_API”

CATEGORY_USER_TAG_ASSOC = 'USER_TAG_ASSOC'

A constant which can be used with the category property of a MonitoredResourceAssociation. This constant has a value of “USER_TAG_ASSOC”

__init__(**kwargs)

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

Parameters:
  • association_type (str) – The value to assign to the association_type property of this MonitoredResourceAssociation.
  • compartment_id (str) – The value to assign to the compartment_id property of this MonitoredResourceAssociation.
  • tenant_id (str) – The value to assign to the tenant_id property of this MonitoredResourceAssociation.
  • source_resource_id (str) – The value to assign to the source_resource_id property of this MonitoredResourceAssociation.
  • destination_resource_id (str) – The value to assign to the destination_resource_id property of this MonitoredResourceAssociation.
  • source_resource_details (oci.stack_monitoring.models.AssociationResourceDetails) – The value to assign to the source_resource_details property of this MonitoredResourceAssociation.
  • destination_resource_details (oci.stack_monitoring.models.AssociationResourceDetails) – The value to assign to the destination_resource_details property of this MonitoredResourceAssociation.
  • time_created (datetime) – The value to assign to the time_created property of this MonitoredResourceAssociation.
  • category (str) – The value to assign to the category property of this MonitoredResourceAssociation. Allowed values for this property are: “SYSTEM”, “USER_API”, “USER_TAG_ASSOC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this MonitoredResourceAssociation.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this MonitoredResourceAssociation.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this MonitoredResourceAssociation.
association_type

[Required] Gets the association_type of this MonitoredResourceAssociation. Association Type.

Returns:The association_type of this MonitoredResourceAssociation.
Return type:str
category

Gets the category of this MonitoredResourceAssociation. Association category. Possible values are: - System created (SYSTEM), - User created using API (USER_API) - User created using tags (USER_TAG_ASSOC).

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

Returns:The category of this MonitoredResourceAssociation.
Return type:str
compartment_id

[Required] Gets the compartment_id of this MonitoredResourceAssociation. Compartment Identifier OCID.

Returns:The compartment_id of this MonitoredResourceAssociation.
Return type:str
defined_tags

Gets the defined_tags of this MonitoredResourceAssociation. 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 MonitoredResourceAssociation.
Return type:dict(str, dict(str, object))
destination_resource_details

Gets the destination_resource_details of this MonitoredResourceAssociation.

Returns:The destination_resource_details of this MonitoredResourceAssociation.
Return type:oci.stack_monitoring.models.AssociationResourceDetails
destination_resource_id

[Required] Gets the destination_resource_id of this MonitoredResourceAssociation. Destination Monitored Resource Identifier OCID.

Returns:The destination_resource_id of this MonitoredResourceAssociation.
Return type:str
freeform_tags

Gets the freeform_tags of this MonitoredResourceAssociation. 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 MonitoredResourceAssociation.
Return type:dict(str, str)
source_resource_details

Gets the source_resource_details of this MonitoredResourceAssociation.

Returns:The source_resource_details of this MonitoredResourceAssociation.
Return type:oci.stack_monitoring.models.AssociationResourceDetails
source_resource_id

[Required] Gets the source_resource_id of this MonitoredResourceAssociation. Source Monitored Resource Identifier OCID.

Returns:The source_resource_id of this MonitoredResourceAssociation.
Return type:str
system_tags

Gets the system_tags of this MonitoredResourceAssociation. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this MonitoredResourceAssociation.
Return type:dict(str, dict(str, object))
tenant_id

[Required] Gets the tenant_id of this MonitoredResourceAssociation. Tenancy Identifier OCID.

Returns:The tenant_id of this MonitoredResourceAssociation.
Return type:str
time_created

Gets the time_created of this MonitoredResourceAssociation. The time when the association was created. An RFC3339 formatted datetime string.

Returns:The time_created of this MonitoredResourceAssociation.
Return type:datetime