This data source provides details about a specific Baselineable Metrics Evaluate resource in Oracle Cloud Infrastructure Stack Monitoring service.
Evaluates metric for anomalies for the given data points
data "oci_stack_monitoring_baselineable_metrics_evaluate" "test_baselineable_metrics_evaluate" {
#Required
baselineable_metric_id = oci_stack_monitoring_baselineable_metric.test_baselineable_metric.id
items {
#Required
evaluation_data_points {
#Required
timestamp = var.baselineable_metrics_evaluate_items_evaluation_data_points_timestamp
value = var.baselineable_metrics_evaluate_items_evaluation_data_points_value
}
training_data_points {
#Required
timestamp = var.baselineable_metrics_evaluate_items_training_data_points_timestamp
value = var.baselineable_metrics_evaluate_items_training_data_points_value
}
#Optional
dimensions = var.baselineable_metrics_evaluate_items_dimensions
}
resource_id = oci_usage_proxy_resource.test_resource.id
}
The following arguments are supported:
baselineable_metric_id
- (Required) Identifier for the metricitems
- (Required) List of Metric data
dimensions
- (Optional) list of dimensions for the metricevaluation_data_points
- (Required) list of data points for the metric for evaluation of anomalies
timestamp
- (Required) timestamp of when the metric was collectedvalue
- (Required) value for the metric data pointtraining_data_points
- (Required) list of data points for the metric for training of baseline
timestamp
- (Required) timestamp of when the metric was collectedvalue
- (Required) value for the metric data pointresource_id
- (Required) OCID of the resourceThe following attributes are exported:
items
- List of Metric data
data_points
- list of anomaly data points for the metric
anomaly
- if the value is anomaly or not 0 indicates not an anomaly -1 indicates value is below the threshold +1 indicates value is above the thresholdhigh
- upper threshold for the metric valuelow
- lower threshold for the metric valuetimestamp
- timestamp of when the metric was collectedvalue
- value for the metric data pointdimensions
- list of dimensions for the metricresource_id
- OCID of the resource