@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsTraceRemapper extends Object
Follow the documentation on how to inject a trace ID in the application logs and by default log integrations take care of all the rest of the setup.
Use the Trace remapper processor to define a log attribute as its associated trace ID.
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_IS_ENABLED |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_SOURCES |
static String |
JSON_PROPERTY_TYPE |
boolean |
unparsed |
| Constructor and Description |
|---|
LogsTraceRemapper() |
LogsTraceRemapper(LogsTraceRemapperType type) |
| Modifier and Type | Method and Description |
|---|---|
LogsTraceRemapper |
addSourcesItem(String sourcesItem) |
boolean |
equals(Object o)
Return true if this LogsTraceRemapper object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Boolean |
getIsEnabled()
Whether or not the processor is enabled.
|
String |
getName()
Name of the processor.
|
List<String> |
getSources()
Array of source attributes.
|
LogsTraceRemapperType |
getType()
Type of logs trace remapper.
|
int |
hashCode() |
LogsTraceRemapper |
isEnabled(Boolean isEnabled) |
LogsTraceRemapper |
name(String name) |
LogsTraceRemapper |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setIsEnabled(Boolean isEnabled) |
void |
setName(String name) |
void |
setSources(List<String> sources) |
void |
setType(LogsTraceRemapperType type) |
LogsTraceRemapper |
sources(List<String> sources) |
String |
toString() |
LogsTraceRemapper |
type(LogsTraceRemapperType type) |
public boolean unparsed
public static final String JSON_PROPERTY_IS_ENABLED
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_SOURCES
public static final String JSON_PROPERTY_TYPE
public LogsTraceRemapper()
public LogsTraceRemapper(LogsTraceRemapperType type)
public LogsTraceRemapper isEnabled(Boolean isEnabled)
@Nullable public Boolean getIsEnabled()
public void setIsEnabled(Boolean isEnabled)
public LogsTraceRemapper name(String name)
@Nullable public String getName()
public void setName(String name)
public LogsTraceRemapper sources(List<String> sources)
public LogsTraceRemapper addSourcesItem(String sourcesItem)
public LogsTraceRemapper type(LogsTraceRemapperType type)
public LogsTraceRemapperType getType()
public void setType(LogsTraceRemapperType type)
public LogsTraceRemapper putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.