Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.StackMonitoring.getBaselineableMetricsEvaluate
Explore with Pulumi AI
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
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testBaselineableMetricsEvaluate = oci.StackMonitoring.getBaselineableMetricsEvaluate({
    baselineableMetricId: testBaselineableMetric.id,
    items: [{
        evaluationDataPoints: [{
            timestamp: baselineableMetricsEvaluateItemsEvaluationDataPointsTimestamp,
            value: baselineableMetricsEvaluateItemsEvaluationDataPointsValue,
        }],
        trainingDataPoints: [{
            timestamp: baselineableMetricsEvaluateItemsTrainingDataPointsTimestamp,
            value: baselineableMetricsEvaluateItemsTrainingDataPointsValue,
        }],
        dimensions: baselineableMetricsEvaluateItemsDimensions,
    }],
    resourceId: testResource.id,
});
import pulumi
import pulumi_oci as oci
test_baselineable_metrics_evaluate = oci.StackMonitoring.get_baselineable_metrics_evaluate(baselineable_metric_id=test_baselineable_metric["id"],
    items=[{
        "evaluation_data_points": [{
            "timestamp": baselineable_metrics_evaluate_items_evaluation_data_points_timestamp,
            "value": baselineable_metrics_evaluate_items_evaluation_data_points_value,
        }],
        "training_data_points": [{
            "timestamp": baselineable_metrics_evaluate_items_training_data_points_timestamp,
            "value": baselineable_metrics_evaluate_items_training_data_points_value,
        }],
        "dimensions": baselineable_metrics_evaluate_items_dimensions,
    }],
    resource_id=test_resource["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/stackmonitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := stackmonitoring.GetBaselineableMetricsEvaluate(ctx, &stackmonitoring.GetBaselineableMetricsEvaluateArgs{
			BaselineableMetricId: testBaselineableMetric.Id,
			Items: []stackmonitoring.GetBaselineableMetricsEvaluateItem{
				{
					EvaluationDataPoints: []stackmonitoring.GetBaselineableMetricsEvaluateItemEvaluationDataPoint{
						{
							Timestamp: baselineableMetricsEvaluateItemsEvaluationDataPointsTimestamp,
							Value:     baselineableMetricsEvaluateItemsEvaluationDataPointsValue,
						},
					},
					TrainingDataPoints: []stackmonitoring.GetBaselineableMetricsEvaluateItemTrainingDataPoint{
						{
							Timestamp: baselineableMetricsEvaluateItemsTrainingDataPointsTimestamp,
							Value:     baselineableMetricsEvaluateItemsTrainingDataPointsValue,
						},
					},
					Dimensions: baselineableMetricsEvaluateItemsDimensions,
				},
			},
			ResourceId: testResource.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testBaselineableMetricsEvaluate = Oci.StackMonitoring.GetBaselineableMetricsEvaluate.Invoke(new()
    {
        BaselineableMetricId = testBaselineableMetric.Id,
        Items = new[]
        {
            new Oci.StackMonitoring.Inputs.GetBaselineableMetricsEvaluateItemInputArgs
            {
                EvaluationDataPoints = new[]
                {
                    new Oci.StackMonitoring.Inputs.GetBaselineableMetricsEvaluateItemEvaluationDataPointInputArgs
                    {
                        Timestamp = baselineableMetricsEvaluateItemsEvaluationDataPointsTimestamp,
                        Value = baselineableMetricsEvaluateItemsEvaluationDataPointsValue,
                    },
                },
                TrainingDataPoints = new[]
                {
                    new Oci.StackMonitoring.Inputs.GetBaselineableMetricsEvaluateItemTrainingDataPointInputArgs
                    {
                        Timestamp = baselineableMetricsEvaluateItemsTrainingDataPointsTimestamp,
                        Value = baselineableMetricsEvaluateItemsTrainingDataPointsValue,
                    },
                },
                Dimensions = baselineableMetricsEvaluateItemsDimensions,
            },
        },
        ResourceId = testResource.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.StackMonitoringFunctions;
import com.pulumi.oci.StackMonitoring.inputs.GetBaselineableMetricsEvaluateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testBaselineableMetricsEvaluate = StackMonitoringFunctions.getBaselineableMetricsEvaluate(GetBaselineableMetricsEvaluateArgs.builder()
            .baselineableMetricId(testBaselineableMetric.id())
            .items(GetBaselineableMetricsEvaluateItemArgs.builder()
                .evaluationDataPoints(GetBaselineableMetricsEvaluateItemEvaluationDataPointArgs.builder()
                    .timestamp(baselineableMetricsEvaluateItemsEvaluationDataPointsTimestamp)
                    .value(baselineableMetricsEvaluateItemsEvaluationDataPointsValue)
                    .build())
                .trainingDataPoints(GetBaselineableMetricsEvaluateItemTrainingDataPointArgs.builder()
                    .timestamp(baselineableMetricsEvaluateItemsTrainingDataPointsTimestamp)
                    .value(baselineableMetricsEvaluateItemsTrainingDataPointsValue)
                    .build())
                .dimensions(baselineableMetricsEvaluateItemsDimensions)
                .build())
            .resourceId(testResource.id())
            .build());
    }
}
variables:
  testBaselineableMetricsEvaluate:
    fn::invoke:
      function: oci:StackMonitoring:getBaselineableMetricsEvaluate
      arguments:
        baselineableMetricId: ${testBaselineableMetric.id}
        items:
          - evaluationDataPoints:
              - timestamp: ${baselineableMetricsEvaluateItemsEvaluationDataPointsTimestamp}
                value: ${baselineableMetricsEvaluateItemsEvaluationDataPointsValue}
            trainingDataPoints:
              - timestamp: ${baselineableMetricsEvaluateItemsTrainingDataPointsTimestamp}
                value: ${baselineableMetricsEvaluateItemsTrainingDataPointsValue}
            dimensions: ${baselineableMetricsEvaluateItemsDimensions}
        resourceId: ${testResource.id}
Using getBaselineableMetricsEvaluate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBaselineableMetricsEvaluate(args: GetBaselineableMetricsEvaluateArgs, opts?: InvokeOptions): Promise<GetBaselineableMetricsEvaluateResult>
function getBaselineableMetricsEvaluateOutput(args: GetBaselineableMetricsEvaluateOutputArgs, opts?: InvokeOptions): Output<GetBaselineableMetricsEvaluateResult>def get_baselineable_metrics_evaluate(baselineable_metric_id: Optional[str] = None,
                                      items: Optional[Sequence[GetBaselineableMetricsEvaluateItem]] = None,
                                      resource_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetBaselineableMetricsEvaluateResult
def get_baselineable_metrics_evaluate_output(baselineable_metric_id: Optional[pulumi.Input[str]] = None,
                                      items: Optional[pulumi.Input[Sequence[pulumi.Input[GetBaselineableMetricsEvaluateItemArgs]]]] = None,
                                      resource_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetBaselineableMetricsEvaluateResult]func GetBaselineableMetricsEvaluate(ctx *Context, args *GetBaselineableMetricsEvaluateArgs, opts ...InvokeOption) (*GetBaselineableMetricsEvaluateResult, error)
func GetBaselineableMetricsEvaluateOutput(ctx *Context, args *GetBaselineableMetricsEvaluateOutputArgs, opts ...InvokeOption) GetBaselineableMetricsEvaluateResultOutput> Note: This function is named GetBaselineableMetricsEvaluate in the Go SDK.
public static class GetBaselineableMetricsEvaluate 
{
    public static Task<GetBaselineableMetricsEvaluateResult> InvokeAsync(GetBaselineableMetricsEvaluateArgs args, InvokeOptions? opts = null)
    public static Output<GetBaselineableMetricsEvaluateResult> Invoke(GetBaselineableMetricsEvaluateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBaselineableMetricsEvaluateResult> getBaselineableMetricsEvaluate(GetBaselineableMetricsEvaluateArgs args, InvokeOptions options)
public static Output<GetBaselineableMetricsEvaluateResult> getBaselineableMetricsEvaluate(GetBaselineableMetricsEvaluateArgs args, InvokeOptions options)
fn::invoke:
  function: oci:StackMonitoring/getBaselineableMetricsEvaluate:getBaselineableMetricsEvaluate
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BaselineableMetric stringId 
- Identifier for the metric
- Items
List<GetBaselineable Metrics Evaluate Item> 
- List of Metric data
- ResourceId string
- OCID of the resource
- BaselineableMetric stringId 
- Identifier for the metric
- Items
[]GetBaselineable Metrics Evaluate Item 
- List of Metric data
- ResourceId string
- OCID of the resource
- baselineableMetric StringId 
- Identifier for the metric
- items
List<GetBaselineable Metrics Evaluate Item> 
- List of Metric data
- resourceId String
- OCID of the resource
- baselineableMetric stringId 
- Identifier for the metric
- items
GetBaselineable Metrics Evaluate Item[] 
- List of Metric data
- resourceId string
- OCID of the resource
- baselineable_metric_ strid 
- Identifier for the metric
- items
Sequence[GetBaselineable Metrics Evaluate Item] 
- List of Metric data
- resource_id str
- OCID of the resource
- baselineableMetric StringId 
- Identifier for the metric
- items List<Property Map>
- List of Metric data
- resourceId String
- OCID of the resource
getBaselineableMetricsEvaluate Result
The following output properties are available:
- BaselineableMetric stringId 
- DataPoints List<GetBaselineable Metrics Evaluate Data Point> 
- list of anomaly data points for the metric
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetBaselineable Metrics Evaluate Item> 
- List of Metric data
- ResourceId string
- OCID of the resource
- BaselineableMetric stringId 
- DataPoints []GetBaselineable Metrics Evaluate Data Point 
- list of anomaly data points for the metric
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetBaselineable Metrics Evaluate Item 
- List of Metric data
- ResourceId string
- OCID of the resource
- baselineableMetric StringId 
- dataPoints List<GetBaselineable Metrics Evaluate Data Point> 
- list of anomaly data points for the metric
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetBaselineable Metrics Evaluate Item> 
- List of Metric data
- resourceId String
- OCID of the resource
- baselineableMetric stringId 
- dataPoints GetBaselineable Metrics Evaluate Data Point[] 
- list of anomaly data points for the metric
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetBaselineable Metrics Evaluate Item[] 
- List of Metric data
- resourceId string
- OCID of the resource
- baselineable_metric_ strid 
- data_points Sequence[GetBaselineable Metrics Evaluate Data Point] 
- list of anomaly data points for the metric
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetBaselineable Metrics Evaluate Item] 
- List of Metric data
- resource_id str
- OCID of the resource
- baselineableMetric StringId 
- dataPoints List<Property Map>
- list of anomaly data points for the metric
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- List of Metric data
- resourceId String
- OCID of the resource
Supporting Types
GetBaselineableMetricsEvaluateDataPoint     
- Anomaly double
- 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 threshold
- High double
- upper threshold for the metric value
- Low double
- lower threshold for the metric value
- Timestamp string
- timestamp of when the metric was collected
- Value double
- value for the metric data point
- Anomaly float64
- 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 threshold
- High float64
- upper threshold for the metric value
- Low float64
- lower threshold for the metric value
- Timestamp string
- timestamp of when the metric was collected
- Value float64
- value for the metric data point
- anomaly Double
- 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 threshold
- high Double
- upper threshold for the metric value
- low Double
- lower threshold for the metric value
- timestamp String
- timestamp of when the metric was collected
- value Double
- value for the metric data point
- anomaly number
- 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 threshold
- high number
- upper threshold for the metric value
- low number
- lower threshold for the metric value
- timestamp string
- timestamp of when the metric was collected
- value number
- value for the metric data point
- anomaly float
- 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 threshold
- high float
- upper threshold for the metric value
- low float
- lower threshold for the metric value
- timestamp str
- timestamp of when the metric was collected
- value float
- value for the metric data point
- anomaly Number
- 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 threshold
- high Number
- upper threshold for the metric value
- low Number
- lower threshold for the metric value
- timestamp String
- timestamp of when the metric was collected
- value Number
- value for the metric data point
GetBaselineableMetricsEvaluateItem    
- DataPoints List<GetBaselineable Metrics Evaluate Item Data Point> 
- list of anomaly data points for the metric
- Dimensions Dictionary<string, string>
- list of dimensions for the metric
- EvaluationData List<GetPoints Baselineable Metrics Evaluate Item Evaluation Data Point> 
- list of data points for the metric for evaluation of anomalies
- TrainingData List<GetPoints Baselineable Metrics Evaluate Item Training Data Point> 
- list of data points for the metric for training of baseline
- DataPoints []GetBaselineable Metrics Evaluate Item Data Point 
- list of anomaly data points for the metric
- Dimensions map[string]string
- list of dimensions for the metric
- EvaluationData []GetPoints Baselineable Metrics Evaluate Item Evaluation Data Point 
- list of data points for the metric for evaluation of anomalies
- TrainingData []GetPoints Baselineable Metrics Evaluate Item Training Data Point 
- list of data points for the metric for training of baseline
- dataPoints List<GetBaselineable Metrics Evaluate Item Data Point> 
- list of anomaly data points for the metric
- dimensions Map<String,String>
- list of dimensions for the metric
- evaluationData List<GetPoints Baselineable Metrics Evaluate Item Evaluation Data Point> 
- list of data points for the metric for evaluation of anomalies
- trainingData List<GetPoints Baselineable Metrics Evaluate Item Training Data Point> 
- list of data points for the metric for training of baseline
- dataPoints GetBaselineable Metrics Evaluate Item Data Point[] 
- list of anomaly data points for the metric
- dimensions {[key: string]: string}
- list of dimensions for the metric
- evaluationData GetPoints Baselineable Metrics Evaluate Item Evaluation Data Point[] 
- list of data points for the metric for evaluation of anomalies
- trainingData GetPoints Baselineable Metrics Evaluate Item Training Data Point[] 
- list of data points for the metric for training of baseline
- data_points Sequence[GetBaselineable Metrics Evaluate Item Data Point] 
- list of anomaly data points for the metric
- dimensions Mapping[str, str]
- list of dimensions for the metric
- evaluation_data_ Sequence[Getpoints Baselineable Metrics Evaluate Item Evaluation Data Point] 
- list of data points for the metric for evaluation of anomalies
- training_data_ Sequence[Getpoints Baselineable Metrics Evaluate Item Training Data Point] 
- list of data points for the metric for training of baseline
- dataPoints List<Property Map>
- list of anomaly data points for the metric
- dimensions Map<String>
- list of dimensions for the metric
- evaluationData List<Property Map>Points 
- list of data points for the metric for evaluation of anomalies
- trainingData List<Property Map>Points 
- list of data points for the metric for training of baseline
GetBaselineableMetricsEvaluateItemDataPoint      
- Anomaly double
- 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 threshold
- High double
- upper threshold for the metric value
- Low double
- lower threshold for the metric value
- Timestamp string
- timestamp of when the metric was collected
- Value double
- value for the metric data point
- Anomaly float64
- 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 threshold
- High float64
- upper threshold for the metric value
- Low float64
- lower threshold for the metric value
- Timestamp string
- timestamp of when the metric was collected
- Value float64
- value for the metric data point
- anomaly Double
- 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 threshold
- high Double
- upper threshold for the metric value
- low Double
- lower threshold for the metric value
- timestamp String
- timestamp of when the metric was collected
- value Double
- value for the metric data point
- anomaly number
- 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 threshold
- high number
- upper threshold for the metric value
- low number
- lower threshold for the metric value
- timestamp string
- timestamp of when the metric was collected
- value number
- value for the metric data point
- anomaly float
- 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 threshold
- high float
- upper threshold for the metric value
- low float
- lower threshold for the metric value
- timestamp str
- timestamp of when the metric was collected
- value float
- value for the metric data point
- anomaly Number
- 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 threshold
- high Number
- upper threshold for the metric value
- low Number
- lower threshold for the metric value
- timestamp String
- timestamp of when the metric was collected
- value Number
- value for the metric data point
GetBaselineableMetricsEvaluateItemEvaluationDataPoint       
GetBaselineableMetricsEvaluateItemTrainingDataPoint       
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.