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 forTestGrokPatternRequeststatic final Endpoint<TestGrokPatternRequest,TestGrokPatternResponse, ErrorResponse> Endpoint "text_structure.test_grok_pattern". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe mode of compatibility with ECS compliant Grok patterns.final StringRequired - The Grok pattern to run on the text.static TestGrokPatternRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtext()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 aredisabledandv1.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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupTestGrokPatternRequestDeserializer
protected static void setupTestGrokPatternRequestDeserializer(ObjectDeserializer<TestGrokPatternRequest.Builder> op)
-