@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsStatusRemapper extends Object
Each incoming status value is mapped as follows.
emerg or f (case-insensitive) map to emerg
(0)
a (case-insensitive) map to alert (1)
c (case-insensitive) map to critical (2)
err (case-insensitive) map to error (3)
w (case-insensitive) map to warning (4)
n (case-insensitive) map to notice (5)
i (case-insensitive) map to info (6)
d, trace or verbose
(case-insensitive) map to debug (7)
o or matching OK or Success
(case-insensitive) map to OK
info (6)
Note: If multiple log status 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 |
|---|
LogsStatusRemapper() |
LogsStatusRemapper(List<String> sources,
LogsStatusRemapperType type) |
| Modifier and Type | Method and Description |
|---|---|
LogsStatusRemapper |
addSourcesItem(String sourcesItem) |
boolean |
equals(Object o)
Return true if this LogsStatusRemapper 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.
|
LogsStatusRemapperType |
getType()
Type of logs status remapper.
|
int |
hashCode() |
LogsStatusRemapper |
isEnabled(Boolean isEnabled) |
LogsStatusRemapper |
name(String name) |
LogsStatusRemapper |
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(LogsStatusRemapperType type) |
LogsStatusRemapper |
sources(List<String> sources) |
String |
toString() |
LogsStatusRemapper |
type(LogsStatusRemapperType 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 LogsStatusRemapper()
public LogsStatusRemapper(List<String> sources, LogsStatusRemapperType type)
public LogsStatusRemapper isEnabled(Boolean isEnabled)
@Nullable public Boolean getIsEnabled()
public void setIsEnabled(Boolean isEnabled)
public LogsStatusRemapper name(String name)
@Nullable public String getName()
public void setName(String name)
public LogsStatusRemapper sources(List<String> sources)
public LogsStatusRemapper addSourcesItem(String sourcesItem)
public LogsStatusRemapper type(LogsStatusRemapperType type)
public LogsStatusRemapperType getType()
public void setType(LogsStatusRemapperType type)
public LogsStatusRemapper 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.