AlertPolicyRuleSummary

class oci.data_safe.models.AlertPolicyRuleSummary(**kwargs)

Bases: object

A rule associated with an alert policy.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary.
description Gets the description of this AlertPolicyRuleSummary.
display_name Gets the display_name of this AlertPolicyRuleSummary.
expression [Required] Gets the expression of this AlertPolicyRuleSummary.
key [Required] Gets the key of this AlertPolicyRuleSummary.
lifecycle_state Gets the lifecycle_state of this AlertPolicyRuleSummary.
time_created Gets the time_created of this AlertPolicyRuleSummary.

Methods

__init__(**kwargs) Initializes a new AlertPolicyRuleSummary object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary. This constant has a value of “FAILED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a AlertPolicyRuleSummary. This constant has a value of “UPDATING”

__init__(**kwargs)

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

Parameters:
  • key (str) – The value to assign to the key property of this AlertPolicyRuleSummary.
  • description (str) – The value to assign to the description property of this AlertPolicyRuleSummary.
  • expression (str) – The value to assign to the expression property of this AlertPolicyRuleSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this AlertPolicyRuleSummary. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • display_name (str) – The value to assign to the display_name property of this AlertPolicyRuleSummary.
  • time_created (datetime) – The value to assign to the time_created property of this AlertPolicyRuleSummary.
description

Gets the description of this AlertPolicyRuleSummary. Describes the alert policy rule.

Returns:The description of this AlertPolicyRuleSummary.
Return type:str
display_name

Gets the display_name of this AlertPolicyRuleSummary. The display name of the alert policy rule.

Returns:The display_name of this AlertPolicyRuleSummary.
Return type:str
expression

[Required] Gets the expression of this AlertPolicyRuleSummary. The conditional expression of the alert policy rule which evaluates to boolean value.

Returns:The expression of this AlertPolicyRuleSummary.
Return type:str
key

[Required] Gets the key of this AlertPolicyRuleSummary. The unique key of the alert policy rule.

Returns:The key of this AlertPolicyRuleSummary.
Return type:str
lifecycle_state

Gets the lifecycle_state of this AlertPolicyRuleSummary. The current state of the alert policy rule.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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

Gets the time_created of this AlertPolicyRuleSummary. Creation date and time of the alert policy rule, in the format defined by RFC3339.

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