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 SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TestGrokPatternRequest>Json deserializer forTestGrokPatternRequeststatic final Endpoint<TestGrokPatternRequest,TestGrokPatternResponse, ErrorResponse> Endpoint "text_structure.test_grok_pattern".
- 
Method SummaryModifier 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.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forTestGrokPatternRequest
- 
_ENDPOINTpublic static final Endpoint<TestGrokPatternRequest,TestGrokPatternResponse, _ENDPOINTErrorResponse> Endpoint "text_structure.test_grok_pattern".
 
- 
- 
Method Details- 
ofpublic static TestGrokPatternRequest of(Function<TestGrokPatternRequest.Builder, ObjectBuilder<TestGrokPatternRequest>> fn) 
- 
ecsCompatibilityThe 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
- 
grokPatternRequired - The Grok pattern to run on the text.API name: grok_pattern
- 
textRequired - The lines of text to run the Grok pattern on.API name: text
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupTestGrokPatternRequestDeserializerprotected static void setupTestGrokPatternRequestDeserializer(ObjectDeserializer<TestGrokPatternRequest.Builder> op) 
 
-