| Server IP : 162.241.203.86 / Your IP : 216.73.216.200 Web Server : Apache System : Linux br1002.hostgator.com.br 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : theart99 ( 5843) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/oci/stack_monitoring/models/ |
Upload File : |
# coding: utf-8
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20210330
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class MonitoredResourceMemberSummary(object):
"""
Monitored resource member details.
"""
#: A constant which can be used with the lifecycle_state property of a MonitoredResourceMemberSummary.
#: This constant has a value of "CREATING"
LIFECYCLE_STATE_CREATING = "CREATING"
#: A constant which can be used with the lifecycle_state property of a MonitoredResourceMemberSummary.
#: This constant has a value of "UPDATING"
LIFECYCLE_STATE_UPDATING = "UPDATING"
#: A constant which can be used with the lifecycle_state property of a MonitoredResourceMemberSummary.
#: This constant has a value of "ACTIVE"
LIFECYCLE_STATE_ACTIVE = "ACTIVE"
#: A constant which can be used with the lifecycle_state property of a MonitoredResourceMemberSummary.
#: This constant has a value of "DELETING"
LIFECYCLE_STATE_DELETING = "DELETING"
#: A constant which can be used with the lifecycle_state property of a MonitoredResourceMemberSummary.
#: This constant has a value of "DELETED"
LIFECYCLE_STATE_DELETED = "DELETED"
#: A constant which can be used with the lifecycle_state property of a MonitoredResourceMemberSummary.
#: This constant has a value of "FAILED"
LIFECYCLE_STATE_FAILED = "FAILED"
#: A constant which can be used with the license property of a MonitoredResourceMemberSummary.
#: This constant has a value of "STANDARD_EDITION"
LICENSE_STANDARD_EDITION = "STANDARD_EDITION"
#: A constant which can be used with the license property of a MonitoredResourceMemberSummary.
#: This constant has a value of "ENTERPRISE_EDITION"
LICENSE_ENTERPRISE_EDITION = "ENTERPRISE_EDITION"
#: A constant which can be used with the source_type property of a MonitoredResourceMemberSummary.
#: This constant has a value of "SM_MGMT_AGENT_MONITORED"
SOURCE_TYPE_SM_MGMT_AGENT_MONITORED = "SM_MGMT_AGENT_MONITORED"
#: A constant which can be used with the source_type property of a MonitoredResourceMemberSummary.
#: This constant has a value of "SM_REPO_ONLY"
SOURCE_TYPE_SM_REPO_ONLY = "SM_REPO_ONLY"
#: A constant which can be used with the source_type property of a MonitoredResourceMemberSummary.
#: This constant has a value of "OCI_NATIVE"
SOURCE_TYPE_OCI_NATIVE = "OCI_NATIVE"
#: A constant which can be used with the source_type property of a MonitoredResourceMemberSummary.
#: This constant has a value of "PROMETHEUS"
SOURCE_TYPE_PROMETHEUS = "PROMETHEUS"
#: A constant which can be used with the source_type property of a MonitoredResourceMemberSummary.
#: This constant has a value of "TELEGRAF"
SOURCE_TYPE_TELEGRAF = "TELEGRAF"
#: A constant which can be used with the source_type property of a MonitoredResourceMemberSummary.
#: This constant has a value of "COLLECTD"
SOURCE_TYPE_COLLECTD = "COLLECTD"
#: A constant which can be used with the resource_category property of a MonitoredResourceMemberSummary.
#: This constant has a value of "APPLICATION"
RESOURCE_CATEGORY_APPLICATION = "APPLICATION"
#: A constant which can be used with the resource_category property of a MonitoredResourceMemberSummary.
#: This constant has a value of "DATABASE"
RESOURCE_CATEGORY_DATABASE = "DATABASE"
#: A constant which can be used with the resource_category property of a MonitoredResourceMemberSummary.
#: This constant has a value of "MIDDLEWARE"
RESOURCE_CATEGORY_MIDDLEWARE = "MIDDLEWARE"
#: A constant which can be used with the resource_category property of a MonitoredResourceMemberSummary.
#: This constant has a value of "UNKNOWN"
RESOURCE_CATEGORY_UNKNOWN = "UNKNOWN"
def __init__(self, **kwargs):
"""
Initializes a new MonitoredResourceMemberSummary object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param resource_id:
The value to assign to the resource_id property of this MonitoredResourceMemberSummary.
:type resource_id: str
:param resource_name:
The value to assign to the resource_name property of this MonitoredResourceMemberSummary.
:type resource_name: str
:param resource_display_name:
The value to assign to the resource_display_name property of this MonitoredResourceMemberSummary.
:type resource_display_name: str
:param resource_type:
The value to assign to the resource_type property of this MonitoredResourceMemberSummary.
:type resource_type: str
:param host_name:
The value to assign to the host_name property of this MonitoredResourceMemberSummary.
:type host_name: str
:param external_id:
The value to assign to the external_id property of this MonitoredResourceMemberSummary.
:type external_id: str
:param compartment_id:
The value to assign to the compartment_id property of this MonitoredResourceMemberSummary.
:type compartment_id: str
:param parent_id:
The value to assign to the parent_id property of this MonitoredResourceMemberSummary.
:type parent_id: str
:param lifecycle_state:
The value to assign to the lifecycle_state property of this MonitoredResourceMemberSummary.
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'.
:type lifecycle_state: str
:param license:
The value to assign to the license property of this MonitoredResourceMemberSummary.
Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type license: str
:param source_type:
The value to assign to the source_type property of this MonitoredResourceMemberSummary.
Allowed values for this property are: "SM_MGMT_AGENT_MONITORED", "SM_REPO_ONLY", "OCI_NATIVE", "PROMETHEUS", "TELEGRAF", "COLLECTD", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type source_type: str
:param resource_category:
The value to assign to the resource_category property of this MonitoredResourceMemberSummary.
Allowed values for this property are: "APPLICATION", "DATABASE", "MIDDLEWARE", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type resource_category: str
:param freeform_tags:
The value to assign to the freeform_tags property of this MonitoredResourceMemberSummary.
:type freeform_tags: dict(str, str)
:param defined_tags:
The value to assign to the defined_tags property of this MonitoredResourceMemberSummary.
:type defined_tags: dict(str, dict(str, object))
:param system_tags:
The value to assign to the system_tags property of this MonitoredResourceMemberSummary.
:type system_tags: dict(str, dict(str, object))
"""
self.swagger_types = {
'resource_id': 'str',
'resource_name': 'str',
'resource_display_name': 'str',
'resource_type': 'str',
'host_name': 'str',
'external_id': 'str',
'compartment_id': 'str',
'parent_id': 'str',
'lifecycle_state': 'str',
'license': 'str',
'source_type': 'str',
'resource_category': 'str',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
'system_tags': 'dict(str, dict(str, object))'
}
self.attribute_map = {
'resource_id': 'resourceId',
'resource_name': 'resourceName',
'resource_display_name': 'resourceDisplayName',
'resource_type': 'resourceType',
'host_name': 'hostName',
'external_id': 'externalId',
'compartment_id': 'compartmentId',
'parent_id': 'parentId',
'lifecycle_state': 'lifecycleState',
'license': 'license',
'source_type': 'sourceType',
'resource_category': 'resourceCategory',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
'system_tags': 'systemTags'
}
self._resource_id = None
self._resource_name = None
self._resource_display_name = None
self._resource_type = None
self._host_name = None
self._external_id = None
self._compartment_id = None
self._parent_id = None
self._lifecycle_state = None
self._license = None
self._source_type = None
self._resource_category = None
self._freeform_tags = None
self._defined_tags = None
self._system_tags = None
@property
def resource_id(self):
"""
Gets the resource_id of this MonitoredResourceMemberSummary.
Monitored resource identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The resource_id of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._resource_id
@resource_id.setter
def resource_id(self, resource_id):
"""
Sets the resource_id of this MonitoredResourceMemberSummary.
Monitored resource identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param resource_id: The resource_id of this MonitoredResourceMemberSummary.
:type: str
"""
self._resource_id = resource_id
@property
def resource_name(self):
"""
Gets the resource_name of this MonitoredResourceMemberSummary.
Monitored Resource Name.
:return: The resource_name of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._resource_name
@resource_name.setter
def resource_name(self, resource_name):
"""
Sets the resource_name of this MonitoredResourceMemberSummary.
Monitored Resource Name.
:param resource_name: The resource_name of this MonitoredResourceMemberSummary.
:type: str
"""
self._resource_name = resource_name
@property
def resource_display_name(self):
"""
Gets the resource_display_name of this MonitoredResourceMemberSummary.
Monitored resource display name.
:return: The resource_display_name of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._resource_display_name
@resource_display_name.setter
def resource_display_name(self, resource_display_name):
"""
Sets the resource_display_name of this MonitoredResourceMemberSummary.
Monitored resource display name.
:param resource_display_name: The resource_display_name of this MonitoredResourceMemberSummary.
:type: str
"""
self._resource_display_name = resource_display_name
@property
def resource_type(self):
"""
Gets the resource_type of this MonitoredResourceMemberSummary.
Monitored Resource Type.
:return: The resource_type of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._resource_type
@resource_type.setter
def resource_type(self, resource_type):
"""
Sets the resource_type of this MonitoredResourceMemberSummary.
Monitored Resource Type.
:param resource_type: The resource_type of this MonitoredResourceMemberSummary.
:type: str
"""
self._resource_type = resource_type
@property
def host_name(self):
"""
Gets the host_name of this MonitoredResourceMemberSummary.
Monitored Resource Host Name.
:return: The host_name of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._host_name
@host_name.setter
def host_name(self, host_name):
"""
Sets the host_name of this MonitoredResourceMemberSummary.
Monitored Resource Host Name.
:param host_name: The host_name of this MonitoredResourceMemberSummary.
:type: str
"""
self._host_name = host_name
@property
def external_id(self):
"""
Gets the external_id of this MonitoredResourceMemberSummary.
External resource is any OCI resource identifier `OCID`__
which is not a Stack Monitoring service resource.
Currently supports only following resource types - Container database, non-container database,
pluggable database and OCI compute instance.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The external_id of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._external_id
@external_id.setter
def external_id(self, external_id):
"""
Sets the external_id of this MonitoredResourceMemberSummary.
External resource is any OCI resource identifier `OCID`__
which is not a Stack Monitoring service resource.
Currently supports only following resource types - Container database, non-container database,
pluggable database and OCI compute instance.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param external_id: The external_id of this MonitoredResourceMemberSummary.
:type: str
"""
self._external_id = external_id
@property
def compartment_id(self):
"""
Gets the compartment_id of this MonitoredResourceMemberSummary.
Compartment Identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The compartment_id of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._compartment_id
@compartment_id.setter
def compartment_id(self, compartment_id):
"""
Sets the compartment_id of this MonitoredResourceMemberSummary.
Compartment Identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param compartment_id: The compartment_id of this MonitoredResourceMemberSummary.
:type: str
"""
self._compartment_id = compartment_id
@property
def parent_id(self):
"""
Gets the parent_id of this MonitoredResourceMemberSummary.
Parent monitored resource identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The parent_id of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._parent_id
@parent_id.setter
def parent_id(self, parent_id):
"""
Sets the parent_id of this MonitoredResourceMemberSummary.
Parent monitored resource identifier `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param parent_id: The parent_id of this MonitoredResourceMemberSummary.
:type: str
"""
self._parent_id = parent_id
@property
def lifecycle_state(self):
"""
Gets the lifecycle_state of this MonitoredResourceMemberSummary.
The current state of the Resource.
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'.
:return: The lifecycle_state of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._lifecycle_state
@lifecycle_state.setter
def lifecycle_state(self, lifecycle_state):
"""
Sets the lifecycle_state of this MonitoredResourceMemberSummary.
The current state of the Resource.
:param lifecycle_state: The lifecycle_state of this MonitoredResourceMemberSummary.
:type: str
"""
allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
lifecycle_state = 'UNKNOWN_ENUM_VALUE'
self._lifecycle_state = lifecycle_state
@property
def license(self):
"""
Gets the license of this MonitoredResourceMemberSummary.
License edition of the monitored resource.
Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The license of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._license
@license.setter
def license(self, license):
"""
Sets the license of this MonitoredResourceMemberSummary.
License edition of the monitored resource.
:param license: The license of this MonitoredResourceMemberSummary.
:type: str
"""
allowed_values = ["STANDARD_EDITION", "ENTERPRISE_EDITION"]
if not value_allowed_none_or_none_sentinel(license, allowed_values):
license = 'UNKNOWN_ENUM_VALUE'
self._license = license
@property
def source_type(self):
"""
Gets the source_type of this MonitoredResourceMemberSummary.
Source type to indicate if the resource is stack monitoring discovered, OCI native resource, etc.
Allowed values for this property are: "SM_MGMT_AGENT_MONITORED", "SM_REPO_ONLY", "OCI_NATIVE", "PROMETHEUS", "TELEGRAF", "COLLECTD", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The source_type of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._source_type
@source_type.setter
def source_type(self, source_type):
"""
Sets the source_type of this MonitoredResourceMemberSummary.
Source type to indicate if the resource is stack monitoring discovered, OCI native resource, etc.
:param source_type: The source_type of this MonitoredResourceMemberSummary.
:type: str
"""
allowed_values = ["SM_MGMT_AGENT_MONITORED", "SM_REPO_ONLY", "OCI_NATIVE", "PROMETHEUS", "TELEGRAF", "COLLECTD"]
if not value_allowed_none_or_none_sentinel(source_type, allowed_values):
source_type = 'UNKNOWN_ENUM_VALUE'
self._source_type = source_type
@property
def resource_category(self):
"""
Gets the resource_category of this MonitoredResourceMemberSummary.
Resource Category to indicate the kind of resource type.
Allowed values for this property are: "APPLICATION", "DATABASE", "MIDDLEWARE", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The resource_category of this MonitoredResourceMemberSummary.
:rtype: str
"""
return self._resource_category
@resource_category.setter
def resource_category(self, resource_category):
"""
Sets the resource_category of this MonitoredResourceMemberSummary.
Resource Category to indicate the kind of resource type.
:param resource_category: The resource_category of this MonitoredResourceMemberSummary.
:type: str
"""
allowed_values = ["APPLICATION", "DATABASE", "MIDDLEWARE", "UNKNOWN"]
if not value_allowed_none_or_none_sentinel(resource_category, allowed_values):
resource_category = 'UNKNOWN_ENUM_VALUE'
self._resource_category = resource_category
@property
def freeform_tags(self):
"""
Gets the freeform_tags of this MonitoredResourceMemberSummary.
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
Example: `{\"bar-key\": \"value\"}`
:return: The freeform_tags of this MonitoredResourceMemberSummary.
:rtype: dict(str, str)
"""
return self._freeform_tags
@freeform_tags.setter
def freeform_tags(self, freeform_tags):
"""
Sets the freeform_tags of this MonitoredResourceMemberSummary.
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
Example: `{\"bar-key\": \"value\"}`
:param freeform_tags: The freeform_tags of this MonitoredResourceMemberSummary.
:type: dict(str, str)
"""
self._freeform_tags = freeform_tags
@property
def defined_tags(self):
"""
Gets the defined_tags of this MonitoredResourceMemberSummary.
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
:return: The defined_tags of this MonitoredResourceMemberSummary.
:rtype: dict(str, dict(str, object))
"""
return self._defined_tags
@defined_tags.setter
def defined_tags(self, defined_tags):
"""
Sets the defined_tags of this MonitoredResourceMemberSummary.
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
:param defined_tags: The defined_tags of this MonitoredResourceMemberSummary.
:type: dict(str, dict(str, object))
"""
self._defined_tags = defined_tags
@property
def system_tags(self):
"""
Gets the system_tags of this MonitoredResourceMemberSummary.
Usage of system tag keys. These predefined keys are scoped to namespaces.
Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
:return: The system_tags of this MonitoredResourceMemberSummary.
:rtype: dict(str, dict(str, object))
"""
return self._system_tags
@system_tags.setter
def system_tags(self, system_tags):
"""
Sets the system_tags of this MonitoredResourceMemberSummary.
Usage of system tag keys. These predefined keys are scoped to namespaces.
Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
:param system_tags: The system_tags of this MonitoredResourceMemberSummary.
:type: dict(str, dict(str, object))
"""
self._system_tags = system_tags
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other