1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Budget
  5. getCostAnomalyEvents
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    This data source provides the list of Cost Anomaly Events in Oracle Cloud Infrastructure Budget service.

    Gets a list of Cost Anomaly Event in a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCostAnomalyEvents = oci.Budget.getCostAnomalyEvents({
        compartmentId: compartmentId,
        costAnomalyMonitorId: testCostAnomalyMonitor.id,
        costImpact: costAnomalyEventCostImpact,
        costImpactPercentage: costAnomalyEventCostImpactPercentage,
        name: costAnomalyEventName,
        regions: costAnomalyEventRegion,
        targetTenantIds: testTargetTenant.id,
        timeAnomalyEventEndDate: costAnomalyEventTimeAnomalyEventEndDate,
        timeAnomalyEventStartDate: costAnomalyEventTimeAnomalyEventStartDate,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cost_anomaly_events = oci.Budget.get_cost_anomaly_events(compartment_id=compartment_id,
        cost_anomaly_monitor_id=test_cost_anomaly_monitor["id"],
        cost_impact=cost_anomaly_event_cost_impact,
        cost_impact_percentage=cost_anomaly_event_cost_impact_percentage,
        name=cost_anomaly_event_name,
        regions=cost_anomaly_event_region,
        target_tenant_ids=test_target_tenant["id"],
        time_anomaly_event_end_date=cost_anomaly_event_time_anomaly_event_end_date,
        time_anomaly_event_start_date=cost_anomaly_event_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.GetCostAnomalyEvents(ctx, &budget.GetCostAnomalyEventsArgs{
    			CompartmentId:             compartmentId,
    			CostAnomalyMonitorId:      pulumi.StringRef(testCostAnomalyMonitor.Id),
    			CostImpact:                pulumi.Float64Ref(costAnomalyEventCostImpact),
    			CostImpactPercentage:      pulumi.Float64Ref(costAnomalyEventCostImpactPercentage),
    			Name:                      pulumi.StringRef(costAnomalyEventName),
    			Regions:                   costAnomalyEventRegion,
    			TargetTenantIds:           testTargetTenant.Id,
    			TimeAnomalyEventEndDate:   pulumi.StringRef(costAnomalyEventTimeAnomalyEventEndDate),
    			TimeAnomalyEventStartDate: pulumi.StringRef(costAnomalyEventTimeAnomalyEventStartDate),
    		}, 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 testCostAnomalyEvents = Oci.Budget.GetCostAnomalyEvents.Invoke(new()
        {
            CompartmentId = compartmentId,
            CostAnomalyMonitorId = testCostAnomalyMonitor.Id,
            CostImpact = costAnomalyEventCostImpact,
            CostImpactPercentage = costAnomalyEventCostImpactPercentage,
            Name = costAnomalyEventName,
            Regions = costAnomalyEventRegion,
            TargetTenantIds = testTargetTenant.Id,
            TimeAnomalyEventEndDate = costAnomalyEventTimeAnomalyEventEndDate,
            TimeAnomalyEventStartDate = costAnomalyEventTimeAnomalyEventStartDate,
        });
    
    });
    
    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.GetCostAnomalyEventsArgs;
    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 testCostAnomalyEvents = BudgetFunctions.getCostAnomalyEvents(GetCostAnomalyEventsArgs.builder()
                .compartmentId(compartmentId)
                .costAnomalyMonitorId(testCostAnomalyMonitor.id())
                .costImpact(costAnomalyEventCostImpact)
                .costImpactPercentage(costAnomalyEventCostImpactPercentage)
                .name(costAnomalyEventName)
                .regions(costAnomalyEventRegion)
                .targetTenantIds(testTargetTenant.id())
                .timeAnomalyEventEndDate(costAnomalyEventTimeAnomalyEventEndDate)
                .timeAnomalyEventStartDate(costAnomalyEventTimeAnomalyEventStartDate)
                .build());
    
        }
    }
    
    variables:
      testCostAnomalyEvents:
        fn::invoke:
          function: oci:Budget:getCostAnomalyEvents
          arguments:
            compartmentId: ${compartmentId}
            costAnomalyMonitorId: ${testCostAnomalyMonitor.id}
            costImpact: ${costAnomalyEventCostImpact}
            costImpactPercentage: ${costAnomalyEventCostImpactPercentage}
            name: ${costAnomalyEventName}
            regions: ${costAnomalyEventRegion}
            targetTenantIds: ${testTargetTenant.id}
            timeAnomalyEventEndDate: ${costAnomalyEventTimeAnomalyEventEndDate}
            timeAnomalyEventStartDate: ${costAnomalyEventTimeAnomalyEventStartDate}
    

    Using getCostAnomalyEvents

    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 getCostAnomalyEvents(args: GetCostAnomalyEventsArgs, opts?: InvokeOptions): Promise<GetCostAnomalyEventsResult>
    function getCostAnomalyEventsOutput(args: GetCostAnomalyEventsOutputArgs, opts?: InvokeOptions): Output<GetCostAnomalyEventsResult>
    def get_cost_anomaly_events(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[GetCostAnomalyEventsFilter]] = 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) -> GetCostAnomalyEventsResult
    def get_cost_anomaly_events_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[GetCostAnomalyEventsFilterArgs]]]] = 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[GetCostAnomalyEventsResult]
    func GetCostAnomalyEvents(ctx *Context, args *GetCostAnomalyEventsArgs, opts ...InvokeOption) (*GetCostAnomalyEventsResult, error)
    func GetCostAnomalyEventsOutput(ctx *Context, args *GetCostAnomalyEventsOutputArgs, opts ...InvokeOption) GetCostAnomalyEventsResultOutput

    > Note: This function is named GetCostAnomalyEvents in the Go SDK.

    public static class GetCostAnomalyEvents 
    {
        public static Task<GetCostAnomalyEventsResult> InvokeAsync(GetCostAnomalyEventsArgs args, InvokeOptions? opts = null)
        public static Output<GetCostAnomalyEventsResult> Invoke(GetCostAnomalyEventsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCostAnomalyEventsResult> getCostAnomalyEvents(GetCostAnomalyEventsArgs args, InvokeOptions options)
    public static Output<GetCostAnomalyEventsResult> getCostAnomalyEvents(GetCostAnomalyEventsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Budget/getCostAnomalyEvents:getCostAnomalyEvents
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    CostAnomalyMonitorId string
    The cost monitor ocid.
    CostImpact double
    cost impact (absolute) of the anomaly event.
    CostImpactPercentage double
    cost impact (percentage) of the anomaly event.
    Filters List<GetCostAnomalyEventsFilter>
    Name string
    Unique, non-changeable resource name.
    Regions List<string>
    region of the anomaly event.
    TargetTenantIds List<string>
    The target tenantId ocid filter param.
    TimeAnomalyEventEndDate string
    endDate for anomaly event date.
    TimeAnomalyEventStartDate string
    startDate for anomaly event date.
    CompartmentId string
    The ID of the compartment in which to list resources.
    CostAnomalyMonitorId string
    The cost monitor ocid.
    CostImpact float64
    cost impact (absolute) of the anomaly event.
    CostImpactPercentage float64
    cost impact (percentage) of the anomaly event.
    Filters []GetCostAnomalyEventsFilter
    Name string
    Unique, non-changeable resource name.
    Regions []string
    region of the anomaly event.
    TargetTenantIds []string
    The target tenantId ocid filter param.
    TimeAnomalyEventEndDate string
    endDate for anomaly event date.
    TimeAnomalyEventStartDate string
    startDate for anomaly event date.
    compartmentId String
    The ID of the compartment in which to list resources.
    costAnomalyMonitorId String
    The cost monitor ocid.
    costImpact Double
    cost impact (absolute) of the anomaly event.
    costImpactPercentage Double
    cost impact (percentage) of the anomaly event.
    filters List<GetCostAnomalyEventsFilter>
    name String
    Unique, non-changeable resource name.
    regions List<String>
    region of the anomaly event.
    targetTenantIds List<String>
    The target tenantId ocid filter param.
    timeAnomalyEventEndDate String
    endDate for anomaly event date.
    timeAnomalyEventStartDate String
    startDate for anomaly event date.
    compartmentId string
    The ID of the compartment in which to list resources.
    costAnomalyMonitorId string
    The cost monitor ocid.
    costImpact number
    cost impact (absolute) of the anomaly event.
    costImpactPercentage number
    cost impact (percentage) of the anomaly event.
    filters GetCostAnomalyEventsFilter[]
    name string
    Unique, non-changeable resource name.
    regions string[]
    region of the anomaly event.
    targetTenantIds string[]
    The target tenantId ocid filter param.
    timeAnomalyEventEndDate string
    endDate for anomaly event date.
    timeAnomalyEventStartDate string
    startDate for anomaly event date.
    compartment_id str
    The ID of the compartment in which to list resources.
    cost_anomaly_monitor_id str
    The cost monitor ocid.
    cost_impact float
    cost impact (absolute) of the anomaly event.
    cost_impact_percentage float
    cost impact (percentage) of the anomaly event.
    filters Sequence[GetCostAnomalyEventsFilter]
    name str
    Unique, non-changeable resource name.
    regions Sequence[str]
    region of the anomaly event.
    target_tenant_ids Sequence[str]
    The target tenantId ocid filter param.
    time_anomaly_event_end_date str
    endDate for anomaly event date.
    time_anomaly_event_start_date str
    startDate for anomaly event date.
    compartmentId String
    The ID of the compartment in which to list resources.
    costAnomalyMonitorId String
    The cost monitor ocid.
    costImpact Number
    cost impact (absolute) of the anomaly event.
    costImpactPercentage Number
    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.
    targetTenantIds List<String>
    The target tenantId ocid filter param.
    timeAnomalyEventEndDate String
    endDate for anomaly event date.
    timeAnomalyEventStartDate String
    startDate for anomaly event date.

    getCostAnomalyEvents Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    CostAnomalyEventCollections List<GetCostAnomalyEventsCostAnomalyEventCollection>
    The list of cost_anomaly_event_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CostAnomalyMonitorId string
    CostImpact double
    The cost impact of the detected anomaly.
    CostImpactPercentage double
    Filters List<GetCostAnomalyEventsFilter>
    Name string
    Regions List<string>
    TargetTenantIds List<string>
    TimeAnomalyEventEndDate string
    TimeAnomalyEventStartDate string
    CompartmentId string
    The OCID of the compartment.
    CostAnomalyEventCollections []GetCostAnomalyEventsCostAnomalyEventCollection
    The list of cost_anomaly_event_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CostAnomalyMonitorId string
    CostImpact float64
    The cost impact of the detected anomaly.
    CostImpactPercentage float64
    Filters []GetCostAnomalyEventsFilter
    Name string
    Regions []string
    TargetTenantIds []string
    TimeAnomalyEventEndDate string
    TimeAnomalyEventStartDate string
    compartmentId String
    The OCID of the compartment.
    costAnomalyEventCollections List<GetCostAnomalyEventsCostAnomalyEventCollection>
    The list of cost_anomaly_event_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    costAnomalyMonitorId String
    costImpact Double
    The cost impact of the detected anomaly.
    costImpactPercentage Double
    filters List<GetCostAnomalyEventsFilter>
    name String
    regions List<String>
    targetTenantIds List<String>
    timeAnomalyEventEndDate String
    timeAnomalyEventStartDate String
    compartmentId string
    The OCID of the compartment.
    costAnomalyEventCollections GetCostAnomalyEventsCostAnomalyEventCollection[]
    The list of cost_anomaly_event_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    costAnomalyMonitorId string
    costImpact number
    The cost impact of the detected anomaly.
    costImpactPercentage number
    filters GetCostAnomalyEventsFilter[]
    name string
    regions string[]
    targetTenantIds string[]
    timeAnomalyEventEndDate string
    timeAnomalyEventStartDate string
    compartment_id str
    The OCID of the compartment.
    cost_anomaly_event_collections Sequence[GetCostAnomalyEventsCostAnomalyEventCollection]
    The list of cost_anomaly_event_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    cost_anomaly_monitor_id str
    cost_impact float
    The cost impact of the detected anomaly.
    cost_impact_percentage float
    filters Sequence[GetCostAnomalyEventsFilter]
    name str
    regions Sequence[str]
    target_tenant_ids Sequence[str]
    time_anomaly_event_end_date str
    time_anomaly_event_start_date str
    compartmentId String
    The OCID of the compartment.
    costAnomalyEventCollections List<Property Map>
    The list of cost_anomaly_event_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    costAnomalyMonitorId String
    costImpact Number
    The cost impact of the detected anomaly.
    costImpactPercentage Number
    filters List<Property Map>
    name String
    regions List<String>
    targetTenantIds List<String>
    timeAnomalyEventEndDate String
    timeAnomalyEventStartDate String

    Supporting Types

    GetCostAnomalyEventsCostAnomalyEventCollection

    GetCostAnomalyEventsCostAnomalyEventCollectionItem

    CompartmentId string
    The ID of the compartment in which to list resources.
    CostAnomalyEventId string
    CostAnomalyName string
    The name of the associated cost monitor.
    CostImpact double
    cost impact (absolute) of the anomaly event.
    CostMonitorId string
    The OCID of the associated cost monitor.
    CostMonitorName string
    The name of the associated cost monitor.
    CostMonitorType string
    Type of cost monitor
    CostVariancePercentage double
    The cost variance percentage of the detected anomaly.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FeedbackResponse string
    The feedback response for the cost anomaly event.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the Cost Anomaly Event.
    RootCauseDetail string
    The root cause details of the cost anomaly event.
    State string
    The current state of the cost anomaly event.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetResourceFilter string
    The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
    TimeAnomalyEventDate string
    The event date of the anomaly event.
    TimeCreated string
    The created time of the cost anomaly event.
    TimeUpdated string
    The updated time of the cost anomaly event.
    CompartmentId string
    The ID of the compartment in which to list resources.
    CostAnomalyEventId string
    CostAnomalyName string
    The name of the associated cost monitor.
    CostImpact float64
    cost impact (absolute) of the anomaly event.
    CostMonitorId string
    The OCID of the associated cost monitor.
    CostMonitorName string
    The name of the associated cost monitor.
    CostMonitorType string
    Type of cost monitor
    CostVariancePercentage float64
    The cost variance percentage of the detected anomaly.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FeedbackResponse string
    The feedback response for the cost anomaly event.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the Cost Anomaly Event.
    RootCauseDetail string
    The root cause details of the cost anomaly event.
    State string
    The current state of the cost anomaly event.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetResourceFilter string
    The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
    TimeAnomalyEventDate string
    The event date of the anomaly event.
    TimeCreated string
    The created time of the cost anomaly event.
    TimeUpdated string
    The updated time of the cost anomaly event.
    compartmentId String
    The ID of the compartment in which to list resources.
    costAnomalyEventId String
    costAnomalyName String
    The name of the associated cost monitor.
    costImpact Double
    cost impact (absolute) of the anomaly event.
    costMonitorId String
    The OCID of the associated cost monitor.
    costMonitorName String
    The name of the associated cost monitor.
    costMonitorType String
    Type of cost monitor
    costVariancePercentage Double
    The cost variance percentage of the detected anomaly.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse String
    The feedback response for the cost anomaly event.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the Cost Anomaly Event.
    rootCauseDetail String
    The root cause details of the cost anomaly event.
    state String
    The current state of the cost anomaly event.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter String
    The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
    timeAnomalyEventDate String
    The event date of the anomaly event.
    timeCreated String
    The created time of the cost anomaly event.
    timeUpdated String
    The updated time of the cost anomaly event.
    compartmentId string
    The ID of the compartment in which to list resources.
    costAnomalyEventId string
    costAnomalyName string
    The name of the associated cost monitor.
    costImpact number
    cost impact (absolute) of the anomaly event.
    costMonitorId string
    The OCID of the associated cost monitor.
    costMonitorName string
    The name of the associated cost monitor.
    costMonitorType string
    Type of cost monitor
    costVariancePercentage number
    The cost variance percentage of the detected anomaly.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse string
    The feedback response for the cost anomaly event.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the Cost Anomaly Event.
    rootCauseDetail string
    The root cause details of the cost anomaly event.
    state string
    The current state of the cost anomaly event.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter string
    The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
    timeAnomalyEventDate string
    The event date of the anomaly event.
    timeCreated string
    The created time of the cost anomaly event.
    timeUpdated string
    The updated time of the cost anomaly event.
    compartment_id str
    The ID of the compartment in which to list resources.
    cost_anomaly_event_id str
    cost_anomaly_name str
    The name of the associated cost monitor.
    cost_impact float
    cost impact (absolute) of the anomaly event.
    cost_monitor_id str
    The OCID of the associated cost monitor.
    cost_monitor_name str
    The name of the associated cost monitor.
    cost_monitor_type str
    Type of cost monitor
    cost_variance_percentage float
    The cost variance percentage of the detected anomaly.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedback_response str
    The feedback response for the cost anomaly event.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the Cost Anomaly Event.
    root_cause_detail str
    The root cause details of the cost anomaly event.
    state str
    The current state of the cost anomaly event.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_resource_filter str
    The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
    time_anomaly_event_date str
    The event date of the anomaly event.
    time_created str
    The created time of the cost anomaly event.
    time_updated str
    The updated time of the cost anomaly event.
    compartmentId String
    The ID of the compartment in which to list resources.
    costAnomalyEventId String
    costAnomalyName String
    The name of the associated cost monitor.
    costImpact Number
    cost impact (absolute) of the anomaly event.
    costMonitorId String
    The OCID of the associated cost monitor.
    costMonitorName String
    The name of the associated cost monitor.
    costMonitorType String
    Type of cost monitor
    costVariancePercentage Number
    The cost variance percentage of the detected anomaly.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse String
    The feedback response for the cost anomaly event.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the Cost Anomaly Event.
    rootCauseDetail String
    The root cause details of the cost anomaly event.
    state String
    The current state of the cost anomaly event.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter String
    The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations.
    timeAnomalyEventDate String
    The event date of the anomaly event.
    timeCreated String
    The created time of the cost anomaly event.
    timeUpdated String
    The updated time of the cost anomaly event.

    GetCostAnomalyEventsFilter

    Name string
    Unique, non-changeable resource name.
    Values List<string>
    Regex bool
    Name string
    Unique, non-changeable resource name.
    Values []string
    Regex bool
    name String
    Unique, non-changeable resource name.
    values List<String>
    regex Boolean
    name string
    Unique, non-changeable resource name.
    values string[]
    regex boolean
    name str
    Unique, non-changeable resource name.
    values Sequence[str]
    regex bool
    name String
    Unique, non-changeable resource name.
    values List<String>
    regex Boolean

    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 v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate