Class StartDatafeedRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class StartDatafeedRequest extends RequestBase implements JsonpSerializable
A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped multiple times throughout its lifecycle.
Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs.
If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. If new data was indexed for that exact millisecond between stopping and starting, it will be ignored.
When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or update it had at the time of creation or update and runs the query using those same roles. If you provided secondary authorization headers when you created or updated the datafeed, those credentials are used instead.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStartDatafeedRequest.BuilderBuilder forStartDatafeedRequest.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<StartDatafeedRequest>_DESERIALIZERJson deserializer forStartDatafeedRequeststatic Endpoint<StartDatafeedRequest,StartDatafeedResponse,ErrorResponse>_ENDPOINTEndpoint "ml.start_datafeed". -
Method Summary
Modifier and Type Method Description java.lang.StringdatafeedId()Required - A numerical character string that uniquely identifies the datafeed.Timeend()Refer to the description for theendquery parameter.static StartDatafeedRequestof(java.util.function.Function<StartDatafeedRequest.Builder,ObjectBuilder<StartDatafeedRequest>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupStartDatafeedRequestDeserializer(ObjectDeserializer<StartDatafeedRequest.Builder> op)Timestart()Refer to the description for thestartquery parameter.Timetimeout()Refer to the description for thetimeoutquery parameter.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forStartDatafeedRequest -
_ENDPOINT
Endpoint "ml.start_datafeed".
-
-
Method Details
-
of
public static StartDatafeedRequest of(java.util.function.Function<StartDatafeedRequest.Builder,ObjectBuilder<StartDatafeedRequest>> fn) -
datafeedId
public final java.lang.String datafeedId()Required - A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters.API name:
datafeed_id -
end
Refer to the description for theendquery parameter.API name:
end -
start
Refer to the description for thestartquery parameter.API name:
start -
timeout
Refer to the description for thetimeoutquery parameter.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupStartDatafeedRequestDeserializer
protected static void setupStartDatafeedRequestDeserializer(ObjectDeserializer<StartDatafeedRequest.Builder> op)
-