Class DownsampleRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.DownsampleRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class DownsampleRequest
extends RequestBase
implements JsonpSerializable
Downsample an index. Aggregate a time series (TSDS) index and store
pre-computed statistical summaries (
min, max,
sum, value_count and avg) for each
metric field grouped by a configured time interval. For example, a TSDS index
that contains metrics sampled every 10 seconds can be downsampled to an
hourly index. All documents within an hour interval are summarized and stored
as a single document in the downsample index.
NOTE: Only indices in a time series data stream are supported. Neither field
nor document level security can be defined on the source index. The source
index must be read only (index.blocks.write: true).
- 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<DownsampleRequest>static final Endpoint<DownsampleRequest,DownsampleResponse, ErrorResponse> Endpoint "indices.downsample". -
Method Summary
Modifier and TypeMethodDescriptionfinal DownsampleConfigconfig()Required - Request body.protected static JsonpDeserializer<DownsampleRequest>final Stringindex()Required - Name of the time series index to downsample.static DownsampleRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.final StringRequired - Name of the index to create.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
-
_ENDPOINT
Endpoint "indices.downsample".
-
-
Method Details
-
of
public static DownsampleRequest of(Function<DownsampleRequest.Builder, ObjectBuilder<DownsampleRequest>> fn) -
index
Required - Name of the time series index to downsample.API name:
index -
targetIndex
Required - Name of the index to create.API name:
target_index -
config
Required - Request body. -
serialize
Serialize this value to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
createDownsampleRequestDeserializer
-