Package com.datadog.api.client.v1.model
Class LogsStatusRemapper
java.lang.Object
com.datadog.api.client.v1.model.LogsStatusRemapper
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsStatusRemapper
extends Object
Use this Processor if you want to assign some attributes as the official status.
Each incoming status value is mapped as follows.
- Integers from 0 to 7 map to the Syslog severity standards
- Strings beginning with
emergor f (case-insensitive) map toemerg(0) - Strings beginning with
a(case-insensitive) map toalert(1) - Strings beginning with
c(case-insensitive) map tocritical(2) - Strings beginning with
err(case-insensitive) map toerror(3) - Strings beginning with
w(case-insensitive) map towarning(4) - Strings beginning with
n(case-insensitive) map tonotice(5) - Strings beginning with
i(case-insensitive) map toinfo(6) - Strings beginning with
d,traceorverbose(case-insensitive) map todebug(7) - Strings beginning with
oor matchingOKorSuccess(case-insensitive) map to OK - All others map to
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSourcesItem(String sourcesItem) booleanReturn true if this LogsStatusRemapper 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.getName()Name of the processor.Array of source attributes.getType()Type of logs status remapper.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetIsEnabled(Boolean isEnabled) voidvoidsetSources(List<String> sources) voidtoString()type(LogsStatusRemapperType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_IS_ENABLED
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SOURCES
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
LogsStatusRemapper
public LogsStatusRemapper() -
LogsStatusRemapper
-
-
Method Details
-
isEnabled
-
getIsEnabled
Whether or not the processor is enabled.- Returns:
- isEnabled
-
setIsEnabled
-
name
-
getName
Name of the processor.- Returns:
- name
-
setName
-
sources
-
addSourcesItem
-
getSources
Array of source attributes.- Returns:
- sources
-
setSources
-
type
-
getType
Type of logs status remapper.- 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:
- LogsStatusRemapper
-
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 LogsStatusRemapper object is equal to o. -
hashCode
public int hashCode() -
toString
-