GenericConditionBlock¶
-
class
oci.log_analytics.models.GenericConditionBlock(**kwargs)¶ Bases:
objectA condition block. This could represent a single condition, or have nested condition blocks under it. To form a single condition, specify the name, operator and value(s). To form nested conditions, specify the conditions in conditionBlocks, and how to join them in conditionBlocksOperator.
Attributes
CONDITION_BLOCKS_OPERATOR_ANDA constant which can be used with the condition_blocks_operator property of a GenericConditionBlock. CONDITION_BLOCKS_OPERATOR_NOT_ANDA constant which can be used with the condition_blocks_operator property of a GenericConditionBlock. CONDITION_BLOCKS_OPERATOR_NOT_ORA constant which can be used with the condition_blocks_operator property of a GenericConditionBlock. CONDITION_BLOCKS_OPERATOR_ORA constant which can be used with the condition_blocks_operator property of a GenericConditionBlock. condition_blocks_operatorGets the condition_blocks_operator of this GenericConditionBlock. generic_condition_blocksGets the generic_condition_blocks of this GenericConditionBlock. nameGets the name of this GenericConditionBlock. operatorGets the operator of this GenericConditionBlock. valueGets the value of this GenericConditionBlock. valuesGets the values of this GenericConditionBlock. Methods
__init__(**kwargs)Initializes a new GenericConditionBlock object with values from keyword arguments. -
CONDITION_BLOCKS_OPERATOR_AND= 'AND'¶ A constant which can be used with the condition_blocks_operator property of a GenericConditionBlock. This constant has a value of “AND”
-
CONDITION_BLOCKS_OPERATOR_NOT_AND= 'NOT_AND'¶ A constant which can be used with the condition_blocks_operator property of a GenericConditionBlock. This constant has a value of “NOT_AND”
-
CONDITION_BLOCKS_OPERATOR_NOT_OR= 'NOT_OR'¶ A constant which can be used with the condition_blocks_operator property of a GenericConditionBlock. This constant has a value of “NOT_OR”
-
CONDITION_BLOCKS_OPERATOR_OR= 'OR'¶ A constant which can be used with the condition_blocks_operator property of a GenericConditionBlock. This constant has a value of “OR”
-
__init__(**kwargs)¶ Initializes a new GenericConditionBlock object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - condition_blocks_operator (str) – The value to assign to the condition_blocks_operator property of this GenericConditionBlock. Allowed values for this property are: “AND”, “OR”, “NOT_AND”, “NOT_OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- name (str) – The value to assign to the name property of this GenericConditionBlock.
- operator (str) – The value to assign to the operator property of this GenericConditionBlock.
- value (str) – The value to assign to the value property of this GenericConditionBlock.
- values (list[str]) – The value to assign to the values property of this GenericConditionBlock.
- generic_condition_blocks (list[oci.log_analytics.models.GenericConditionBlock]) – The value to assign to the generic_condition_blocks property of this GenericConditionBlock.
-
condition_blocks_operator¶ Gets the condition_blocks_operator of this GenericConditionBlock. Operator using which the conditionBlocks should be joined. Specify this for nested conditions.
Allowed values for this property are: “AND”, “OR”, “NOT_AND”, “NOT_OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The condition_blocks_operator of this GenericConditionBlock. Return type: str
-
generic_condition_blocks¶ Gets the generic_condition_blocks of this GenericConditionBlock. Condition blocks to evaluate within this condition block. Specify this for nested conditions.
Returns: The generic_condition_blocks of this GenericConditionBlock. Return type: list[oci.log_analytics.models.GenericConditionBlock]
-
name¶ Gets the name of this GenericConditionBlock. The name of the field the condition is based on. Specify this if this condition block represents a single condition.
Returns: The name of this GenericConditionBlock. Return type: str
-
operator¶ Gets the operator of this GenericConditionBlock. The condition operator. Specify this if this condition block represents a single condition.
Returns: The operator of this GenericConditionBlock. Return type: str
-
value¶ Gets the value of this GenericConditionBlock. The condition value. Specify this if this condition block represents a single condition.
Returns: The value of this GenericConditionBlock. Return type: str
-
values¶ Gets the values of this GenericConditionBlock. A list of condition values. Specify this if this condition block represents a single condition.
Returns: The values of this GenericConditionBlock. Return type: list[str]
-