Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
This data source provides the list of Cost Anomaly Event Analytics in Oracle Cloud Infrastructure Budget service.
Gets a list of Cost Anomaly Events analytics summary - aggregated metrics for a given time period.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCostAnomalyEventAnalytics = oci.Budget.getCostAnomalyEventAnalytics({
compartmentId: compartmentId,
costAnomalyMonitorId: testCostAnomalyMonitor.id,
costImpact: costAnomalyEventAnalyticCostImpact,
costImpactPercentage: costAnomalyEventAnalyticCostImpactPercentage,
name: costAnomalyEventAnalyticName,
regions: costAnomalyEventAnalyticRegion,
targetTenantIds: testTargetTenant.id,
timeAnomalyEventEndDate: costAnomalyEventAnalyticTimeAnomalyEventEndDate,
timeAnomalyEventStartDate: costAnomalyEventAnalyticTimeAnomalyEventStartDate,
});
import pulumi
import pulumi_oci as oci
test_cost_anomaly_event_analytics = oci.Budget.get_cost_anomaly_event_analytics(compartment_id=compartment_id,
cost_anomaly_monitor_id=test_cost_anomaly_monitor["id"],
cost_impact=cost_anomaly_event_analytic_cost_impact,
cost_impact_percentage=cost_anomaly_event_analytic_cost_impact_percentage,
name=cost_anomaly_event_analytic_name,
regions=cost_anomaly_event_analytic_region,
target_tenant_ids=test_target_tenant["id"],
time_anomaly_event_end_date=cost_anomaly_event_analytic_time_anomaly_event_end_date,
time_anomaly_event_start_date=cost_anomaly_event_analytic_time_anomaly_event_start_date)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/budget"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := budget.GetCostAnomalyEventAnalytics(ctx, &budget.GetCostAnomalyEventAnalyticsArgs{
CompartmentId: compartmentId,
CostAnomalyMonitorId: pulumi.StringRef(testCostAnomalyMonitor.Id),
CostImpact: pulumi.Float64Ref(costAnomalyEventAnalyticCostImpact),
CostImpactPercentage: pulumi.Float64Ref(costAnomalyEventAnalyticCostImpactPercentage),
Name: pulumi.StringRef(costAnomalyEventAnalyticName),
Regions: costAnomalyEventAnalyticRegion,
TargetTenantIds: testTargetTenant.Id,
TimeAnomalyEventEndDate: pulumi.StringRef(costAnomalyEventAnalyticTimeAnomalyEventEndDate),
TimeAnomalyEventStartDate: pulumi.StringRef(costAnomalyEventAnalyticTimeAnomalyEventStartDate),
}, 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 testCostAnomalyEventAnalytics = Oci.Budget.GetCostAnomalyEventAnalytics.Invoke(new()
{
CompartmentId = compartmentId,
CostAnomalyMonitorId = testCostAnomalyMonitor.Id,
CostImpact = costAnomalyEventAnalyticCostImpact,
CostImpactPercentage = costAnomalyEventAnalyticCostImpactPercentage,
Name = costAnomalyEventAnalyticName,
Regions = costAnomalyEventAnalyticRegion,
TargetTenantIds = testTargetTenant.Id,
TimeAnomalyEventEndDate = costAnomalyEventAnalyticTimeAnomalyEventEndDate,
TimeAnomalyEventStartDate = costAnomalyEventAnalyticTimeAnomalyEventStartDate,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Budget.BudgetFunctions;
import com.pulumi.oci.Budget.inputs.GetCostAnomalyEventAnalyticsArgs;
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 testCostAnomalyEventAnalytics = BudgetFunctions.getCostAnomalyEventAnalytics(GetCostAnomalyEventAnalyticsArgs.builder()
.compartmentId(compartmentId)
.costAnomalyMonitorId(testCostAnomalyMonitor.id())
.costImpact(costAnomalyEventAnalyticCostImpact)
.costImpactPercentage(costAnomalyEventAnalyticCostImpactPercentage)
.name(costAnomalyEventAnalyticName)
.regions(costAnomalyEventAnalyticRegion)
.targetTenantIds(testTargetTenant.id())
.timeAnomalyEventEndDate(costAnomalyEventAnalyticTimeAnomalyEventEndDate)
.timeAnomalyEventStartDate(costAnomalyEventAnalyticTimeAnomalyEventStartDate)
.build());
}
}
variables:
testCostAnomalyEventAnalytics:
fn::invoke:
function: oci:Budget:getCostAnomalyEventAnalytics
arguments:
compartmentId: ${compartmentId}
costAnomalyMonitorId: ${testCostAnomalyMonitor.id}
costImpact: ${costAnomalyEventAnalyticCostImpact}
costImpactPercentage: ${costAnomalyEventAnalyticCostImpactPercentage}
name: ${costAnomalyEventAnalyticName}
regions: ${costAnomalyEventAnalyticRegion}
targetTenantIds: ${testTargetTenant.id}
timeAnomalyEventEndDate: ${costAnomalyEventAnalyticTimeAnomalyEventEndDate}
timeAnomalyEventStartDate: ${costAnomalyEventAnalyticTimeAnomalyEventStartDate}
Using getCostAnomalyEventAnalytics
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 getCostAnomalyEventAnalytics(args: GetCostAnomalyEventAnalyticsArgs, opts?: InvokeOptions): Promise<GetCostAnomalyEventAnalyticsResult>
function getCostAnomalyEventAnalyticsOutput(args: GetCostAnomalyEventAnalyticsOutputArgs, opts?: InvokeOptions): Output<GetCostAnomalyEventAnalyticsResult>def get_cost_anomaly_event_analytics(compartment_id: Optional[str] = None,
cost_anomaly_monitor_id: Optional[str] = None,
cost_impact: Optional[float] = None,
cost_impact_percentage: Optional[float] = None,
filters: Optional[Sequence[GetCostAnomalyEventAnalyticsFilter]] = None,
name: Optional[str] = None,
regions: Optional[Sequence[str]] = None,
target_tenant_ids: Optional[Sequence[str]] = None,
time_anomaly_event_end_date: Optional[str] = None,
time_anomaly_event_start_date: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCostAnomalyEventAnalyticsResult
def get_cost_anomaly_event_analytics_output(compartment_id: Optional[pulumi.Input[str]] = None,
cost_anomaly_monitor_id: Optional[pulumi.Input[str]] = None,
cost_impact: Optional[pulumi.Input[float]] = None,
cost_impact_percentage: Optional[pulumi.Input[float]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCostAnomalyEventAnalyticsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
target_tenant_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
time_anomaly_event_end_date: Optional[pulumi.Input[str]] = None,
time_anomaly_event_start_date: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCostAnomalyEventAnalyticsResult]func GetCostAnomalyEventAnalytics(ctx *Context, args *GetCostAnomalyEventAnalyticsArgs, opts ...InvokeOption) (*GetCostAnomalyEventAnalyticsResult, error)
func GetCostAnomalyEventAnalyticsOutput(ctx *Context, args *GetCostAnomalyEventAnalyticsOutputArgs, opts ...InvokeOption) GetCostAnomalyEventAnalyticsResultOutput> Note: This function is named GetCostAnomalyEventAnalytics in the Go SDK.
public static class GetCostAnomalyEventAnalytics
{
public static Task<GetCostAnomalyEventAnalyticsResult> InvokeAsync(GetCostAnomalyEventAnalyticsArgs args, InvokeOptions? opts = null)
public static Output<GetCostAnomalyEventAnalyticsResult> Invoke(GetCostAnomalyEventAnalyticsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCostAnomalyEventAnalyticsResult> getCostAnomalyEventAnalytics(GetCostAnomalyEventAnalyticsArgs args, InvokeOptions options)
public static Output<GetCostAnomalyEventAnalyticsResult> getCostAnomalyEventAnalytics(GetCostAnomalyEventAnalyticsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Budget/getCostAnomalyEventAnalytics:getCostAnomalyEventAnalytics
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Cost
Anomaly stringMonitor Id - The cost monitor ocid.
- Cost
Impact double - cost impact (absolute) of the anomaly event.
- Cost
Impact doublePercentage - cost impact (percentage) of the anomaly event.
- Filters
List<Get
Cost Anomaly Event Analytics Filter> - Name string
- Unique, non-changeable resource name.
- Regions List<string>
- region of the anomaly event.
- Target
Tenant List<string>Ids - The target tenantId ocid filter param.
- Time
Anomaly stringEvent End Date - endDate for anomaly event date.
- Time
Anomaly stringEvent Start Date - startDate for anomaly event date.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Cost
Anomaly stringMonitor Id - The cost monitor ocid.
- Cost
Impact float64 - cost impact (absolute) of the anomaly event.
- Cost
Impact float64Percentage - cost impact (percentage) of the anomaly event.
- Filters
[]Get
Cost Anomaly Event Analytics Filter - Name string
- Unique, non-changeable resource name.
- Regions []string
- region of the anomaly event.
- Target
Tenant []stringIds - The target tenantId ocid filter param.
- Time
Anomaly stringEvent End Date - endDate for anomaly event date.
- Time
Anomaly stringEvent Start Date - startDate for anomaly event date.
- compartment
Id String - The ID of the compartment in which to list resources.
- cost
Anomaly StringMonitor Id - The cost monitor ocid.
- cost
Impact Double - cost impact (absolute) of the anomaly event.
- cost
Impact DoublePercentage - cost impact (percentage) of the anomaly event.
- filters
List<Get
Cost Anomaly Event Analytics Filter> - name String
- Unique, non-changeable resource name.
- regions List<String>
- region of the anomaly event.
- target
Tenant List<String>Ids - The target tenantId ocid filter param.
- time
Anomaly StringEvent End Date - endDate for anomaly event date.
- time
Anomaly StringEvent Start Date - startDate for anomaly event date.
- compartment
Id string - The ID of the compartment in which to list resources.
- cost
Anomaly stringMonitor Id - The cost monitor ocid.
- cost
Impact number - cost impact (absolute) of the anomaly event.
- cost
Impact numberPercentage - cost impact (percentage) of the anomaly event.
- filters
Get
Cost Anomaly Event Analytics Filter[] - name string
- Unique, non-changeable resource name.
- regions string[]
- region of the anomaly event.
- target
Tenant string[]Ids - The target tenantId ocid filter param.
- time
Anomaly stringEvent End Date - endDate for anomaly event date.
- time
Anomaly stringEvent Start Date - startDate for anomaly event date.
- compartment_
id str - The ID of the compartment in which to list resources.
- cost_
anomaly_ strmonitor_ id - The cost monitor ocid.
- cost_
impact float - cost impact (absolute) of the anomaly event.
- cost_
impact_ floatpercentage - cost impact (percentage) of the anomaly event.
- filters
Sequence[Get
Cost Anomaly Event Analytics Filter] - name str
- Unique, non-changeable resource name.
- regions Sequence[str]
- region of the anomaly event.
- target_
tenant_ Sequence[str]ids - The target tenantId ocid filter param.
- time_
anomaly_ strevent_ end_ date - endDate for anomaly event date.
- time_
anomaly_ strevent_ start_ date - startDate for anomaly event date.
- compartment
Id String - The ID of the compartment in which to list resources.
- cost
Anomaly StringMonitor Id - The cost monitor ocid.
- cost
Impact Number - cost impact (absolute) of the anomaly event.
- cost
Impact NumberPercentage - cost impact (percentage) of the anomaly event.
- filters List<Property Map>
- name String
- Unique, non-changeable resource name.
- regions List<String>
- region of the anomaly event.
- target
Tenant List<String>Ids - The target tenantId ocid filter param.
- time
Anomaly StringEvent End Date - endDate for anomaly event date.
- time
Anomaly StringEvent Start Date - startDate for anomaly event date.
getCostAnomalyEventAnalytics Result
The following output properties are available:
- Compartment
Id string - Cost
Anomaly List<GetEvent Analytic Collections Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection> - The list of cost_anomaly_event_analytic_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cost
Anomaly stringMonitor Id - Cost
Impact double - Cost
Impact doublePercentage - Filters
List<Get
Cost Anomaly Event Analytics Filter> - Name string
- Regions List<string>
- Target
Tenant List<string>Ids - Time
Anomaly stringEvent End Date - Time
Anomaly stringEvent Start Date
- Compartment
Id string - Cost
Anomaly []GetEvent Analytic Collections Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection - The list of cost_anomaly_event_analytic_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cost
Anomaly stringMonitor Id - Cost
Impact float64 - Cost
Impact float64Percentage - Filters
[]Get
Cost Anomaly Event Analytics Filter - Name string
- Regions []string
- Target
Tenant []stringIds - Time
Anomaly stringEvent End Date - Time
Anomaly stringEvent Start Date
- compartment
Id String - cost
Anomaly List<GetEvent Analytic Collections Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection> - The list of cost_anomaly_event_analytic_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- cost
Anomaly StringMonitor Id - cost
Impact Double - cost
Impact DoublePercentage - filters
List<Get
Cost Anomaly Event Analytics Filter> - name String
- regions List<String>
- target
Tenant List<String>Ids - time
Anomaly StringEvent End Date - time
Anomaly StringEvent Start Date
- compartment
Id string - cost
Anomaly GetEvent Analytic Collections Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection[] - The list of cost_anomaly_event_analytic_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- cost
Anomaly stringMonitor Id - cost
Impact number - cost
Impact numberPercentage - filters
Get
Cost Anomaly Event Analytics Filter[] - name string
- regions string[]
- target
Tenant string[]Ids - time
Anomaly stringEvent End Date - time
Anomaly stringEvent Start Date
- compartment_
id str - cost_
anomaly_ Sequence[Getevent_ analytic_ collections Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection] - The list of cost_anomaly_event_analytic_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- cost_
anomaly_ strmonitor_ id - cost_
impact float - cost_
impact_ floatpercentage - filters
Sequence[Get
Cost Anomaly Event Analytics Filter] - name str
- regions Sequence[str]
- target_
tenant_ Sequence[str]ids - time_
anomaly_ strevent_ end_ date - time_
anomaly_ strevent_ start_ date
- compartment
Id String - cost
Anomaly List<Property Map>Event Analytic Collections - The list of cost_anomaly_event_analytic_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- cost
Anomaly StringMonitor Id - cost
Impact Number - cost
Impact NumberPercentage - filters List<Property Map>
- name String
- regions List<String>
- target
Tenant List<String>Ids - time
Anomaly StringEvent End Date - time
Anomaly StringEvent Start Date
Supporting Types
GetCostAnomalyEventAnalyticsCostAnomalyEventAnalyticCollection
- Items
List<Get
Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection Item> - The list of CostAnomalyEvent Analytic summary.
- Items
[]Get
Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection Item - The list of CostAnomalyEvent Analytic summary.
- items
List<Get
Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection Item> - The list of CostAnomalyEvent Analytic summary.
- items
Get
Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection Item[] - The list of CostAnomalyEvent Analytic summary.
- items
Sequence[Get
Cost Anomaly Event Analytics Cost Anomaly Event Analytic Collection Item] - The list of CostAnomalyEvent Analytic summary.
- items List<Property Map>
- The list of CostAnomalyEvent Analytic summary.
GetCostAnomalyEventAnalyticsCostAnomalyEventAnalyticCollectionItem
- Average
Cost doubleImpact - The average cost impact of the anomaly events in the given time period.
- Average
Cost doubleVariance - The average cost variance of the anomaly events in the given time period.
- Cost
Anomaly intEvent Analytic Count - The number of cost anomaly events in the given time period.
- Average
Cost float64Impact - The average cost impact of the anomaly events in the given time period.
- Average
Cost float64Variance - The average cost variance of the anomaly events in the given time period.
- Cost
Anomaly intEvent Analytic Count - The number of cost anomaly events in the given time period.
- average
Cost DoubleImpact - The average cost impact of the anomaly events in the given time period.
- average
Cost DoubleVariance - The average cost variance of the anomaly events in the given time period.
- cost
Anomaly IntegerEvent Analytic Count - The number of cost anomaly events in the given time period.
- average
Cost numberImpact - The average cost impact of the anomaly events in the given time period.
- average
Cost numberVariance - The average cost variance of the anomaly events in the given time period.
- cost
Anomaly numberEvent Analytic Count - The number of cost anomaly events in the given time period.
- average_
cost_ floatimpact - The average cost impact of the anomaly events in the given time period.
- average_
cost_ floatvariance - The average cost variance of the anomaly events in the given time period.
- cost_
anomaly_ intevent_ analytic_ count - The number of cost anomaly events in the given time period.
- average
Cost NumberImpact - The average cost impact of the anomaly events in the given time period.
- average
Cost NumberVariance - The average cost variance of the anomaly events in the given time period.
- cost
Anomaly NumberEvent Analytic Count - The number of cost anomaly events in the given time period.
GetCostAnomalyEventAnalyticsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
