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 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<DeleteExpiredDataRequest>
Json deserializer forDeleteExpiredDataRequest
Endpoint "ml.delete_expired_data
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
jobId()
Identifier for an anomaly detection job.static DeleteExpiredDataRequest
final Float
The desired requests per second for the deletion processes.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final Time
timeout()
How long can the underlying delete processes run until they are canceled.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forDeleteExpiredDataRequest
-
_ENDPOINT
public static final Endpoint<DeleteExpiredDataRequest,DeleteExpiredDataResponse, _ENDPOINTErrorResponse> Endpoint "ml.delete_expired_data
".
-
-
Method Details
-
of
public static DeleteExpiredDataRequest of(Function<DeleteExpiredDataRequest.Builder, ObjectBuilder<DeleteExpiredDataRequest>> fn) -
jobId
Identifier for an anomaly detection job. It can be a job identifier, a group name, or a wildcard expression.API name:
job_id
-
requestsPerSecond
The desired requests per second for the deletion processes. The default behavior is no throttling.API name:
requests_per_second
-
timeout
How long can the underlying delete processes run until they are canceled.API name:
timeout
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupDeleteExpiredDataRequestDeserializer
protected static void setupDeleteExpiredDataRequestDeserializer(ObjectDeserializer<DeleteExpiredDataRequest.Builder> op)
-