Class: DatadogAPIClient::V1::LogsCategoryProcessor

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

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

#categoriesObject

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_enabledObject

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

#nameObject

Name of the processor.



44
45
46
# File 'lib/datadog_api_client/v1/models/logs_category_processor.rb', line 44

def name
  @name
end

#targetObject

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

#typeObject

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