Class: DatadogAPIClient::V1::LogsCategoryProcessor
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::LogsCategoryProcessor
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v1/models/logs_category_processor.rb
Overview
Use the Category Processor to add a new attribute (without spaces or special characters in the new attribute name) to a log matching a provided search query. Use categories to create groups for an analytical view. For example, URL groups, machine groups, environments, and response time buckets.
Notes:
-
The syntax of the query is the one of Logs Explorer search bar. The query can be done on any log attribute or tag, whether it is a facet or not. Wildcards can also be used inside your query.
-
Once the log has matched one of the Processor queries, it stops. Make sure they are properly ordered in case a log could match several queries.
-
The names of the categories must be unique.
-
Once defined in the Category Processor, you can map categories to log status using the Log Status Remapper.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#categories ⇒ Object
readonly
Array of filters to match or not a log and their corresponding ‘name` to assign a custom value to the log.
-
#is_enabled ⇒ Object
Whether or not the processor is enabled.
-
#name ⇒ Object
Name of the processor.
-
#target ⇒ Object
readonly
Name of the target attribute which value is defined by the matching category.
-
#type ⇒ Object
readonly
Type of logs category processor.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
52 53 54 |
# File 'lib/datadog_api_client/v1/models/logs_category_processor.rb', line 52 def additional_properties @additional_properties end |
#categories ⇒ Object
Array of filters to match or not a log and their corresponding ‘name` to assign a custom value to the log.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/logs_category_processor.rb', line 38 def categories @categories end |
#is_enabled ⇒ Object
Whether or not the processor is enabled.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/logs_category_processor.rb', line 41 def is_enabled @is_enabled end |
#name ⇒ Object
Name of the processor.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/logs_category_processor.rb', line 44 def name @name end |
#target ⇒ Object
Name of the target attribute which value is defined by the matching category.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/logs_category_processor.rb', line 47 def target @target end |
#type ⇒ Object
Type of logs category processor.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/logs_category_processor.rb', line 50 def type @type end |