Class ForecastRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.ForecastRequest
- All Implemented Interfaces:
- JsonpSerializable
Predict future behavior of a time series.
 
 Forecasts are not supported for jobs that perform population analysis; an
 error occurs if you try to create a forecast for a job that has an
 over_field_name in its configuration. Forcasts predict future
 behavior based on historical data.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ForecastRequest>Json deserializer forForecastRequeststatic final Endpoint<ForecastRequest,ForecastResponse, ErrorResponse> Endpoint "ml.forecast".
- 
Method SummaryModifier and TypeMethodDescriptionfinal Timeduration()Refer to the description for thedurationquery parameter.final TimeRefer to the description for theexpires_inquery parameter.final StringjobId()Required - Identifier for the anomaly detection job.final StringRefer to the description for themax_model_memoryquery parameter.static ForecastRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forForecastRequest
- 
_ENDPOINTEndpoint "ml.forecast".
 
- 
- 
Method Details- 
ofpublic static ForecastRequest of(Function<ForecastRequest.Builder, ObjectBuilder<ForecastRequest>> fn) 
- 
durationRefer to the description for thedurationquery parameter.API name: duration
- 
expiresInRefer to the description for theexpires_inquery parameter.API name: expires_in
- 
jobIdRequired - Identifier for the anomaly detection job. The job must be open when you create a forecast; otherwise, an error occurs.API name: job_id
- 
maxModelMemoryRefer to the description for themax_model_memoryquery parameter.API name: max_model_memory
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupForecastRequestDeserializerprotected static void setupForecastRequestDeserializer(ObjectDeserializer<ForecastRequest.Builder> op) 
 
-