Package com.datadog.api.client.v1.model
Class LogsLookupProcessor
java.lang.Object
com.datadog.api.client.v1.model.LogsLookupProcessor
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsLookupProcessor
extends Object
Use the Lookup Processor to define a mapping between a log attribute and a human readable value
saved in the processors mapping table. For example, you can use the Lookup Processor to map an
internal service ID into a human readable service name. Alternatively, you could also use it to
check if the MAC address that just attempted to connect to the production environment belongs to
your list of stolen machines.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogsLookupProcessor(List<String> lookupTable, String source, String target, LogsLookupProcessorType type) -
Method Summary
Modifier and TypeMethodDescriptionaddLookupTableItem(String lookupTableItem) defaultLookup(String defaultLookup) booleanReturn true if this LogsLookupProcessor object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Value to set the target attribute if the source value is not found in the list.Whether or not the processor is enabled.Mapping table of values for the source attribute and their associated target attribute values, formatted as["source_key1,target_value1", "source_key2,target_value2"]getName()Name of the processor.Source attribute used to perform the lookup.Name of the attribute that contains the corresponding value in the mapping list or thedefault_lookupif not found in the mapping list.getType()Type of logs lookup processor.inthashCode()lookupTable(List<String> lookupTable) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDefaultLookup(String defaultLookup) voidsetIsEnabled(Boolean isEnabled) voidsetLookupTable(List<String> lookupTable) voidvoidvoidvoidtoString()type(LogsLookupProcessorType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DEFAULT_LOOKUP
- See Also:
-
JSON_PROPERTY_IS_ENABLED
- See Also:
-
JSON_PROPERTY_LOOKUP_TABLE
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SOURCE
- See Also:
-
JSON_PROPERTY_TARGET
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
LogsLookupProcessor
public LogsLookupProcessor() -
LogsLookupProcessor
public LogsLookupProcessor(List<String> lookupTable, String source, String target, LogsLookupProcessorType type)
-
-
Method Details
-
defaultLookup
-
getDefaultLookup
Value to set the target attribute if the source value is not found in the list.- Returns:
- defaultLookup
-
setDefaultLookup
-
isEnabled
-
getIsEnabled
Whether or not the processor is enabled.- Returns:
- isEnabled
-
setIsEnabled
-
lookupTable
-
addLookupTableItem
-
getLookupTable
Mapping table of values for the source attribute and their associated target attribute values, formatted as["source_key1,target_value1", "source_key2,target_value2"]- Returns:
- lookupTable
-
setLookupTable
-
name
-
getName
Name of the processor.- Returns:
- name
-
setName
-
source
-
getSource
Source attribute used to perform the lookup.- Returns:
- source
-
setSource
-
target
-
getTarget
Name of the attribute that contains the corresponding value in the mapping list or thedefault_lookupif not found in the mapping list.- Returns:
- target
-
setTarget
-
type
-
getType
Type of logs lookup processor.- 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:
- LogsLookupProcessor
-
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 LogsLookupProcessor object is equal to o. -
hashCode
public int hashCode() -
toString
-