ConditionBlock¶
-
class
oci.log_analytics.models.ConditionBlock(**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 fieldName, labelConditionOperator and labelConditionValue(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 ConditionBlock. CONDITION_BLOCKS_OPERATOR_NOT_ANDA constant which can be used with the condition_blocks_operator property of a ConditionBlock. CONDITION_BLOCKS_OPERATOR_NOT_ORA constant which can be used with the condition_blocks_operator property of a ConditionBlock. CONDITION_BLOCKS_OPERATOR_ORA constant which can be used with the condition_blocks_operator property of a ConditionBlock. condition_blocksGets the condition_blocks of this ConditionBlock. condition_blocks_operatorGets the condition_blocks_operator of this ConditionBlock. field_nameGets the field_name of this ConditionBlock. label_condition_operatorGets the label_condition_operator of this ConditionBlock. label_condition_valueGets the label_condition_value of this ConditionBlock. label_condition_valuesGets the label_condition_values of this ConditionBlock. Methods
__init__(**kwargs)Initializes a new ConditionBlock 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 ConditionBlock. 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 ConditionBlock. 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 ConditionBlock. 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 ConditionBlock. This constant has a value of “OR”
-
__init__(**kwargs)¶ Initializes a new ConditionBlock 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 ConditionBlock. 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’.
- field_name (str) – The value to assign to the field_name property of this ConditionBlock.
- label_condition_operator (str) – The value to assign to the label_condition_operator property of this ConditionBlock.
- label_condition_value (str) – The value to assign to the label_condition_value property of this ConditionBlock.
- label_condition_values (list[str]) – The value to assign to the label_condition_values property of this ConditionBlock.
- condition_blocks (list[oci.log_analytics.models.ConditionBlock]) – The value to assign to the condition_blocks property of this ConditionBlock.
-
condition_blocks¶ Gets the condition_blocks of this ConditionBlock. Condition blocks to evaluate within this condition block. Specify this for nested conditions.
Returns: The condition_blocks of this ConditionBlock. Return type: list[oci.log_analytics.models.ConditionBlock]
-
condition_blocks_operator¶ Gets the condition_blocks_operator of this ConditionBlock. 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 ConditionBlock. Return type: str
-
field_name¶ Gets the field_name of this ConditionBlock. The name of the field the condition is based on. Specify this if this condition block represents a single condition.
Returns: The field_name of this ConditionBlock. Return type: str
-
label_condition_operator¶ Gets the label_condition_operator of this ConditionBlock. The condition operator. Specify this if this condition block represents a single condition.
Returns: The label_condition_operator of this ConditionBlock. Return type: str
-
label_condition_value¶ Gets the label_condition_value of this ConditionBlock. The condition value. Specify this if this condition block represents a single condition.
Returns: The label_condition_value of this ConditionBlock. Return type: str
-
label_condition_values¶ Gets the label_condition_values of this ConditionBlock. A list of condition values. Specify this if this condition block represents a single condition.
Returns: The label_condition_values of this ConditionBlock. Return type: list[str]
-