@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsDateRemapper extends Object
timestamp
date
_timestamp
Timestamp
eventTime
published_date
If your logs put their dates in an attribute not in this list, use the log date Remapper Processor to define their date attribute as the official log timestamp. The recognized date formats are ISO8601, UNIX (the milliseconds EPOCH format), and RFC3164.
Note: If your logs don’t contain any of the default attributes and you haven’t defined your own date attribute, Datadog timestamps the logs with the date it received them.
If multiple log date remapper processors can be applied to a given log, only the first one (according to the pipelines order) is taken into account.
| 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 |
|---|
LogsDateRemapper() |
LogsDateRemapper(List<String> sources,
LogsDateRemapperType type) |
| Modifier and Type | Method and Description |
|---|---|
LogsDateRemapper |
addSourcesItem(String sourcesItem) |
boolean |
equals(Object o)
Return true if this LogsDateRemapper 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.
|
LogsDateRemapperType |
getType()
Type of logs date remapper.
|
int |
hashCode() |
LogsDateRemapper |
isEnabled(Boolean isEnabled) |
LogsDateRemapper |
name(String name) |
LogsDateRemapper |
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(LogsDateRemapperType type) |
LogsDateRemapper |
sources(List<String> sources) |
String |
toString() |
LogsDateRemapper |
type(LogsDateRemapperType 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 LogsDateRemapper()
public LogsDateRemapper(List<String> sources, LogsDateRemapperType type)
public LogsDateRemapper isEnabled(Boolean isEnabled)
@Nullable public Boolean getIsEnabled()
public void setIsEnabled(Boolean isEnabled)
public LogsDateRemapper name(String name)
@Nullable public String getName()
public void setName(String name)
public LogsDateRemapper sources(List<String> sources)
public LogsDateRemapper addSourcesItem(String sourcesItem)
public LogsDateRemapper type(LogsDateRemapperType type)
public LogsDateRemapperType getType()
public void setType(LogsDateRemapperType type)
public LogsDateRemapper 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.