Package com.datadog.api.client.v1.model
Class LogsStringBuilderProcessor
java.lang.Object
com.datadog.api.client.v1.model.LogsStringBuilderProcessor
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsStringBuilderProcessor
extends Object
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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogsStringBuilderProcessor(String target, String template, LogsStringBuilderProcessorType type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this LogsStringBuilderProcessor object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether or not the processor is enabled.If true, it replaces all missing attributes oftemplateby an empty string.getName()Name of the processor.The name of the attribute that contains the result of the template.A formula with one or more attributes and raw text.getType()Type of logs string builder processor.inthashCode()isReplaceMissing(Boolean isReplaceMissing) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetIsEnabled(Boolean isEnabled) voidsetIsReplaceMissing(Boolean isReplaceMissing) voidvoidvoidsetTemplate(String template) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_IS_ENABLED
- See Also:
-
JSON_PROPERTY_IS_REPLACE_MISSING
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TARGET
- See Also:
-
JSON_PROPERTY_TEMPLATE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
LogsStringBuilderProcessor
public LogsStringBuilderProcessor() -
LogsStringBuilderProcessor
public LogsStringBuilderProcessor(String target, String template, LogsStringBuilderProcessorType type)
-
-
Method Details
-
isEnabled
-
getIsEnabled
Whether or not the processor is enabled.- Returns:
- isEnabled
-
setIsEnabled
-
isReplaceMissing
-
getIsReplaceMissing
If true, it replaces all missing attributes oftemplateby an empty string. Iffalse(default), skips the operation for missing attributes.- Returns:
- isReplaceMissing
-
setIsReplaceMissing
-
name
-
getName
Name of the processor.- Returns:
- name
-
setName
-
target
-
getTarget
The name of the attribute that contains the result of the template.- Returns:
- target
-
setTarget
-
template
-
getTemplate
A formula with one or more attributes and raw text.- Returns:
- template
-
setTemplate
-
type
-
getType
Type of logs string builder processor.- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- LogsStringBuilderProcessor
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this LogsStringBuilderProcessor object is equal to o. -
hashCode
public int hashCode() -
toString
-