@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsAttributeRemapper extends Object
:
or ,
are not allowed in the target tag/attribute name.Modifier and Type | Field and Description |
---|---|
static String |
JSON_PROPERTY_IS_ENABLED |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_OVERRIDE_ON_CONFLICT |
static String |
JSON_PROPERTY_PRESERVE_SOURCE |
static String |
JSON_PROPERTY_SOURCE_TYPE |
static String |
JSON_PROPERTY_SOURCES |
static String |
JSON_PROPERTY_TARGET |
static String |
JSON_PROPERTY_TARGET_FORMAT |
static String |
JSON_PROPERTY_TARGET_TYPE |
static String |
JSON_PROPERTY_TYPE |
boolean |
unparsed |
Constructor and Description |
---|
LogsAttributeRemapper() |
LogsAttributeRemapper(List<String> sources,
String target,
LogsAttributeRemapperType type) |
Modifier and Type | Method and Description |
---|---|
LogsAttributeRemapper |
addSourcesItem(String sourcesItem) |
boolean |
equals(Object o)
Return true if this LogsAttributeRemapper object is equal to o.
|
Boolean |
getIsEnabled()
Whether or not the processor is enabled.
|
String |
getName()
Name of the processor.
|
Boolean |
getOverrideOnConflict()
Override or not the target element if already set,
|
Boolean |
getPreserveSource()
Remove or preserve the remapped source element.
|
List<String> |
getSources()
Array of source attributes.
|
String |
getSourceType()
Defines if the sources are from log
attribute or tag . |
String |
getTarget()
Final attribute or tag name to remap the sources to.
|
TargetFormatType |
getTargetFormat()
If the
target_type of the remapper is attribute , try to cast the
value to a new specific type. |
String |
getTargetType()
Defines if the final attribute or tag name is from log
attribute or tag
. |
LogsAttributeRemapperType |
getType()
Type of logs attribute remapper.
|
int |
hashCode() |
LogsAttributeRemapper |
isEnabled(Boolean isEnabled) |
LogsAttributeRemapper |
name(String name) |
LogsAttributeRemapper |
overrideOnConflict(Boolean overrideOnConflict) |
LogsAttributeRemapper |
preserveSource(Boolean preserveSource) |
void |
setIsEnabled(Boolean isEnabled) |
void |
setName(String name) |
void |
setOverrideOnConflict(Boolean overrideOnConflict) |
void |
setPreserveSource(Boolean preserveSource) |
void |
setSources(List<String> sources) |
void |
setSourceType(String sourceType) |
void |
setTarget(String target) |
void |
setTargetFormat(TargetFormatType targetFormat) |
void |
setTargetType(String targetType) |
void |
setType(LogsAttributeRemapperType type) |
LogsAttributeRemapper |
sources(List<String> sources) |
LogsAttributeRemapper |
sourceType(String sourceType) |
LogsAttributeRemapper |
target(String target) |
LogsAttributeRemapper |
targetFormat(TargetFormatType targetFormat) |
LogsAttributeRemapper |
targetType(String targetType) |
String |
toString() |
LogsAttributeRemapper |
type(LogsAttributeRemapperType 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_OVERRIDE_ON_CONFLICT
public static final String JSON_PROPERTY_PRESERVE_SOURCE
public static final String JSON_PROPERTY_SOURCE_TYPE
public static final String JSON_PROPERTY_SOURCES
public static final String JSON_PROPERTY_TARGET
public static final String JSON_PROPERTY_TARGET_FORMAT
public static final String JSON_PROPERTY_TARGET_TYPE
public static final String JSON_PROPERTY_TYPE
public LogsAttributeRemapper()
public LogsAttributeRemapper(List<String> sources, String target, LogsAttributeRemapperType type)
public LogsAttributeRemapper isEnabled(Boolean isEnabled)
@Nullable public Boolean getIsEnabled()
public void setIsEnabled(Boolean isEnabled)
public LogsAttributeRemapper name(String name)
@Nullable public String getName()
public void setName(String name)
public LogsAttributeRemapper overrideOnConflict(Boolean overrideOnConflict)
@Nullable public Boolean getOverrideOnConflict()
public void setOverrideOnConflict(Boolean overrideOnConflict)
public LogsAttributeRemapper preserveSource(Boolean preserveSource)
@Nullable public Boolean getPreserveSource()
public void setPreserveSource(Boolean preserveSource)
public LogsAttributeRemapper sourceType(String sourceType)
@Nullable public String getSourceType()
attribute
or tag
.public void setSourceType(String sourceType)
public LogsAttributeRemapper sources(List<String> sources)
public LogsAttributeRemapper addSourcesItem(String sourcesItem)
public LogsAttributeRemapper target(String target)
public String getTarget()
public void setTarget(String target)
public LogsAttributeRemapper targetFormat(TargetFormatType targetFormat)
@Nullable public TargetFormatType getTargetFormat()
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.public void setTargetFormat(TargetFormatType targetFormat)
public LogsAttributeRemapper targetType(String targetType)
@Nullable public String getTargetType()
attribute
or tag
.public void setTargetType(String targetType)
public LogsAttributeRemapper type(LogsAttributeRemapperType type)
public LogsAttributeRemapperType getType()
public void setType(LogsAttributeRemapperType type)
public boolean equals(Object o)
Copyright © 2022. All rights reserved.