Class DownsampleConfig
java.lang.Object
co.elastic.clients.elasticsearch.indices.DownsampleConfig
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DownsampleConfig>Json deserializer forDownsampleConfig -
Method Summary
Modifier and TypeMethodDescriptionfinal TimeRequired - The interval at which to aggregate the original time series index.static DownsampleConfigrebuild()final SamplingMethodThe sampling method used to reduce the documents; it can be eitheraggregateorlast_value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDownsampleConfig
-
-
Method Details
-
of
public static DownsampleConfig of(Function<DownsampleConfig.Builder, ObjectBuilder<DownsampleConfig>> fn) -
fixedInterval
Required - The interval at which to aggregate the original time series index.API name:
fixed_interval -
samplingMethod
The sampling method used to reduce the documents; it can be eitheraggregateorlast_value. Defaults toaggregate.API name:
sampling_method -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
DownsampleConfig.Builderinitialized with field values of this instance
-
setupDownsampleConfigDeserializer
protected static void setupDownsampleConfigDeserializer(ObjectDeserializer<DownsampleConfig.Builder> op)
-