Class PreviewDatafeedRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.PreviewDatafeedRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class PreviewDatafeedRequest
extends RequestBase
implements JsonpSerializable
Preview a datafeed. This API returns the first "page" of search
 results from a datafeed. You can preview an existing datafeed or provide
 configuration details for a datafeed and anomaly detection job in the API.
 The preview shows the structure of the data that will be passed to the
 anomaly detection engine. IMPORTANT: When Elasticsearch security features are
 enabled, the preview uses the credentials of the user that called the API.
 However, when the datafeed starts it uses the roles of the last user that
 created or updated the datafeed. To get a preview that accurately reflects
 the behavior of the datafeed, use the appropriate credentials. You can also
 use secondary authorization headers to supply the credentials.
- 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<PreviewDatafeedRequest>Json deserializer forPreviewDatafeedRequeststatic final SimpleEndpoint<PreviewDatafeedRequest,?> Endpoint "ml.preview_datafeed".
- 
Method SummaryModifier and TypeMethodDescriptionstatic <TDocument>
 Endpoint<PreviewDatafeedRequest,PreviewDatafeedResponse<TDocument>, ErrorResponse> createPreviewDatafeedEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "ml.preview_datafeed" endpoint.final DatafeedConfigThe datafeed definition to preview.final StringA numerical character string that uniquely identifies the datafeed.final DateTimeend()The end time when the datafeed preview should stopfinal JobConfigThe configuration details for the anomaly detection job that is associated with the datafeed.static PreviewDatafeedRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal DateTimestart()The start time from where the datafeed preview should beginMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forPreviewDatafeedRequest
- 
_ENDPOINTEndpoint "ml.preview_datafeed".
 
- 
- 
Method Details- 
ofpublic static PreviewDatafeedRequest of(Function<PreviewDatafeedRequest.Builder, ObjectBuilder<PreviewDatafeedRequest>> fn) 
- 
datafeedConfigThe datafeed definition to preview.API name: datafeed_config
- 
datafeedIdA 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. NOTE: If you use this path parameter, you cannot provide datafeed or anomaly detection job configuration details in the request body.API name: datafeed_id
- 
endThe end time when the datafeed preview should stopAPI name: end
- 
jobConfigThe configuration details for the anomaly detection job that is associated with the datafeed. If thedatafeed_configobject does not include ajob_idthat references an existing anomaly detection job, you must supply thisjob_configobject. If you include both ajob_idand ajob_config, the latter information is used. You cannot specify ajob_configobject unless you also supply adatafeed_configobject.API name: job_config
- 
startThe start time from where the datafeed preview should beginAPI name: start
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupPreviewDatafeedRequestDeserializerprotected static void setupPreviewDatafeedRequestDeserializer(ObjectDeserializer<PreviewDatafeedRequest.Builder> op) 
- 
createPreviewDatafeedEndpointpublic static <TDocument> Endpoint<PreviewDatafeedRequest,PreviewDatafeedResponse<TDocument>, createPreviewDatafeedEndpointErrorResponse> (JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "ml.preview_datafeed" endpoint.
 
-