UpdateRuleDetails¶
- class oci.events.models.UpdateRuleDetails(**kwargs)¶
Bases:
objectThe rule attributes that you can update.
Methods:
__init__(**kwargs)Initializes a new UpdateRuleDetails object with values from keyword arguments.
Attributes:
Gets the actions of this UpdateRuleDetails.
Gets the condition of this UpdateRuleDetails.
Gets the defined_tags of this UpdateRuleDetails.
Gets the description of this UpdateRuleDetails.
Gets the display_name of this UpdateRuleDetails.
Gets the freeform_tags of this UpdateRuleDetails.
Gets the is_enabled of this UpdateRuleDetails.
- __init__(**kwargs)¶
Initializes a new UpdateRuleDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this UpdateRuleDetails.
description (str) – The value to assign to the description property of this UpdateRuleDetails.
is_enabled (bool) – The value to assign to the is_enabled property of this UpdateRuleDetails.
condition (str) – The value to assign to the condition property of this UpdateRuleDetails.
actions (oci.events.models.ActionDetailsList) – The value to assign to the actions property of this UpdateRuleDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateRuleDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateRuleDetails.
- property actions¶
Gets the actions of this UpdateRuleDetails.
- Returns
The actions of this UpdateRuleDetails.
- Return type
- property condition¶
Gets the condition of this UpdateRuleDetails. A filter that specifies the event that will trigger actions associated with this rule. A few important things to remember about filters:
Fields not mentioned in the condition are ignored. You can create a valid filter that matches
all events with two curly brackets: {}
For more examples, see
Matching Events with Filters. * For a condition with fields to match an event, the event must contain all the field names listed in the condition. Field names must appear in the condition with the same nesting structure used in the event.
For a list of reference events, see
Services that Produce Events. * Rules apply to events in the compartment in which you create them and any child compartments. This means that a condition specified by a rule only matches events emitted from resources in the compartment or any of its child compartments. * Wildcard matching is supported with the asterisk (*) character.
For examples of wildcard matching, see
Example: “eventType”: “com.oraclecloud.databaseservice.autonomous.database.backup.end”
- Returns
The condition of this UpdateRuleDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this UpdateRuleDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this UpdateRuleDetails.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this UpdateRuleDetails. A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
- Returns
The description of this UpdateRuleDetails.
- Return type
str
- property display_name¶
Gets the display_name of this UpdateRuleDetails. A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
- Returns
The display_name of this UpdateRuleDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this UpdateRuleDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
- Returns
The freeform_tags of this UpdateRuleDetails.
- Return type
dict(str, str)
- property is_enabled¶
Gets the is_enabled of this UpdateRuleDetails. Whether or not this rule is currently enabled.
Example: true
- Returns
The is_enabled of this UpdateRuleDetails.
- Return type
bool