Class TestGrokPatternRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.text_structure.TestGrokPatternRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class TestGrokPatternRequest
extends RequestBase
implements JsonpSerializable
Test a Grok pattern. Test a Grok pattern on one or more lines of text. The
API indicates whether the lines match the pattern together with the offsets
and lengths of the matched substrings.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TestGrokPatternRequest>
Json deserializer forTestGrokPatternRequest
static final Endpoint<TestGrokPatternRequest,
TestGrokPatternResponse, ErrorResponse> Endpoint "text_structure.test_grok_pattern
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The mode of compatibility with ECS compliant Grok patterns.final String
Required - The Grok pattern to run on the text.static TestGrokPatternRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
text()
Required - The lines of text to run the Grok pattern on.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forTestGrokPatternRequest
-
_ENDPOINT
public static final Endpoint<TestGrokPatternRequest,TestGrokPatternResponse, _ENDPOINTErrorResponse> Endpoint "text_structure.test_grok_pattern
".
-
-
Method Details
-
of
public static TestGrokPatternRequest of(Function<TestGrokPatternRequest.Builder, ObjectBuilder<TestGrokPatternRequest>> fn) -
ecsCompatibility
The mode of compatibility with ECS compliant Grok patterns. Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. Valid values aredisabled
andv1
.API name:
ecs_compatibility
-
grokPattern
Required - The Grok pattern to run on the text.API name:
grok_pattern
-
text
Required - The lines of text to run the Grok pattern on.API name:
text
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupTestGrokPatternRequestDeserializer
protected static void setupTestGrokPatternRequestDeserializer(ObjectDeserializer<TestGrokPatternRequest.Builder> op)
-