Class MigrateToDataStreamRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.MigrateToDataStreamRequest
Convert an index alias to a data stream. Converts an index alias to a data
stream. You must have a matching index template that is data stream enabled.
The alias must meet the following criteria: The alias must have a write
index; All indices for the alias must have a
@timestamp
field
mapping of a date
or date_nanos
field type; The
alias must not have any filters; The alias must not use custom routing. If
successful, the request removes the alias and creates a data stream with the
same name. The indices for the alias become hidden backing indices for the
stream. The write index for the alias becomes the write index for the stream.- 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 TypeFieldDescriptionEndpoint "indices.migrate_to_data_stream
". -
Method Summary
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<MigrateToDataStreamRequest,MigrateToDataStreamResponse, _ENDPOINTErrorResponse> Endpoint "indices.migrate_to_data_stream
".
-
-
Method Details
-
of
public static MigrateToDataStreamRequest of(Function<MigrateToDataStreamRequest.Builder, ObjectBuilder<MigrateToDataStreamRequest>> fn) -
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
name
Required - Name of the index alias to convert to a data stream.API name:
name
-
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-