Class DeleteExpiredDataRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.DeleteExpiredDataRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class DeleteExpiredDataRequest
extends RequestBase
implements JsonpSerializable
Delete expired ML data.
 
 Delete all job results, model snapshots and forecast data that have exceeded
 their retention days period. Machine learning state documents that are not
 associated with any job are also deleted. You can limit the request to a
 single or set of anomaly detection jobs by using a job identifier, a group
 name, a comma-separated list of jobs, or a wildcard expression. You can
 delete expired data for all anomaly detection jobs by using
 _all, by specifying * as the
 <job_id>, or by omitting the <job_id>.
- 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<DeleteExpiredDataRequest>Json deserializer forDeleteExpiredDataRequestEndpoint "ml.delete_expired_data".
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringjobId()Identifier for an anomaly detection job.static DeleteExpiredDataRequestfinal FloatThe desired requests per second for the deletion processes.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetimeout()How long can the underlying delete processes run until they are canceled.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forDeleteExpiredDataRequest
- 
_ENDPOINTpublic static final Endpoint<DeleteExpiredDataRequest,DeleteExpiredDataResponse, _ENDPOINTErrorResponse> Endpoint "ml.delete_expired_data".
 
- 
- 
Method Details- 
ofpublic static DeleteExpiredDataRequest of(Function<DeleteExpiredDataRequest.Builder, ObjectBuilder<DeleteExpiredDataRequest>> fn) 
- 
jobIdIdentifier for an anomaly detection job. It can be a job identifier, a group name, or a wildcard expression.API name: job_id
- 
requestsPerSecondThe desired requests per second for the deletion processes. The default behavior is no throttling.API name: requests_per_second
- 
timeoutHow long can the underlying delete processes run until they are canceled.API name: timeout
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupDeleteExpiredDataRequestDeserializerprotected static void setupDeleteExpiredDataRequestDeserializer(ObjectDeserializer<DeleteExpiredDataRequest.Builder> op) 
 
-