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
Tests a Grok pattern on some text.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier 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 (disabled or v1, default: disabled).final String
Required - 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 - 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 (disabled or v1, default: disabled).API name:
ecs_compatibility
-
grokPattern
Required - Grok pattern to run on the text.API name:
grok_pattern
-
text
Required - 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)
-