Class ForecastRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.ForecastRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ForecastRequest extends RequestBase implements JsonpSerializable
Predicts the future behavior of a time series by using its historical
behavior. You can create a forecast job based on an anomaly detection job to
extrapolate future behavior. You can delete a forecast by using the Delete
forecast API.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForecastRequest.BuilderBuilder forForecastRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ForecastRequest>_DESERIALIZERJson deserializer forForecastRequeststatic Endpoint<ForecastRequest,ForecastResponse,ErrorResponse>_ENDPOINTEndpoint "ml.forecast". -
Method Summary
Modifier and Type Method Description Timeduration()A period of time that indicates how far into the future to forecast.TimeexpiresIn()The period of time that forecast results are retained.java.lang.StringjobId()Required - Identifier for the anomaly detection job.java.lang.StringmaxModelMemory()The maximum memory the forecast can use.static ForecastRequestof(java.util.function.Function<ForecastRequest.Builder,ObjectBuilder<ForecastRequest>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupForecastRequestDeserializer(ObjectDeserializer<ForecastRequest.Builder> op)Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forForecastRequest -
_ENDPOINT
Endpoint "ml.forecast".
-
-
Method Details
-
of
public static ForecastRequest of(java.util.function.Function<ForecastRequest.Builder,ObjectBuilder<ForecastRequest>> fn) -
duration
A period of time that indicates how far into the future to forecast. For example,30dcorresponds to 30 days. The forecast starts at the last record that was processed.API name:
duration -
expiresIn
The period of time that forecast results are retained. After a forecast expires, the results are deleted. If set to a value of 0, the forecast is never automatically deleted.API name:
expires_in -
jobId
public final java.lang.String jobId()Required - Identifier for the anomaly detection job.API name:
job_id -
maxModelMemory
@Nullable public final java.lang.String maxModelMemory()The maximum memory the forecast can use. If the forecast needs to use more than the provided amount, it will spool to disk. Default is 20mb, maximum is 500mb and minimum is 1mb. If set to 40% or more of the job’s configured memory limit, it is automatically reduced to below that amount.API name:
max_model_memory -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupForecastRequestDeserializer
protected static void setupForecastRequestDeserializer(ObjectDeserializer<ForecastRequest.Builder> op)
-