1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getBaselineableMetricsEvaluate
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.StackMonitoring.getBaselineableMetricsEvaluate

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

    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=[oci.stack_monitoring.GetBaselineableMetricsEvaluateItemArgs(
            evaluation_data_points=[oci.stack_monitoring.GetBaselineableMetricsEvaluateItemEvaluationDataPointArgs(
                timestamp=baselineable_metrics_evaluate_items_evaluation_data_points_timestamp,
                value=baselineable_metrics_evaluate_items_evaluation_data_points_value,
            )],
            training_data_points=[oci.stack_monitoring.GetBaselineableMetricsEvaluateItemTrainingDataPointArgs(
                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/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[_stackmonitoring.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[_stackmonitoring.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:StackMonitoring/getBaselineableMetricsEvaluate:getBaselineableMetricsEvaluate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BaselineableMetricId string
    Identifier for the metric
    Items List<GetBaselineableMetricsEvaluateItem>
    List of Metric data
    ResourceId string
    OCID of the resource
    BaselineableMetricId string
    Identifier for the metric
    Items []GetBaselineableMetricsEvaluateItem
    List of Metric data
    ResourceId string
    OCID of the resource
    baselineableMetricId String
    Identifier for the metric
    items List<GetBaselineableMetricsEvaluateItem>
    List of Metric data
    resourceId String
    OCID of the resource
    baselineableMetricId string
    Identifier for the metric
    items GetBaselineableMetricsEvaluateItem[]
    List of Metric data
    resourceId string
    OCID of the resource
    baselineable_metric_id str
    Identifier for the metric
    items Sequence[stackmonitoring.GetBaselineableMetricsEvaluateItem]
    List of Metric data
    resource_id str
    OCID of the resource
    baselineableMetricId String
    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:

    BaselineableMetricId string
    DataPoints List<GetBaselineableMetricsEvaluateDataPoint>
    list of anomaly data points for the metric
    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetBaselineableMetricsEvaluateItem>
    List of Metric data
    ResourceId string
    OCID of the resource
    BaselineableMetricId string
    DataPoints []GetBaselineableMetricsEvaluateDataPoint
    list of anomaly data points for the metric
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetBaselineableMetricsEvaluateItem
    List of Metric data
    ResourceId string
    OCID of the resource
    baselineableMetricId String
    dataPoints List<GetBaselineableMetricsEvaluateDataPoint>
    list of anomaly data points for the metric
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetBaselineableMetricsEvaluateItem>
    List of Metric data
    resourceId String
    OCID of the resource
    baselineableMetricId string
    dataPoints GetBaselineableMetricsEvaluateDataPoint[]
    list of anomaly data points for the metric
    id string
    The provider-assigned unique ID for this managed resource.
    items GetBaselineableMetricsEvaluateItem[]
    List of Metric data
    resourceId string
    OCID of the resource
    baselineable_metric_id str
    data_points Sequence[stackmonitoring.GetBaselineableMetricsEvaluateDataPoint]
    list of anomaly data points for the metric
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[stackmonitoring.GetBaselineableMetricsEvaluateItem]
    List of Metric data
    resource_id str
    OCID of the resource
    baselineableMetricId String
    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<GetBaselineableMetricsEvaluateItemDataPoint>
    list of anomaly data points for the metric
    Dimensions Dictionary<string, object>
    list of dimensions for the metric
    EvaluationDataPoints List<GetBaselineableMetricsEvaluateItemEvaluationDataPoint>
    list of data points for the metric for evaluation of anomalies
    TrainingDataPoints List<GetBaselineableMetricsEvaluateItemTrainingDataPoint>
    list of data points for the metric for training of baseline
    DataPoints []GetBaselineableMetricsEvaluateItemDataPoint
    list of anomaly data points for the metric
    Dimensions map[string]interface{}
    list of dimensions for the metric
    EvaluationDataPoints []GetBaselineableMetricsEvaluateItemEvaluationDataPoint
    list of data points for the metric for evaluation of anomalies
    TrainingDataPoints []GetBaselineableMetricsEvaluateItemTrainingDataPoint
    list of data points for the metric for training of baseline
    dataPoints List<GetBaselineableMetricsEvaluateItemDataPoint>
    list of anomaly data points for the metric
    dimensions Map<String,Object>
    list of dimensions for the metric
    evaluationDataPoints List<GetBaselineableMetricsEvaluateItemEvaluationDataPoint>
    list of data points for the metric for evaluation of anomalies
    trainingDataPoints List<GetBaselineableMetricsEvaluateItemTrainingDataPoint>
    list of data points for the metric for training of baseline
    dataPoints GetBaselineableMetricsEvaluateItemDataPoint[]
    list of anomaly data points for the metric
    dimensions {[key: string]: any}
    list of dimensions for the metric
    evaluationDataPoints GetBaselineableMetricsEvaluateItemEvaluationDataPoint[]
    list of data points for the metric for evaluation of anomalies
    trainingDataPoints GetBaselineableMetricsEvaluateItemTrainingDataPoint[]
    list of data points for the metric for training of baseline
    data_points Sequence[stackmonitoring.GetBaselineableMetricsEvaluateItemDataPoint]
    list of anomaly data points for the metric
    dimensions Mapping[str, Any]
    list of dimensions for the metric
    evaluation_data_points Sequence[stackmonitoring.GetBaselineableMetricsEvaluateItemEvaluationDataPoint]
    list of data points for the metric for evaluation of anomalies
    training_data_points Sequence[stackmonitoring.GetBaselineableMetricsEvaluateItemTrainingDataPoint]
    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<Any>
    list of dimensions for the metric
    evaluationDataPoints List<Property Map>
    list of data points for the metric for evaluation of anomalies
    trainingDataPoints List<Property Map>
    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

    Timestamp string
    timestamp of when the metric was collected
    Value double
    value for the metric data point
    Timestamp string
    timestamp of when the metric was collected
    Value float64
    value for the metric data point
    timestamp String
    timestamp of when the metric was collected
    value Double
    value for the metric data point
    timestamp string
    timestamp of when the metric was collected
    value number
    value for the metric data point
    timestamp str
    timestamp of when the metric was collected
    value float
    value for the metric data point
    timestamp String
    timestamp of when the metric was collected
    value Number
    value for the metric data point

    GetBaselineableMetricsEvaluateItemTrainingDataPoint

    Timestamp string
    timestamp of when the metric was collected
    Value double
    value for the metric data point
    Timestamp string
    timestamp of when the metric was collected
    Value float64
    value for the metric data point
    timestamp String
    timestamp of when the metric was collected
    value Double
    value for the metric data point
    timestamp string
    timestamp of when the metric was collected
    value number
    value for the metric data point
    timestamp str
    timestamp of when the metric was collected
    value float
    value for the metric data point
    timestamp String
    timestamp of when the metric was collected
    value Number
    value for the metric data point

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi