Example Usage
Create CostAnomalyEvent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CostAnomalyEvent(name: string, args: CostAnomalyEventArgs, opts?: CustomResourceOptions);@overload
def CostAnomalyEvent(resource_name: str,
args: CostAnomalyEventArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CostAnomalyEvent(resource_name: str,
opts: Optional[ResourceOptions] = None,
cost_anomaly_event_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
feedback_response: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None)func NewCostAnomalyEvent(ctx *Context, name string, args CostAnomalyEventArgs, opts ...ResourceOption) (*CostAnomalyEvent, error)public CostAnomalyEvent(string name, CostAnomalyEventArgs args, CustomResourceOptions? opts = null)
public CostAnomalyEvent(String name, CostAnomalyEventArgs args)
public CostAnomalyEvent(String name, CostAnomalyEventArgs args, CustomResourceOptions options)
type: oci:Budget:CostAnomalyEvent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CostAnomalyEventArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CostAnomalyEventArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CostAnomalyEventArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CostAnomalyEventArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CostAnomalyEventArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var costAnomalyEventResource = new Oci.Budget.CostAnomalyEvent("costAnomalyEventResource", new()
{
CostAnomalyEventId = "string",
DefinedTags =
{
{ "string", "string" },
},
FeedbackResponse = "string",
FreeformTags =
{
{ "string", "string" },
},
});
example, err := budget.NewCostAnomalyEvent(ctx, "costAnomalyEventResource", &budget.CostAnomalyEventArgs{
CostAnomalyEventId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FeedbackResponse: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var costAnomalyEventResource = new CostAnomalyEvent("costAnomalyEventResource", CostAnomalyEventArgs.builder()
.costAnomalyEventId("string")
.definedTags(Map.of("string", "string"))
.feedbackResponse("string")
.freeformTags(Map.of("string", "string"))
.build());
cost_anomaly_event_resource = oci.budget.CostAnomalyEvent("costAnomalyEventResource",
cost_anomaly_event_id="string",
defined_tags={
"string": "string",
},
feedback_response="string",
freeform_tags={
"string": "string",
})
const costAnomalyEventResource = new oci.budget.CostAnomalyEvent("costAnomalyEventResource", {
costAnomalyEventId: "string",
definedTags: {
string: "string",
},
feedbackResponse: "string",
freeformTags: {
string: "string",
},
});
type: oci:Budget:CostAnomalyEvent
properties:
costAnomalyEventId: string
definedTags:
string: string
feedbackResponse: string
freeformTags:
string: string
CostAnomalyEvent Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CostAnomalyEvent resource accepts the following input properties:
- Cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- Dictionary<string, string>
- (Updatable) 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 string - (Updatable) The feedback response for the cost anomaly event.
- Dictionary<string, string>
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- map[string]string
- (Updatable) 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 string - (Updatable) The feedback response for the cost anomaly event.
- map[string]string
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- cost
Anomaly StringEvent Id - The unique costAnomalyEventId OCID.
- Map<String,String>
- (Updatable) 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 String - (Updatable) The feedback response for the cost anomaly event.
- Map<String,String>
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- {[key: string]: string}
- (Updatable) 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 string - (Updatable) The feedback response for the cost anomaly event.
- {[key: string]: string}
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- cost_
anomaly_ strevent_ id - The unique costAnomalyEventId OCID.
- Mapping[str, str]
- (Updatable) 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 - (Updatable) The feedback response for the cost anomaly event.
- Mapping[str, str]
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- cost
Anomaly StringEvent Id - The unique costAnomalyEventId OCID.
- Map<String>
- (Updatable) 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 String - (Updatable) The feedback response for the cost anomaly event.
- Map<String>
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the CostAnomalyEvent resource produces the following output properties:
- Compartment
Id string - The OCID of the compartment.
- Cost
Anomaly stringName - The name of the associated cost monitor.
- Cost
Impact double - The cost impact of the detected anomaly.
- Cost
Monitor stringId - The OCID of the associated cost monitor.
- Cost
Monitor stringName - The name of the associated cost monitor.
- Cost
Monitor stringType - Type of cost monitor
- Cost
Variance doublePercentage - The cost variance percentage of the detected anomaly.
- Id string
- The provider-assigned unique ID for this managed resource.
- Root
Cause stringDetail - The root cause details of the cost anomaly event.
- State string
- The current state of the cost anomaly event.
- 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"} - Target
Resource stringFilter - 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 stringEvent Date - The event date of the anomaly event.
- Time
Created string - The created time of the cost anomaly event.
- Time
Updated string - The updated time of the cost anomaly event.
- Compartment
Id string - The OCID of the compartment.
- Cost
Anomaly stringName - The name of the associated cost monitor.
- Cost
Impact float64 - The cost impact of the detected anomaly.
- Cost
Monitor stringId - The OCID of the associated cost monitor.
- Cost
Monitor stringName - The name of the associated cost monitor.
- Cost
Monitor stringType - Type of cost monitor
- Cost
Variance float64Percentage - The cost variance percentage of the detected anomaly.
- Id string
- The provider-assigned unique ID for this managed resource.
- Root
Cause stringDetail - The root cause details of the cost anomaly event.
- State string
- The current state of the cost anomaly event.
- 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"} - Target
Resource stringFilter - 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 stringEvent Date - The event date of the anomaly event.
- Time
Created string - The created time of the cost anomaly event.
- Time
Updated string - The updated time of the cost anomaly event.
- compartment
Id String - The OCID of the compartment.
- cost
Anomaly StringName - The name of the associated cost monitor.
- cost
Impact Double - The cost impact of the detected anomaly.
- cost
Monitor StringId - The OCID of the associated cost monitor.
- cost
Monitor StringName - The name of the associated cost monitor.
- cost
Monitor StringType - Type of cost monitor
- cost
Variance DoublePercentage - The cost variance percentage of the detected anomaly.
- id String
- The provider-assigned unique ID for this managed resource.
- root
Cause StringDetail - The root cause details of the cost anomaly event.
- state String
- The current state of the cost anomaly event.
- 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"} - target
Resource StringFilter - 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 StringEvent Date - The event date of the anomaly event.
- time
Created String - The created time of the cost anomaly event.
- time
Updated String - The updated time of the cost anomaly event.
- compartment
Id string - The OCID of the compartment.
- cost
Anomaly stringName - The name of the associated cost monitor.
- cost
Impact number - The cost impact of the detected anomaly.
- cost
Monitor stringId - The OCID of the associated cost monitor.
- cost
Monitor stringName - The name of the associated cost monitor.
- cost
Monitor stringType - Type of cost monitor
- cost
Variance numberPercentage - The cost variance percentage of the detected anomaly.
- id string
- The provider-assigned unique ID for this managed resource.
- root
Cause stringDetail - The root cause details of the cost anomaly event.
- state string
- The current state of the cost anomaly event.
- {[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"} - target
Resource stringFilter - 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 stringEvent Date - The event date of the anomaly event.
- time
Created string - The created time of the cost anomaly event.
- time
Updated string - The updated time of the cost anomaly event.
- compartment_
id str - The OCID of the compartment.
- cost_
anomaly_ strname - The name of the associated cost monitor.
- cost_
impact float - The cost impact of the detected anomaly.
- cost_
monitor_ strid - The OCID of the associated cost monitor.
- cost_
monitor_ strname - The name of the associated cost monitor.
- cost_
monitor_ strtype - Type of cost monitor
- cost_
variance_ floatpercentage - The cost variance percentage of the detected anomaly.
- id str
- The provider-assigned unique ID for this managed resource.
- root_
cause_ strdetail - The root cause details of the cost anomaly event.
- state str
- The current state of the cost anomaly event.
- 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_ strfilter - 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_ strevent_ date - 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.
- compartment
Id String - The OCID of the compartment.
- cost
Anomaly StringName - The name of the associated cost monitor.
- cost
Impact Number - The cost impact of the detected anomaly.
- cost
Monitor StringId - The OCID of the associated cost monitor.
- cost
Monitor StringName - The name of the associated cost monitor.
- cost
Monitor StringType - Type of cost monitor
- cost
Variance NumberPercentage - The cost variance percentage of the detected anomaly.
- id String
- The provider-assigned unique ID for this managed resource.
- root
Cause StringDetail - The root cause details of the cost anomaly event.
- state String
- The current state of the cost anomaly event.
- 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"} - target
Resource StringFilter - 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 StringEvent Date - The event date of the anomaly event.
- time
Created String - The created time of the cost anomaly event.
- time
Updated String - The updated time of the cost anomaly event.
Look up Existing CostAnomalyEvent Resource
Get an existing CostAnomalyEvent resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CostAnomalyEventState, opts?: CustomResourceOptions): CostAnomalyEvent@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
cost_anomaly_event_id: Optional[str] = None,
cost_anomaly_name: Optional[str] = None,
cost_impact: Optional[float] = None,
cost_monitor_id: Optional[str] = None,
cost_monitor_name: Optional[str] = None,
cost_monitor_type: Optional[str] = None,
cost_variance_percentage: Optional[float] = None,
defined_tags: Optional[Mapping[str, str]] = None,
feedback_response: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
root_cause_detail: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
target_resource_filter: Optional[str] = None,
time_anomaly_event_date: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> CostAnomalyEventfunc GetCostAnomalyEvent(ctx *Context, name string, id IDInput, state *CostAnomalyEventState, opts ...ResourceOption) (*CostAnomalyEvent, error)public static CostAnomalyEvent Get(string name, Input<string> id, CostAnomalyEventState? state, CustomResourceOptions? opts = null)public static CostAnomalyEvent get(String name, Output<String> id, CostAnomalyEventState state, CustomResourceOptions options)resources: _: type: oci:Budget:CostAnomalyEvent get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - The OCID of the compartment.
- Cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- Cost
Anomaly stringName - The name of the associated cost monitor.
- Cost
Impact double - The cost impact of the detected anomaly.
- Cost
Monitor stringId - The OCID of the associated cost monitor.
- Cost
Monitor stringName - The name of the associated cost monitor.
- Cost
Monitor stringType - Type of cost monitor
- Cost
Variance doublePercentage - The cost variance percentage of the detected anomaly.
- Dictionary<string, string>
- (Updatable) 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 string - (Updatable) The feedback response for the cost anomaly event.
- Dictionary<string, string>
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Root
Cause stringDetail - The root cause details of the cost anomaly event.
- State string
- The current state of the cost anomaly event.
- 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"} - Target
Resource stringFilter - 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 stringEvent Date - The event date of the anomaly event.
- Time
Created string - The created time of the cost anomaly event.
- Time
Updated string - The updated time of the cost anomaly event.
- Compartment
Id string - The OCID of the compartment.
- Cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- Cost
Anomaly stringName - The name of the associated cost monitor.
- Cost
Impact float64 - The cost impact of the detected anomaly.
- Cost
Monitor stringId - The OCID of the associated cost monitor.
- Cost
Monitor stringName - The name of the associated cost monitor.
- Cost
Monitor stringType - Type of cost monitor
- Cost
Variance float64Percentage - The cost variance percentage of the detected anomaly.
- map[string]string
- (Updatable) 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 string - (Updatable) The feedback response for the cost anomaly event.
- map[string]string
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Root
Cause stringDetail - The root cause details of the cost anomaly event.
- State string
- The current state of the cost anomaly event.
- 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"} - Target
Resource stringFilter - 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 stringEvent Date - The event date of the anomaly event.
- Time
Created string - The created time of the cost anomaly event.
- Time
Updated string - The updated time of the cost anomaly event.
- compartment
Id String - The OCID of the compartment.
- cost
Anomaly StringEvent Id - The unique costAnomalyEventId OCID.
- cost
Anomaly StringName - The name of the associated cost monitor.
- cost
Impact Double - The cost impact of the detected anomaly.
- cost
Monitor StringId - The OCID of the associated cost monitor.
- cost
Monitor StringName - The name of the associated cost monitor.
- cost
Monitor StringType - Type of cost monitor
- cost
Variance DoublePercentage - The cost variance percentage of the detected anomaly.
- Map<String,String>
- (Updatable) 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 String - (Updatable) The feedback response for the cost anomaly event.
- Map<String,String>
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- root
Cause StringDetail - The root cause details of the cost anomaly event.
- state String
- The current state of the cost anomaly event.
- 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"} - target
Resource StringFilter - 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 StringEvent Date - The event date of the anomaly event.
- time
Created String - The created time of the cost anomaly event.
- time
Updated String - The updated time of the cost anomaly event.
- compartment
Id string - The OCID of the compartment.
- cost
Anomaly stringEvent Id - The unique costAnomalyEventId OCID.
- cost
Anomaly stringName - The name of the associated cost monitor.
- cost
Impact number - The cost impact of the detected anomaly.
- cost
Monitor stringId - The OCID of the associated cost monitor.
- cost
Monitor stringName - The name of the associated cost monitor.
- cost
Monitor stringType - Type of cost monitor
- cost
Variance numberPercentage - The cost variance percentage of the detected anomaly.
- {[key: string]: string}
- (Updatable) 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 string - (Updatable) The feedback response for the cost anomaly event.
- {[key: string]: string}
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- root
Cause stringDetail - The root cause details of the cost anomaly event.
- state string
- The current state of the cost anomaly event.
- {[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"} - target
Resource stringFilter - 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 stringEvent Date - The event date of the anomaly event.
- time
Created string - The created time of the cost anomaly event.
- time
Updated string - The updated time of the cost anomaly event.
- compartment_
id str - The OCID of the compartment.
- cost_
anomaly_ strevent_ id - The unique costAnomalyEventId OCID.
- cost_
anomaly_ strname - The name of the associated cost monitor.
- cost_
impact float - The cost impact of the detected anomaly.
- cost_
monitor_ strid - The OCID of the associated cost monitor.
- cost_
monitor_ strname - The name of the associated cost monitor.
- cost_
monitor_ strtype - Type of cost monitor
- cost_
variance_ floatpercentage - The cost variance percentage of the detected anomaly.
- Mapping[str, str]
- (Updatable) 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 - (Updatable) The feedback response for the cost anomaly event.
- Mapping[str, str]
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- root_
cause_ strdetail - The root cause details of the cost anomaly event.
- state str
- The current state of the cost anomaly event.
- 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_ strfilter - 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_ strevent_ date - 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.
- compartment
Id String - The OCID of the compartment.
- cost
Anomaly StringEvent Id - The unique costAnomalyEventId OCID.
- cost
Anomaly StringName - The name of the associated cost monitor.
- cost
Impact Number - The cost impact of the detected anomaly.
- cost
Monitor StringId - The OCID of the associated cost monitor.
- cost
Monitor StringName - The name of the associated cost monitor.
- cost
Monitor StringType - Type of cost monitor
- cost
Variance NumberPercentage - The cost variance percentage of the detected anomaly.
- Map<String>
- (Updatable) 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 String - (Updatable) The feedback response for the cost anomaly event.
- Map<String>
(Updatable) 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"}** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- root
Cause StringDetail - The root cause details of the cost anomaly event.
- state String
- The current state of the cost anomaly event.
- 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"} - target
Resource StringFilter - 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 StringEvent Date - The event date of the anomaly event.
- time
Created String - The created time of the cost anomaly event.
- time
Updated String - The updated time of the cost anomaly event.
Import
CostAnomalyEvents can be imported using the id, e.g.
$ pulumi import oci:Budget/costAnomalyEvent:CostAnomalyEvent test_cost_anomaly_event "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
