Package com.oracle.bmc.logging.model
Class GrokPattern.Builder
- java.lang.Object
-
- com.oracle.bmc.logging.model.GrokPattern.Builder
-
- Enclosing class:
- GrokPattern
public static class GrokPattern.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrokPattern
build()
GrokPattern.Builder
copy(GrokPattern model)
GrokPattern.Builder
fieldTimeFormat(String fieldTimeFormat)
Process value using the specified format.GrokPattern.Builder
fieldTimeKey(String fieldTimeKey)
Specify the time field for the event time.GrokPattern.Builder
fieldTimeZone(String fieldTimeZone)
Use the specified time zone.GrokPattern.Builder
name(String name)
The name key to tag this Grok pattern.GrokPattern.Builder
pattern(String pattern)
The Grok pattern.
-
-
-
Method Detail
-
pattern
public GrokPattern.Builder pattern(String pattern)
The Grok pattern.- Parameters:
pattern
- the value to set- Returns:
- this builder
-
name
public GrokPattern.Builder name(String name)
The name key to tag this Grok pattern.- Parameters:
name
- the value to set- Returns:
- this builder
-
fieldTimeKey
public GrokPattern.Builder fieldTimeKey(String fieldTimeKey)
Specify the time field for the event time.If the event doesn’t have this field, the current time is used.
- Parameters:
fieldTimeKey
- the value to set- Returns:
- this builder
-
fieldTimeFormat
public GrokPattern.Builder fieldTimeFormat(String fieldTimeFormat)
Process value using the specified format.This is available only when time_type is a string.
- Parameters:
fieldTimeFormat
- the value to set- Returns:
- this builder
-
fieldTimeZone
public GrokPattern.Builder fieldTimeZone(String fieldTimeZone)
Use the specified time zone.The time value can be parsed or formatted in the specified time zone.
- Parameters:
fieldTimeZone
- the value to set- Returns:
- this builder
-
build
public GrokPattern build()
-
copy
public GrokPattern.Builder copy(GrokPattern model)
-
-