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.

Attributes:

RESOURCE_CATEGORY_APPLICATION

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails.

RESOURCE_CATEGORY_DATABASE

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails.

RESOURCE_CATEGORY_INFRASTRUCTURE

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails.

RESOURCE_CATEGORY_MIDDLEWARE

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails.

RESOURCE_CATEGORY_UNKNOWN

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails.

SOURCE_TYPE_COLLECTD

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails.

SOURCE_TYPE_OCI_NATIVE

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails.

SOURCE_TYPE_PROMETHEUS

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails.

SOURCE_TYPE_SM_MGMT_AGENT_MONITORED

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails.

SOURCE_TYPE_SM_REPO_ONLY

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails.

SOURCE_TYPE_TELEGRAF

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails.

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.

resource_category

Gets the resource_category of this CreateMonitoredResourceTypeDetails.

source_type

Gets the source_type of this CreateMonitoredResourceTypeDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateMonitoredResourceTypeDetails object with values from keyword arguments.

RESOURCE_CATEGORY_APPLICATION = 'APPLICATION'

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails. This constant has a value of “APPLICATION”

RESOURCE_CATEGORY_DATABASE = 'DATABASE'

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails. This constant has a value of “DATABASE”

RESOURCE_CATEGORY_INFRASTRUCTURE = 'INFRASTRUCTURE'

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails. This constant has a value of “INFRASTRUCTURE”

RESOURCE_CATEGORY_MIDDLEWARE = 'MIDDLEWARE'

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails. This constant has a value of “MIDDLEWARE”

RESOURCE_CATEGORY_UNKNOWN = 'UNKNOWN'

A constant which can be used with the resource_category property of a CreateMonitoredResourceTypeDetails. This constant has a value of “UNKNOWN”

SOURCE_TYPE_COLLECTD = 'COLLECTD'

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails. This constant has a value of “COLLECTD”

SOURCE_TYPE_OCI_NATIVE = 'OCI_NATIVE'

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails. This constant has a value of “OCI_NATIVE”

SOURCE_TYPE_PROMETHEUS = 'PROMETHEUS'

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails. This constant has a value of “PROMETHEUS”

SOURCE_TYPE_SM_MGMT_AGENT_MONITORED = 'SM_MGMT_AGENT_MONITORED'

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails. This constant has a value of “SM_MGMT_AGENT_MONITORED”

SOURCE_TYPE_SM_REPO_ONLY = 'SM_REPO_ONLY'

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails. This constant has a value of “SM_REPO_ONLY”

SOURCE_TYPE_TELEGRAF = 'TELEGRAF'

A constant which can be used with the source_type property of a CreateMonitoredResourceTypeDetails. This constant has a value of “TELEGRAF”

__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.

  • source_type (str) – The value to assign to the source_type property of this CreateMonitoredResourceTypeDetails. Allowed values for this property are: “SM_MGMT_AGENT_MONITORED”, “SM_REPO_ONLY”, “OCI_NATIVE”, “PROMETHEUS”, “TELEGRAF”, “COLLECTD”

  • resource_category (str) – The value to assign to the resource_category property of this CreateMonitoredResourceTypeDetails. Allowed values for this property are: “APPLICATION”, “DATABASE”, “MIDDLEWARE”, “INFRASTRUCTURE”, “UNKNOWN”

  • 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.

property compartment_id

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

Returns

The compartment_id of this CreateMonitoredResourceTypeDetails.

Return type

str

property 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))

property description

Gets the description of this CreateMonitoredResourceTypeDetails. A friendly description.

Returns

The description of this CreateMonitoredResourceTypeDetails.

Return type

str

property display_name

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

Returns

The display_name of this CreateMonitoredResourceTypeDetails.

Return type

str

property 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)

property metadata

Gets the metadata of this CreateMonitoredResourceTypeDetails.

Returns

The metadata of this CreateMonitoredResourceTypeDetails.

Return type

oci.stack_monitoring.models.ResourceTypeMetadataDetails

property metric_namespace

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

Returns

The metric_namespace of this CreateMonitoredResourceTypeDetails.

Return type

str

property 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

property resource_category

Gets the resource_category of this CreateMonitoredResourceTypeDetails. Resource Category to indicate the kind of resource type.

Allowed values for this property are: “APPLICATION”, “DATABASE”, “MIDDLEWARE”, “INFRASTRUCTURE”, “UNKNOWN”

Returns

The resource_category of this CreateMonitoredResourceTypeDetails.

Return type

str

property source_type

Gets the source_type of this CreateMonitoredResourceTypeDetails. 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”

Returns

The source_type of this CreateMonitoredResourceTypeDetails.

Return type

str