RuleSummary

class oci.events.models.RuleSummary(**kwargs)

Bases: object

The summary details of rules for Events. For more information, see Managing Rules for Events.

Methods

__init__(**kwargs) Initializes a new RuleSummary object with values from keyword arguments.

Attributes

compartment_id [Required] Gets the compartment_id of this RuleSummary.
condition [Required] Gets the condition of this RuleSummary.
defined_tags Gets the defined_tags of this RuleSummary.
description Gets the description of this RuleSummary.
display_name [Required] Gets the display_name of this RuleSummary.
freeform_tags Gets the freeform_tags of this RuleSummary.
id [Required] Gets the id of this RuleSummary.
is_enabled [Required] Gets the is_enabled of this RuleSummary.
lifecycle_state [Required] Gets the lifecycle_state of this RuleSummary.
time_created [Required] Gets the time_created of this RuleSummary.
__init__(**kwargs)

Initializes a new RuleSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this RuleSummary.
  • display_name (str) – The value to assign to the display_name property of this RuleSummary.
  • description (str) – The value to assign to the description property of this RuleSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this RuleSummary.
  • condition (str) – The value to assign to the condition property of this RuleSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this RuleSummary.
  • is_enabled (bool) – The value to assign to the is_enabled property of this RuleSummary.
  • time_created (datetime) – The value to assign to the time_created property of this RuleSummary.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this RuleSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this RuleSummary.
compartment_id

[Required] Gets the compartment_id of this RuleSummary. The OCID of the compartment to which this rule belongs.

Returns:The compartment_id of this RuleSummary.
Return type:str
condition

[Required] Gets the condition of this RuleSummary. 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

Matching Events with Filters

Example: “eventType”: “com.oraclecloud.databaseservice.autonomous.database.backup.end”

Returns:The condition of this RuleSummary.
Return type:str
defined_tags

Gets the defined_tags of this RuleSummary. 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 RuleSummary.
Return type:dict(str, dict(str, object))
description

Gets the description of this RuleSummary. 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 RuleSummary.
Return type:str
display_name

[Required] Gets the display_name of this RuleSummary. A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.

Example: “This rule sends a notification upon completion of DbaaS backup.”

Returns:The display_name of this RuleSummary.
Return type:str
freeform_tags

Gets the freeform_tags of this RuleSummary. 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 RuleSummary.
Return type:dict(str, str)
id

[Required] Gets the id of this RuleSummary. The OCID of this rule.

Returns:The id of this RuleSummary.
Return type:str
is_enabled

[Required] Gets the is_enabled of this RuleSummary. Whether or not this rule is currently enabled.

Example: true

Returns:The is_enabled of this RuleSummary.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this RuleSummary.

Returns:The lifecycle_state of this RuleSummary.
Return type:str
time_created

[Required] Gets the time_created of this RuleSummary. The time this rule was created, expressed in RFC 3339 timestamp format.

Example: 2018-09-12T22:47:12.613Z

Returns:The time_created of this RuleSummary.
Return type:datetime