Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.StackMonitoring.getBaselineableMetricsEvaluate
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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:
- Baselineable
Metric stringId - Identifier for the metric
- Items
List<Get
Baselineable Metrics Evaluate Item> - List of Metric data
- Resource
Id string - OCID of the resource
- Baselineable
Metric stringId - Identifier for the metric
- Items
[]Get
Baselineable Metrics Evaluate Item - List of Metric data
- Resource
Id string - OCID of the resource
- baselineable
Metric StringId - Identifier for the metric
- items
List<Get
Baselineable Metrics Evaluate Item> - List of Metric data
- resource
Id String - OCID of the resource
- baselineable
Metric stringId - Identifier for the metric
- items
Get
Baselineable Metrics Evaluate Item[] - List of Metric data
- resource
Id string - OCID of the resource
- baselineable_
metric_ strid - Identifier for the metric
- items
Sequence[stackmonitoring.
Get Baselineable Metrics Evaluate Item] - List of Metric data
- resource_
id str - OCID of the resource
- baselineable
Metric StringId - Identifier for the metric
- items List<Property Map>
- List of Metric data
- resource
Id String - OCID of the resource
getBaselineableMetricsEvaluate Result
The following output properties are available:
- Baselineable
Metric stringId - Data
Points 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<Get
Baselineable Metrics Evaluate Item> - List of Metric data
- Resource
Id string - OCID of the resource
- Baselineable
Metric stringId - Data
Points []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
[]Get
Baselineable Metrics Evaluate Item - List of Metric data
- Resource
Id string - OCID of the resource
- baselineable
Metric StringId - data
Points 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<Get
Baselineable Metrics Evaluate Item> - List of Metric data
- resource
Id String - OCID of the resource
- baselineable
Metric stringId - data
Points 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
Get
Baselineable Metrics Evaluate Item[] - List of Metric data
- resource
Id string - OCID of the resource
- baselineable_
metric_ strid - data_
points Sequence[stackmonitoring.Get Baselineable 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[stackmonitoring.
Get Baselineable Metrics Evaluate Item] - List of Metric data
- resource_
id str - OCID of the resource
- baselineable
Metric StringId - data
Points 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
- resource
Id 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
- Data
Points List<GetBaselineable Metrics Evaluate Item Data Point> - list of anomaly data points for the metric
- Dimensions Dictionary<string, object>
- list of dimensions for the metric
- Evaluation
Data List<GetPoints Baselineable Metrics Evaluate Item Evaluation Data Point> - list of data points for the metric for evaluation of anomalies
- Training
Data List<GetPoints Baselineable Metrics Evaluate Item Training Data Point> - list of data points for the metric for training of baseline
- Data
Points []GetBaselineable Metrics Evaluate Item Data Point - list of anomaly data points for the metric
- Dimensions map[string]interface{}
- list of dimensions for the metric
- Evaluation
Data []GetPoints Baselineable Metrics Evaluate Item Evaluation Data Point - list of data points for the metric for evaluation of anomalies
- Training
Data []GetPoints Baselineable Metrics Evaluate Item Training Data Point - list of data points for the metric for training of baseline
- data
Points List<GetBaselineable Metrics Evaluate Item Data Point> - list of anomaly data points for the metric
- dimensions Map<String,Object>
- list of dimensions for the metric
- evaluation
Data List<GetPoints Baselineable Metrics Evaluate Item Evaluation Data Point> - list of data points for the metric for evaluation of anomalies
- training
Data List<GetPoints Baselineable Metrics Evaluate Item Training Data Point> - list of data points for the metric for training of baseline
- data
Points GetBaselineable Metrics Evaluate Item Data Point[] - list of anomaly data points for the metric
- dimensions {[key: string]: any}
- list of dimensions for the metric
- evaluation
Data GetPoints Baselineable Metrics Evaluate Item Evaluation Data Point[] - list of data points for the metric for evaluation of anomalies
- training
Data GetPoints Baselineable Metrics Evaluate Item Training Data Point[] - list of data points for the metric for training of baseline
- data_
points Sequence[stackmonitoring.Get Baselineable Metrics Evaluate Item Data Point] - list of anomaly data points for the metric
- dimensions Mapping[str, Any]
- list of dimensions for the metric
- evaluation_
data_ Sequence[stackmonitoring.points Get Baselineable Metrics Evaluate Item Evaluation Data Point] - list of data points for the metric for evaluation of anomalies
- training_
data_ Sequence[stackmonitoring.points Get Baselineable Metrics Evaluate Item Training Data Point] - list of data points for the metric for training of baseline
- data
Points List<Property Map> - list of anomaly data points for the metric
- dimensions Map<Any>
- list of dimensions for the metric
- evaluation
Data List<Property Map>Points - list of data points for the metric for evaluation of anomalies
- training
Data 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi