UnifiedAgentLoggingGrepFilter¶
-
class
oci.logging.models.UnifiedAgentLoggingGrepFilter(**kwargs)¶ Bases:
oci.logging.models.unified_agent_logging_filter.UnifiedAgentLoggingFilterLogging grep filter object greps events by the values of specified fields. Ref: https://docs.fluentd.org/filter/grep
Attributes
FILTER_TYPE_CUSTOM_FILTERstr(object=’’) -> str FILTER_TYPE_GREP_FILTERstr(object=’’) -> str FILTER_TYPE_PARSER_FILTERstr(object=’’) -> str FILTER_TYPE_RECORD_TRANSFORMER_FILTERstr(object=’’) -> str allow_listGets the allow_list of this UnifiedAgentLoggingGrepFilter. deny_listGets the deny_list of this UnifiedAgentLoggingGrepFilter. filter_type[Required] Gets the filter_type of this UnifiedAgentLoggingFilter. name[Required] Gets the name of this UnifiedAgentLoggingFilter. Methods
__init__(**kwargs)Initializes a new UnifiedAgentLoggingGrepFilter object with values from keyword arguments. get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
FILTER_TYPE_CUSTOM_FILTER= 'CUSTOM_FILTER'¶
-
FILTER_TYPE_GREP_FILTER= 'GREP_FILTER'¶
-
FILTER_TYPE_PARSER_FILTER= 'PARSER_FILTER'¶
-
FILTER_TYPE_RECORD_TRANSFORMER_FILTER= 'RECORD_TRANSFORMER_FILTER'¶
-
__init__(**kwargs)¶ Initializes a new UnifiedAgentLoggingGrepFilter object with values from keyword arguments. The default value of the
filter_typeattribute of this class isGREP_FILTERand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - name (str) – The value to assign to the name property of this UnifiedAgentLoggingGrepFilter.
- filter_type (str) – The value to assign to the filter_type property of this UnifiedAgentLoggingGrepFilter. Allowed values for this property are: “PARSER_FILTER”, “GREP_FILTER”, “RECORD_TRANSFORMER_FILTER”, “CUSTOM_FILTER”
- allow_list (list[oci.logging.models.GrepFilterAllowRule]) – The value to assign to the allow_list property of this UnifiedAgentLoggingGrepFilter.
- deny_list (list[oci.logging.models.GrepFilterDenyRule]) – The value to assign to the deny_list property of this UnifiedAgentLoggingGrepFilter.
-
allow_list¶ Gets the allow_list of this UnifiedAgentLoggingGrepFilter. A list of filtering rules to include logs
Returns: The allow_list of this UnifiedAgentLoggingGrepFilter. Return type: list[oci.logging.models.GrepFilterAllowRule]
-
deny_list¶ Gets the deny_list of this UnifiedAgentLoggingGrepFilter. A list of filtering rules to reject logs
Returns: The deny_list of this UnifiedAgentLoggingGrepFilter. Return type: list[oci.logging.models.GrepFilterDenyRule]
-
filter_type¶ [Required] Gets the filter_type of this UnifiedAgentLoggingFilter. Unified schema logging filter type.
Allowed values for this property are: “PARSER_FILTER”, “GREP_FILTER”, “RECORD_TRANSFORMER_FILTER”, “CUSTOM_FILTER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The filter_type of this UnifiedAgentLoggingFilter. Return type: str
-
static
get_subtype(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
name¶ [Required] Gets the name of this UnifiedAgentLoggingFilter. Unique name for the filter.
Returns: The name of this UnifiedAgentLoggingFilter. Return type: str
-