CreateMonitoredResourceTypeDetails

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

Bases: object

The information about new monitored resource type. The resource type name should be unique across tenancy. A set of resource types are created by the service by default. These resource types are available for all tenancies. Service provided resource types can not be duplicated or overwritten in any tenancy.

Methods

__init__(**kwargs) Initializes a new CreateMonitoredResourceTypeDetails object with values from keyword arguments.

Attributes

compartment_id [Required] Gets the compartment_id of this CreateMonitoredResourceTypeDetails.
defined_tags Gets the defined_tags of this CreateMonitoredResourceTypeDetails.
description Gets the description of this CreateMonitoredResourceTypeDetails.
display_name Gets the display_name of this CreateMonitoredResourceTypeDetails.
freeform_tags Gets the freeform_tags of this CreateMonitoredResourceTypeDetails.
metadata Gets the metadata of this CreateMonitoredResourceTypeDetails.
metric_namespace Gets the metric_namespace of this CreateMonitoredResourceTypeDetails.
name [Required] Gets the name of this CreateMonitoredResourceTypeDetails.
__init__(**kwargs)

Initializes a new CreateMonitoredResourceTypeDetails 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 CreateMonitoredResourceTypeDetails.
  • display_name (str) – The value to assign to the display_name property of this CreateMonitoredResourceTypeDetails.
  • description (str) – The value to assign to the description property of this CreateMonitoredResourceTypeDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateMonitoredResourceTypeDetails.
  • metric_namespace (str) – The value to assign to the metric_namespace property of this CreateMonitoredResourceTypeDetails.
  • metadata (oci.stack_monitoring.models.ResourceTypeMetadataDetails) – The value to assign to the metadata property of this CreateMonitoredResourceTypeDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateMonitoredResourceTypeDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateMonitoredResourceTypeDetails.
compartment_id

[Required] Gets the compartment_id of this CreateMonitoredResourceTypeDetails. The OCID of the tenancy containing the resource type.

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

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

Gets the description of this CreateMonitoredResourceTypeDetails. A friendly description.

Returns:The description of this CreateMonitoredResourceTypeDetails.
Return type:str
display_name

Gets the display_name of this CreateMonitoredResourceTypeDetails. Monitored resource type display name.

Returns:The display_name of this CreateMonitoredResourceTypeDetails.
Return type:str
freeform_tags

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

Gets the metadata of this CreateMonitoredResourceTypeDetails.

Returns:The metadata of this CreateMonitoredResourceTypeDetails.
Return type:oci.stack_monitoring.models.ResourceTypeMetadataDetails
metric_namespace

Gets the metric_namespace of this CreateMonitoredResourceTypeDetails. Metric namespace for resource type.

Returns:The metric_namespace of this CreateMonitoredResourceTypeDetails.
Return type:str
name

[Required] Gets the name of this CreateMonitoredResourceTypeDetails. A unique monitored resource type name. The name must be unique across tenancy. Name can not be changed.

Returns:The name of this CreateMonitoredResourceTypeDetails.
Return type:str