Class RevertModelSnapshotRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.RevertModelSnapshotRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class RevertModelSnapshotRequest
extends RequestBase
implements JsonpSerializable
Revert to a snapshot. The machine learning features react quickly to
anomalous input, learning new behaviors in data. Highly anomalous input
increases the variance in the models whilst the system learns whether this is
a new step-change in behavior or a one-off event. In the case where this
anomalous input is known to be a one-off, then it might be appropriate to
reset the model state to a time before this event. For example, you might
consider reverting to a saved snapshot after Black Friday or a critical
system failure.
- 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<RevertModelSnapshotRequest>
Json deserializer forRevertModelSnapshotRequest
Endpoint "ml.revert_model_snapshot
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Refer to the description for thedelete_intervening_results
query parameter.final String
jobId()
Required - Identifier for the anomaly detection job.static RevertModelSnapshotRequest
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
setupRevertModelSnapshotRequestDeserializer
(ObjectDeserializer<RevertModelSnapshotRequest.Builder> op) final String
Required - You can specifyempty
as the <snapshot_id>.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forRevertModelSnapshotRequest
-
_ENDPOINT
public static final Endpoint<RevertModelSnapshotRequest,RevertModelSnapshotResponse, _ENDPOINTErrorResponse> Endpoint "ml.revert_model_snapshot
".
-
-
Method Details
-
of
public static RevertModelSnapshotRequest of(Function<RevertModelSnapshotRequest.Builder, ObjectBuilder<RevertModelSnapshotRequest>> fn) -
deleteInterveningResults
Refer to the description for thedelete_intervening_results
query parameter.API name:
delete_intervening_results
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
snapshotId
Required - You can specifyempty
as the <snapshot_id>. Reverting to the empty snapshot means the anomaly detection job starts learning a new model from scratch when it is started.API name:
snapshot_id
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupRevertModelSnapshotRequestDeserializer
protected static void setupRevertModelSnapshotRequestDeserializer(ObjectDeserializer<RevertModelSnapshotRequest.Builder> op)
-