oci_stack_monitoring_baselineable_metric
This resource provides the Baselineable Metric resource in Oracle Cloud Infrastructure Stack Monitoring service.
Creates the specified Baseline-able metric
Example Usage
resource "oci_stack_monitoring_baselineable_metric" "test_baselineable_metric" {
#Required
column = var.baselineable_metric_column
compartment_id = var.compartment_id
namespace = var.baselineable_metric_namespace
#Optional
name = var.baselineable_metric_name
resource_group = var.baselineable_metric_resource_group
resource_type = var.baselineable_metric_resource_type
}
Argument Reference
The following arguments are supported:
column
- (Required) (Updatable) metric column namecompartment_id
- (Required) (Updatable) OCID of the compartmentname
- (Optional) (Updatable) name of the metricnamespace
- (Required) (Updatable) namespace of the metricresource_group
- (Optional) (Updatable) Resource group of the metricresource_type
- (Optional) (Updatable) Resource type of the metric
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
column
- metric column namecompartment_id
- OCID of the compartmentcreated_by
- Created user iddefined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
id
- OCID of the metricis_out_of_box
- Is the metric created out of box, default falselast_updated_by
- last Updated user idname
- name of the metricnamespace
- namespace of the metricresource_group
- Resource group of the metricresource_type
- Resource type of the metricstate
- The current lifecycle state of the metric extensionsystem_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}
tenancy_id
- OCID of the tenancytime_created
- creation datetime_last_updated
- last updated time
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Baselineable Metric
* update
- (Defaults to 20 minutes), when updating the Baselineable Metric
* delete
- (Defaults to 20 minutes), when destroying the Baselineable Metric
Import
BaselineableMetrics can be imported using the id
, e.g.
$ terraform import oci_stack_monitoring_baselineable_metric.test_baselineable_metric "id"