Class: DatadogAPIClient::V1::LogsAttributeRemapper

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

Overview

The remapper processor remaps any source attribute(s) or tag to another target attribute or tag. Constraints on the tag/attribute name are explained in the [Tag Best Practice documentation](docs.datadoghq.com/logs/guide/log-parsing-best-practice). Some additional constraints are applied as ‘:` or `,` are not allowed in the target tag/attribute name.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



58
59
60
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 58

def additional_properties
  @additional_properties
end

#is_enabledObject

Whether or not the processor is enabled.



27
28
29
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 27

def is_enabled
  @is_enabled
end

#nameObject

Name of the processor.



30
31
32
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 30

def name
  @name
end

#override_on_conflictObject

Override or not the target element if already set,



33
34
35
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 33

def override_on_conflict
  @override_on_conflict
end

#preserve_sourceObject

Remove or preserve the remapped source element.



36
37
38
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 36

def preserve_source
  @preserve_source
end

#source_typeObject

Defines if the sources are from log ‘attribute` or `tag`.



39
40
41
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 39

def source_type
  @source_type
end

#sourcesObject

Array of source attributes.



42
43
44
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 42

def sources
  @sources
end

#targetObject

Final attribute or tag name to remap the sources to.



45
46
47
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 45

def target
  @target
end

#target_formatObject

If the ‘target_type` of the remapper is `attribute`, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. If the `target_type` is `tag`, this parameter may not be specified.



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

def target_format
  @target_format
end

#target_typeObject

Defines if the final attribute or tag name is from log ‘attribute` or `tag`.



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

def target_type
  @target_type
end

#typeObject

Type of logs attribute remapper.



56
57
58
# File 'lib/datadog_api_client/v1/models/logs_attribute_remapper.rb', line 56

def type
  @type
end