AlertPolicyRule¶
-
class
oci.data_safe.models.AlertPolicyRule(**kwargs)¶ Bases:
objectA rule associated with a alert policy.
Attributes
LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a AlertPolicyRule. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a AlertPolicyRule. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a AlertPolicyRule. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a AlertPolicyRule. LIFECYCLE_STATE_UPDATINGA constant which can be used with the lifecycle_state property of a AlertPolicyRule. descriptionGets the description of this AlertPolicyRule. display_nameGets the display_name of this AlertPolicyRule. expression[Required] Gets the expression of this AlertPolicyRule. key[Required] Gets the key of this AlertPolicyRule. lifecycle_stateGets the lifecycle_state of this AlertPolicyRule. time_createdGets the time_created of this AlertPolicyRule. Methods
__init__(**kwargs)Initializes a new AlertPolicyRule object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a AlertPolicyRule. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a AlertPolicyRule. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a AlertPolicyRule. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a AlertPolicyRule. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_UPDATING= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a AlertPolicyRule. This constant has a value of “UPDATING”
-
__init__(**kwargs)¶ Initializes a new AlertPolicyRule 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 AlertPolicyRule.
- description (str) – The value to assign to the description property of this AlertPolicyRule.
- expression (str) – The value to assign to the expression property of this AlertPolicyRule.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this AlertPolicyRule. 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 AlertPolicyRule.
- time_created (datetime) – The value to assign to the time_created property of this AlertPolicyRule.
-
description¶ Gets the description of this AlertPolicyRule. Describes the alert policy rule.
Returns: The description of this AlertPolicyRule. Return type: str
-
display_name¶ Gets the display_name of this AlertPolicyRule. The display name of the alert policy rule.
Returns: The display_name of this AlertPolicyRule. Return type: str
-
expression¶ [Required] Gets the expression of this AlertPolicyRule. The conditional expression of the alert policy rule which evaluates to boolean value.
Returns: The expression of this AlertPolicyRule. Return type: str
-
key¶ [Required] Gets the key of this AlertPolicyRule. The unique key of the alert policy rule.
Returns: The key of this AlertPolicyRule. Return type: str
-
lifecycle_state¶ Gets the lifecycle_state of this AlertPolicyRule. 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 AlertPolicyRule. Return type: str
-