Package com.datadog.api.client.v1.model
Class LogsGrokParser
java.lang.Object
com.datadog.api.client.v1.model.LogsGrokParser
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsGrokParser
extends Object
Create custom grok rules to parse the full message or a specific
attribute of your raw event. For more information, see the parsing section.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogsGrokParser(LogsGrokParserRules grok, String source, LogsGrokParserType type) -
Method Summary
Modifier and TypeMethodDescriptionaddSamplesItem(String samplesItem) booleanReturn true if this LogsGrokParser object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getGrok()Set of rules for the grok parser.Whether or not the processor is enabled.getName()Name of the processor.List of sample logs to test this grok parser.Name of the log attribute to parse.getType()Type of logs grok parser.grok(LogsGrokParserRules grok) inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetGrok(LogsGrokParserRules grok) voidsetIsEnabled(Boolean isEnabled) voidvoidsetSamples(List<String> samples) voidvoidsetType(LogsGrokParserType type) toString()type(LogsGrokParserType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_GROK
- See Also:
-
JSON_PROPERTY_IS_ENABLED
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SAMPLES
- See Also:
-
JSON_PROPERTY_SOURCE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
LogsGrokParser
public LogsGrokParser() -
LogsGrokParser
-
-
Method Details
-
grok
-
getGrok
Set of rules for the grok parser.- Returns:
- grok
-
setGrok
-
isEnabled
-
getIsEnabled
Whether or not the processor is enabled.- Returns:
- isEnabled
-
setIsEnabled
-
name
-
getName
Name of the processor.- Returns:
- name
-
setName
-
samples
-
addSamplesItem
-
getSamples
List of sample logs to test this grok parser.- Returns:
- samples
-
setSamples
-
source
-
getSource
Name of the log attribute to parse.- Returns:
- source
-
setSource
-
type
-
getType
Type of logs grok parser.- 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:
- LogsGrokParser
-
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 LogsGrokParser object is equal to o. -
hashCode
public int hashCode() -
toString
-