Class: DatadogAPIClient::V1::LogsStringBuilderProcessor

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/logs_string_builder_processor.rb

Overview

Use the string builder processor to add a new attribute (without spaces or special characters) to a log with the result of the provided template. This enables aggregation of different attributes or raw strings into a single attribute.

The template is defined by both raw text and blocks with the syntax ‘%attribute_path`.

Notes:

  • The processor only accepts attributes with values or an array of values in the blocks.

  • If an attribute cannot be used (object or array of object), it is replaced by an empty string or the entire operation is skipped depending on your selection.

  • If the target attribute already exists, it is overwritten by the result of the template.

  • Results of the template cannot exceed 256 characters.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



55
56
57
# File 'lib/datadog_api_client/v1/models/logs_string_builder_processor.rb', line 55

def additional_properties
  @additional_properties
end

#is_enabledObject

Whether or not the processor is enabled.



37
38
39
# File 'lib/datadog_api_client/v1/models/logs_string_builder_processor.rb', line 37

def is_enabled
  @is_enabled
end

#is_replace_missingObject

If true, it replaces all missing attributes of ‘template` by an empty string. If `false` (default), skips the operation for missing attributes.



41
42
43
# File 'lib/datadog_api_client/v1/models/logs_string_builder_processor.rb', line 41

def is_replace_missing
  @is_replace_missing
end

#nameObject

Name of the processor.



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

def name
  @name
end

#targetObject

The name of the attribute that contains the result of the template.



47
48
49
# File 'lib/datadog_api_client/v1/models/logs_string_builder_processor.rb', line 47

def target
  @target
end

#templateObject

A formula with one or more attributes and raw text.



50
51
52
# File 'lib/datadog_api_client/v1/models/logs_string_builder_processor.rb', line 50

def template
  @template
end

#typeObject

Type of logs string builder processor.



53
54
55
# File 'lib/datadog_api_client/v1/models/logs_string_builder_processor.rb', line 53

def type
  @type
end