Class OpenJobRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.OpenJobRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class OpenJobRequest extends RequestBase implements JsonpSerializable
Opens one or more anomaly detection jobs. An anomaly detection job must be
opened in order for it to be ready to receive and analyze data. It can be
opened and closed multiple times throughout its lifecycle. When you open a
new job, it starts with an empty model. When you open an existing job, the
most recent model state is automatically loaded. The job is ready to resume
its analysis from where it left off, once new data is received.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenJobRequest.Builder
Builder forOpenJobRequest
.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<OpenJobRequest>
_DESERIALIZER
Json deserializer forOpenJobRequest
static Endpoint<OpenJobRequest,OpenJobResponse,ErrorResponse>
_ENDPOINT
Endpoint "ml.open_job
". -
Method Summary
Modifier and Type Method Description java.lang.String
jobId()
Required - Identifier for the anomaly detection job.static OpenJobRequest
of(java.util.function.Function<OpenJobRequest.Builder,ObjectBuilder<OpenJobRequest>> fn)
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
setupOpenJobRequestDeserializer(ObjectDeserializer<OpenJobRequest.Builder> op)
Time
timeout()
Refer to the description for thetimeout
query parameter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forOpenJobRequest
-
_ENDPOINT
Endpoint "ml.open_job
".
-
-
Method Details
-
of
public static OpenJobRequest of(java.util.function.Function<OpenJobRequest.Builder,ObjectBuilder<OpenJobRequest>> fn) -
jobId
public final java.lang.String jobId()Required - Identifier for the anomaly detection job.API name:
job_id
-
timeout
Refer to the description for thetimeout
query parameter.API name:
timeout
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupOpenJobRequestDeserializer
protected static void setupOpenJobRequestDeserializer(ObjectDeserializer<OpenJobRequest.Builder> op)
-