Class MachineLearningClient
public final class MachineLearningClient
extends java.lang.Object
RestHighLevelClient
See the X-Pack Machine Learning APIs for additional information.
-
Method Summary
Modifier and Type Method Description CloseJobResponsecloseJob(CloseJobRequest request, RequestOptions options)Closes one or more Machine Learning Jobs.CancellablecloseJobAsync(CloseJobRequest request, RequestOptions options, ActionListener<CloseJobResponse> listener)Closes one or more Machine Learning Jobs asynchronously, notifies listener on completion A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.AcknowledgedResponsedeleteCalendar(DeleteCalendarRequest request, RequestOptions options)Deletes the given Machine Learning CalendarCancellabledeleteCalendarAsync(DeleteCalendarRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning Job asynchronously and notifies the listener on completionAcknowledgedResponsedeleteCalendarEvent(DeleteCalendarEventRequest request, RequestOptions options)Removes a Scheduled Event from a calendarCancellabledeleteCalendarEventAsync(DeleteCalendarEventRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Removes a Scheduled Event from a calendar, notifies listener when completedPutCalendarResponsedeleteCalendarJob(DeleteCalendarJobRequest request, RequestOptions options)Removes Machine Learning Job(s) from a calendarCancellabledeleteCalendarJobAsync(DeleteCalendarJobRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Removes Machine Learning Job(s) from a calendar, notifies listener when completedAcknowledgedResponsedeleteDatafeed(DeleteDatafeedRequest request, RequestOptions options)Deletes the given Machine Learning DatafeedCancellabledeleteDatafeedAsync(DeleteDatafeedRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning Datafeed asynchronously and notifies the listener on completionAcknowledgedResponsedeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request, RequestOptions options)Deletes the given Data Frame Analytics configCancellabledeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Data Frame Analytics config asynchronously and notifies listener upon completionDeleteExpiredDataResponsedeleteExpiredData(DeleteExpiredDataRequest request, RequestOptions options)Deletes expired data from Machine Learning JobsCancellabledeleteExpiredDataAsync(DeleteExpiredDataRequest request, RequestOptions options, ActionListener<DeleteExpiredDataResponse> listener)Deletes expired data from Machine Learning Jobs asynchronously and notifies the listener on completionAcknowledgedResponsedeleteFilter(DeleteFilterRequest request, RequestOptions options)Deletes the given Machine Learning filterCancellabledeleteFilterAsync(DeleteFilterRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning filter asynchronously and notifies the listener on completionAcknowledgedResponsedeleteForecast(DeleteForecastRequest request, RequestOptions options)Deletes Machine Learning Job ForecastsCancellabledeleteForecastAsync(DeleteForecastRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes Machine Learning Job Forecasts asynchronouslyDeleteJobResponsedeleteJob(DeleteJobRequest request, RequestOptions options)Deletes the given Machine Learning JobCancellabledeleteJobAsync(DeleteJobRequest request, RequestOptions options, ActionListener<DeleteJobResponse> listener)Deletes the given Machine Learning Job asynchronously and notifies the listener on completionAcknowledgedResponsedeleteModelSnapshot(DeleteModelSnapshotRequest request, RequestOptions options)Deletes Machine Learning Model SnapshotsCancellabledeleteModelSnapshotAsync(DeleteModelSnapshotRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes Machine Learning Model Snapshots asynchronously and notifies the listener on completionAcknowledgedResponsedeleteTrainedModel(DeleteTrainedModelRequest request, RequestOptions options)Deletes the given Trained ModelCancellabledeleteTrainedModelAsync(DeleteTrainedModelRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Trained Model asynchronously and notifies listener upon completionEstimateModelMemoryResponseestimateModelMemory(EstimateModelMemoryRequest request, RequestOptions options)Estimate the model memory an analysis config is likely to need given supplied field cardinalitiesCancellableestimateModelMemoryAsync(EstimateModelMemoryRequest request, RequestOptions options, ActionListener<EstimateModelMemoryResponse> listener)Estimate the model memory an analysis config is likely to need given supplied field cardinalities and notifies listener upon completionEvaluateDataFrameResponseevaluateDataFrame(EvaluateDataFrameRequest request, RequestOptions options)Evaluates the given Data FrameCancellableevaluateDataFrameAsync(EvaluateDataFrameRequest request, RequestOptions options, ActionListener<EvaluateDataFrameResponse> listener)Evaluates the given Data Frame asynchronously and notifies listener upon completionExplainDataFrameAnalyticsResponseexplainDataFrameAnalytics(ExplainDataFrameAnalyticsRequest request, RequestOptions options)Explains the given Data Frame AnalyticsCancellableexplainDataFrameAnalyticsAsync(ExplainDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<ExplainDataFrameAnalyticsResponse> listener)Explains the given Data Frame Analytics asynchronously and notifies listener upon completionFindFileStructureResponsefindFileStructure(FindFileStructureRequest request, RequestOptions options)Finds the structure of a fileCancellablefindFileStructureAsync(FindFileStructureRequest request, RequestOptions options, ActionListener<FindFileStructureResponse> listener)Finds the structure of a file asynchronously and notifies the listener on completionFlushJobResponseflushJob(FlushJobRequest request, RequestOptions options)Flushes internally buffered data for the given Machine Learning Job ensuring all data sent to the has been processed.CancellableflushJobAsync(FlushJobRequest request, RequestOptions options, ActionListener<FlushJobResponse> listener)Flushes internally buffered data for the given Machine Learning Job asynchronously ensuring all data sent to the has been processed.ForecastJobResponseforecastJob(ForecastJobRequest request, RequestOptions options)Creates a forecast of an existing, opened Machine Learning Job This predicts the future behavior of a time series by using its historical behavior.CancellableforecastJobAsync(ForecastJobRequest request, RequestOptions options, ActionListener<ForecastJobResponse> listener)Creates a forecast of an existing, opened Machine Learning Job asynchronously This predicts the future behavior of a time series by using its historical behavior.GetBucketsResponsegetBuckets(GetBucketsRequest request, RequestOptions options)Gets the buckets for a Machine Learning Job.CancellablegetBucketsAsync(GetBucketsRequest request, RequestOptions options, ActionListener<GetBucketsResponse> listener)Gets the buckets for a Machine Learning Job, notifies listener once the requested buckets are retrieved.GetCalendarEventsResponsegetCalendarEvents(GetCalendarEventsRequest request, RequestOptions options)Gets the events for a machine learning calendarCancellablegetCalendarEventsAsync(GetCalendarEventsRequest request, RequestOptions options, ActionListener<GetCalendarEventsResponse> listener)Gets the events for a a machine learning calendar asynchronously, notifies the listener on completionGetCalendarsResponsegetCalendars(GetCalendarsRequest request, RequestOptions options)Gets a single or multiple calendars.CancellablegetCalendarsAsync(GetCalendarsRequest request, RequestOptions options, ActionListener<GetCalendarsResponse> listener)Gets a single or multiple calendars, notifies listener once the requested records are retrieved.GetCategoriesResponsegetCategories(GetCategoriesRequest request, RequestOptions options)Gets the categories for a Machine Learning Job.CancellablegetCategoriesAsync(GetCategoriesRequest request, RequestOptions options, ActionListener<GetCategoriesResponse> listener)Gets the categories for a Machine Learning Job, notifies listener once the requested buckets are retrieved.GetDatafeedResponsegetDatafeed(GetDatafeedRequest request, RequestOptions options)Gets one or more Machine Learning datafeed configuration info.CancellablegetDatafeedAsync(GetDatafeedRequest request, RequestOptions options, ActionListener<GetDatafeedResponse> listener)Gets one or more Machine Learning datafeed configuration info, asynchronously.GetDatafeedStatsResponsegetDatafeedStats(GetDatafeedStatsRequest request, RequestOptions options)Gets statistics for one or more Machine Learning datafeedsCancellablegetDatafeedStatsAsync(GetDatafeedStatsRequest request, RequestOptions options, ActionListener<GetDatafeedStatsResponse> listener)Gets statistics for one or more Machine Learning datafeeds, asynchronously.GetDataFrameAnalyticsResponsegetDataFrameAnalytics(GetDataFrameAnalyticsRequest request, RequestOptions options)Gets a single or multiple Data Frame Analytics configsCancellablegetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<GetDataFrameAnalyticsResponse> listener)Gets a single or multiple Data Frame Analytics configs asynchronously and notifies listener upon completionGetDataFrameAnalyticsStatsResponsegetDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequest request, RequestOptions options)Gets the running statistics of a Data Frame AnalyticsCancellablegetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequest request, RequestOptions options, ActionListener<GetDataFrameAnalyticsStatsResponse> listener)Gets the running statistics of a Data Frame Analytics asynchronously and notifies listener upon completionGetFiltersResponsegetFilter(GetFiltersRequest request, RequestOptions options)Gets Machine Learning FiltersCancellablegetFilterAsync(GetFiltersRequest request, RequestOptions options, ActionListener<GetFiltersResponse> listener)Gets Machine Learning Filters asynchronously and notifies listener on completionGetInfluencersResponsegetInfluencers(GetInfluencersRequest request, RequestOptions options)Gets the influencers for a Machine Learning Job.CancellablegetInfluencersAsync(GetInfluencersRequest request, RequestOptions options, ActionListener<GetInfluencersResponse> listener)Gets the influencers for a Machine Learning Job, notifies listener once the requested influencers are retrieved.GetJobResponsegetJob(GetJobRequest request, RequestOptions options)Gets one or more Machine Learning job configuration info.CancellablegetJobAsync(GetJobRequest request, RequestOptions options, ActionListener<GetJobResponse> listener)Gets one or more Machine Learning job configuration info, asynchronously.GetJobStatsResponsegetJobStats(GetJobStatsRequest request, RequestOptions options)Gets usage statistics for one or more Machine Learning jobsCancellablegetJobStatsAsync(GetJobStatsRequest request, RequestOptions options, ActionListener<GetJobStatsResponse> listener)Gets usage statistics for one or more Machine Learning jobs, asynchronously.MlInfoResponsegetMlInfo(MlInfoRequest request, RequestOptions options)Gets Machine Learning information about default values and limits.CancellablegetMlInfoAsync(MlInfoRequest request, RequestOptions options, ActionListener<MlInfoResponse> listener)Gets Machine Learning information about default values and limits, asynchronously.GetModelSnapshotsResponsegetModelSnapshots(GetModelSnapshotsRequest request, RequestOptions options)Gets the snapshots for a Machine Learning Job.CancellablegetModelSnapshotsAsync(GetModelSnapshotsRequest request, RequestOptions options, ActionListener<GetModelSnapshotsResponse> listener)Gets the snapshots for a Machine Learning Job, notifies listener once the requested snapshots are retrieved.GetOverallBucketsResponsegetOverallBuckets(GetOverallBucketsRequest request, RequestOptions options)Gets overall buckets for a set of Machine Learning Jobs.CancellablegetOverallBucketsAsync(GetOverallBucketsRequest request, RequestOptions options, ActionListener<GetOverallBucketsResponse> listener)Gets overall buckets for a set of Machine Learning Jobs, notifies listener once the requested buckets are retrieved.GetRecordsResponsegetRecords(GetRecordsRequest request, RequestOptions options)Gets the records for a Machine Learning Job.CancellablegetRecordsAsync(GetRecordsRequest request, RequestOptions options, ActionListener<GetRecordsResponse> listener)Gets the records for a Machine Learning Job, notifies listener once the requested records are retrieved.GetTrainedModelsResponsegetTrainedModels(GetTrainedModelsRequest request, RequestOptions options)Gets trained model configsCancellablegetTrainedModelsAsync(GetTrainedModelsRequest request, RequestOptions options, ActionListener<GetTrainedModelsResponse> listener)Gets trained model configs asynchronously and notifies listener upon completionGetTrainedModelsStatsResponsegetTrainedModelsStats(GetTrainedModelsStatsRequest request, RequestOptions options)Gets trained model statsCancellablegetTrainedModelsStatsAsync(GetTrainedModelsStatsRequest request, RequestOptions options, ActionListener<GetTrainedModelsStatsResponse> listener)Gets trained model stats asynchronously and notifies listener upon completionOpenJobResponseopenJob(OpenJobRequest request, RequestOptions options)Opens a Machine Learning Job.CancellableopenJobAsync(OpenJobRequest request, RequestOptions options, ActionListener<OpenJobResponse> listener)Opens a Machine Learning Job asynchronously, notifies listener on completion.PostCalendarEventResponsepostCalendarEvent(PostCalendarEventRequest request, RequestOptions options)Creates new events for a a machine learning calendarCancellablepostCalendarEventAsync(PostCalendarEventRequest request, RequestOptions options, ActionListener<PostCalendarEventResponse> listener)Creates new events for a a machine learning calendar asynchronously, notifies the listener on completionPostDataResponsepostData(PostDataRequest request, RequestOptions options)Sends data to an anomaly detection job for analysis.CancellablepostDataAsync(PostDataRequest request, RequestOptions options, ActionListener<PostDataResponse> listener)Sends data to an anomaly detection job for analysis, asynchronouslyPreviewDatafeedResponsepreviewDatafeed(PreviewDatafeedRequest request, RequestOptions options)Previews the given Machine Learning DatafeedCancellablepreviewDatafeedAsync(PreviewDatafeedRequest request, RequestOptions options, ActionListener<PreviewDatafeedResponse> listener)Previews the given Machine Learning Datafeed asynchronously and notifies the listener on completionPutCalendarResponseputCalendar(PutCalendarRequest request, RequestOptions options)Create a new machine learning calendarCancellableputCalendarAsync(PutCalendarRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Create a new machine learning calendar, notifies listener with the created calendarPutCalendarResponseputCalendarJob(PutCalendarJobRequest request, RequestOptions options)Adds Machine Learning Job(s) to a calendarCancellableputCalendarJobAsync(PutCalendarJobRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Adds Machine Learning Job(s) to a calendar, notifies listener when completedPutDatafeedResponseputDatafeed(PutDatafeedRequest request, RequestOptions options)Creates a new Machine Learning DatafeedCancellableputDatafeedAsync(PutDatafeedRequest request, RequestOptions options, ActionListener<PutDatafeedResponse> listener)Creates a new Machine Learning Datafeed asynchronously and notifies listener on completionPutDataFrameAnalyticsResponseputDataFrameAnalytics(PutDataFrameAnalyticsRequest request, RequestOptions options)Creates a new Data Frame Analytics configCancellableputDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<PutDataFrameAnalyticsResponse> listener)Creates a new Data Frame Analytics config asynchronously and notifies listener upon completionPutFilterResponseputFilter(PutFilterRequest request, RequestOptions options)Creates a new Machine Learning FilterCancellableputFilterAsync(PutFilterRequest request, RequestOptions options, ActionListener<PutFilterResponse> listener)Creates a new Machine Learning Filter asynchronously and notifies listener on completionPutJobResponseputJob(PutJobRequest request, RequestOptions options)Creates a new Machine Learning JobCancellableputJobAsync(PutJobRequest request, RequestOptions options, ActionListener<PutJobResponse> listener)Creates a new Machine Learning Job asynchronously and notifies listener on completionPutTrainedModelResponseputTrainedModel(PutTrainedModelRequest request, RequestOptions options)Put trained model configCancellableputTrainedModelAsync(PutTrainedModelRequest request, RequestOptions options, ActionListener<PutTrainedModelResponse> listener)Put trained model config asynchronously and notifies listener upon completionRevertModelSnapshotResponserevertModelSnapshot(RevertModelSnapshotRequest request, RequestOptions options)Reverts to a particular Machine Learning Model SnapshotCancellablerevertModelSnapshotAsync(RevertModelSnapshotRequest request, RequestOptions options, ActionListener<RevertModelSnapshotResponse> listener)Reverts to a particular Machine Learning Model Snapshot asynchronously and notifies the listener on completionAcknowledgedResponsesetUpgradeMode(SetUpgradeModeRequest request, RequestOptions options)Sets the ML cluster setting upgrade_modeCancellablesetUpgradeModeAsync(SetUpgradeModeRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Sets the ML cluster setting upgrade_mode asynchronouslyStartDatafeedResponsestartDatafeed(StartDatafeedRequest request, RequestOptions options)Starts the given Machine Learning DatafeedCancellablestartDatafeedAsync(StartDatafeedRequest request, RequestOptions options, ActionListener<StartDatafeedResponse> listener)Starts the given Machine Learning Datafeed asynchronously and notifies the listener on completionAcknowledgedResponsestartDataFrameAnalytics(StartDataFrameAnalyticsRequest request, RequestOptions options)Starts Data Frame AnalyticsCancellablestartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Starts Data Frame Analytics asynchronously and notifies listener upon completionStopDatafeedResponsestopDatafeed(StopDatafeedRequest request, RequestOptions options)Stops the given Machine Learning DatafeedCancellablestopDatafeedAsync(StopDatafeedRequest request, RequestOptions options, ActionListener<StopDatafeedResponse> listener)Stops the given Machine Learning Datafeed asynchronously and notifies the listener on completionStopDataFrameAnalyticsResponsestopDataFrameAnalytics(StopDataFrameAnalyticsRequest request, RequestOptions options)Stops Data Frame AnalyticsCancellablestopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<StopDataFrameAnalyticsResponse> listener)Stops Data Frame Analytics asynchronously and notifies listener upon completionPutDatafeedResponseupdateDatafeed(UpdateDatafeedRequest request, RequestOptions options)Updates a Machine Learning DatafeedCancellableupdateDatafeedAsync(UpdateDatafeedRequest request, RequestOptions options, ActionListener<PutDatafeedResponse> listener)Updates a Machine Learning Datafeed asynchronously and notifies listener on completionPutFilterResponseupdateFilter(UpdateFilterRequest request, RequestOptions options)Updates a Machine Learning FilterCancellableupdateFilterAsync(UpdateFilterRequest request, RequestOptions options, ActionListener<PutFilterResponse> listener)Updates a Machine Learning Filter asynchronously and notifies listener on completionPutJobResponseupdateJob(UpdateJobRequest request, RequestOptions options)Updates a Machine LearningJobCancellableupdateJobAsync(UpdateJobRequest request, RequestOptions options, ActionListener<PutJobResponse> listener)Updates a Machine LearningJobasynchronouslyUpdateModelSnapshotResponseupdateModelSnapshot(UpdateModelSnapshotRequest request, RequestOptions options)Updates a snapshot for a Machine Learning Job.CancellableupdateModelSnapshotAsync(UpdateModelSnapshotRequest request, RequestOptions options, ActionListener<UpdateModelSnapshotResponse> listener)Updates a snapshot for a Machine Learning Job, notifies listener once the requested snapshots are retrieved.
-
Method Details
-
putJob
public PutJobResponse putJob(PutJobRequest request, RequestOptions options) throws java.io.IOExceptionCreates a new Machine Learning JobFor additional info see ML PUT job documentation
- Parameters:
request- The PutJobRequest containing theJobsettingsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- PutJobResponse with enclosed
Jobobject - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
putJobAsync
public Cancellable putJobAsync(PutJobRequest request, RequestOptions options, ActionListener<PutJobResponse> listener)Creates a new Machine Learning Job asynchronously and notifies listener on completionFor additional info see ML PUT job documentation
- Parameters:
request- The request containing theJobsettingsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getJob
public GetJobResponse getJob(GetJobRequest request, RequestOptions options) throws java.io.IOExceptionGets one or more Machine Learning job configuration info.For additional info see ML GET job documentation
- Parameters:
request-GetJobRequestRequest containing a list of jobId(s) and additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetJobResponseresponse object containing theJobobjects and the number of jobs found- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getJobAsync
public Cancellable getJobAsync(GetJobRequest request, RequestOptions options, ActionListener<GetJobResponse> listener)Gets one or more Machine Learning job configuration info, asynchronously.For additional info see ML GET job documentation
- Parameters:
request-GetJobRequestRequest containing a list of jobId(s) and additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified withGetJobResponseupon request completion- Returns:
- cancellable that may be used to cancel the request
-
getJobStats
public GetJobStatsResponse getJobStats(GetJobStatsRequest request, RequestOptions options) throws java.io.IOExceptionGets usage statistics for one or more Machine Learning jobsFor additional info see Get job stats docs
- Parameters:
request-GetJobStatsRequestRequest containing a list of jobId(s) and additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetJobStatsResponseresponse object containing theJobStatsobjects and the number of jobs found- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getJobStatsAsync
public Cancellable getJobStatsAsync(GetJobStatsRequest request, RequestOptions options, ActionListener<GetJobStatsResponse> listener)Gets usage statistics for one or more Machine Learning jobs, asynchronously.For additional info see Get job stats docs
- Parameters:
request-GetJobStatsRequestRequest containing a list of jobId(s) and additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified withGetJobStatsResponseupon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteExpiredData
public DeleteExpiredDataResponse deleteExpiredData(DeleteExpiredDataRequest request, RequestOptions options) throws java.io.IOExceptionDeletes expired data from Machine Learning JobsFor additional info see ML Delete Expired Data documentation
- Parameters:
request- The request to delete expired ML dataoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The action response which contains the acknowledgement or the task id depending on whether the action was set to wait for completion
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteExpiredDataAsync
public Cancellable deleteExpiredDataAsync(DeleteExpiredDataRequest request, RequestOptions options, ActionListener<DeleteExpiredDataResponse> listener)Deletes expired data from Machine Learning Jobs asynchronously and notifies the listener on completionFor additional info see ML Delete Expired Data documentation
- Parameters:
request- The request to delete expired ML dataoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteJob
public DeleteJobResponse deleteJob(DeleteJobRequest request, RequestOptions options) throws java.io.IOExceptionDeletes the given Machine Learning JobFor additional info see ML Delete job documentation
- Parameters:
request- The request to delete the joboptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The action response which contains the acknowledgement or the task id depending on whether the action was set to wait for completion
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteJobAsync
public Cancellable deleteJobAsync(DeleteJobRequest request, RequestOptions options, ActionListener<DeleteJobResponse> listener)Deletes the given Machine Learning Job asynchronously and notifies the listener on completionFor additional info see ML Delete Job documentation
- Parameters:
request- The request to delete the joboptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
openJob
public OpenJobResponse openJob(OpenJobRequest request, RequestOptions options) throws java.io.IOExceptionOpens a Machine Learning Job. 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.For additional info see ML Open Job documentation
- Parameters:
request- Request containing job_id and additional optional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- response containing if the job was successfully opened or not.
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
openJobAsync
public Cancellable openJobAsync(OpenJobRequest request, RequestOptions options, ActionListener<OpenJobResponse> listener)Opens a Machine Learning Job asynchronously, notifies listener on completion. 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.For additional info see ML Open Job documentation
- Parameters:
request- Request containing job_id and additional optional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
closeJob
public CloseJobResponse closeJob(CloseJobRequest request, RequestOptions options) throws java.io.IOExceptionCloses one or more Machine Learning Jobs. A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.For additional info see ML Close Job documentation
- Parameters:
request- Request containing job_ids and additional options. SeeCloseJobRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- response containing if the job was successfully closed or not.
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
closeJobAsync
public Cancellable closeJobAsync(CloseJobRequest request, RequestOptions options, ActionListener<CloseJobResponse> listener)Closes one or more Machine Learning Jobs asynchronously, notifies listener on completion A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.For additional info see ML Close Job documentation
- Parameters:
request- Request containing job_ids and additional options. SeeCloseJobRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
flushJob
public FlushJobResponse flushJob(FlushJobRequest request, RequestOptions options) throws java.io.IOExceptionFlushes internally buffered data for the given Machine Learning Job ensuring all data sent to the has been processed. This may cause new results to be calculated depending on the contents of the buffer Both flush and close operations are similar, however the flush is more efficient if you are expecting to send more data for analysis. When flushing, the job remains open and is available to continue analyzing data. A close operation additionally prunes and persists the model state to disk and the job must be opened again before analyzing further data.For additional info see Flush ML job documentation
- Parameters:
request- TheFlushJobRequestobject enclosing the `jobId` and additional request optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
flushJobAsync
public Cancellable flushJobAsync(FlushJobRequest request, RequestOptions options, ActionListener<FlushJobResponse> listener)Flushes internally buffered data for the given Machine Learning Job asynchronously ensuring all data sent to the has been processed. This may cause new results to be calculated depending on the contents of the buffer Both flush and close operations are similar, however the flush is more efficient if you are expecting to send more data for analysis. When flushing, the job remains open and is available to continue analyzing data. A close operation additionally prunes and persists the model state to disk and the job must be opened again before analyzing further data.For additional info see Flush ML job documentation
- Parameters:
request- TheFlushJobRequestobject enclosing the `jobId` and additional request optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
forecastJob
public ForecastJobResponse forecastJob(ForecastJobRequest request, RequestOptions options) throws java.io.IOExceptionCreates a forecast of an existing, opened Machine Learning Job This predicts the future behavior of a time series by using its historical behavior.For additional info see Forecast ML Job Documentation
- Parameters:
request- ForecastJobRequest with forecasting optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- response containing forecast acknowledgement and new forecast's ID
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
forecastJobAsync
public Cancellable forecastJobAsync(ForecastJobRequest request, RequestOptions options, ActionListener<ForecastJobResponse> listener)Creates a forecast of an existing, opened Machine Learning Job asynchronously This predicts the future behavior of a time series by using its historical behavior.For additional info see Forecast ML Job Documentation
- Parameters:
request- ForecastJobRequest with forecasting optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteForecast
public AcknowledgedResponse deleteForecast(DeleteForecastRequest request, RequestOptions options) throws java.io.IOExceptionDeletes Machine Learning Job ForecastsFor additional info see Delete Job Forecast Documentation
- Parameters:
request- theDeleteForecastRequestobject enclosing the desired jobId, forecastIDs, and other optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- a AcknowledgedResponse object indicating request success
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteForecastAsync
public Cancellable deleteForecastAsync(DeleteForecastRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes Machine Learning Job Forecasts asynchronouslyFor additional info see Delete Job Forecast Documentation
- Parameters:
request- theDeleteForecastRequestobject enclosing the desired jobId, forecastIDs, and other optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteModelSnapshot
public AcknowledgedResponse deleteModelSnapshot(DeleteModelSnapshotRequest request, RequestOptions options) throws java.io.IOExceptionDeletes Machine Learning Model SnapshotsFor additional info see ML Delete Model Snapshot documentation
- Parameters:
request- The request to delete the model snapshotoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteModelSnapshotAsync
public Cancellable deleteModelSnapshotAsync(DeleteModelSnapshotRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes Machine Learning Model Snapshots asynchronously and notifies the listener on completionFor additional info see ML Delete Model Snapshot documentation
- Parameters:
request- The request to delete the model snapshotoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
revertModelSnapshot
public RevertModelSnapshotResponse revertModelSnapshot(RevertModelSnapshotRequest request, RequestOptions options) throws java.io.IOExceptionReverts to a particular Machine Learning Model SnapshotFor additional info see ML Revert Model Snapshot documentation
- Parameters:
request- The request to revert to a previous model snapshotoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
revertModelSnapshotAsync
public Cancellable revertModelSnapshotAsync(RevertModelSnapshotRequest request, RequestOptions options, ActionListener<RevertModelSnapshotResponse> listener)Reverts to a particular Machine Learning Model Snapshot asynchronously and notifies the listener on completionFor additional info see ML Revert Model Snapshot documentation
- Parameters:
request- The request to revert to a previous model snapshotoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putDatafeed
public PutDatafeedResponse putDatafeed(PutDatafeedRequest request, RequestOptions options) throws java.io.IOExceptionCreates a new Machine Learning DatafeedFor additional info see ML PUT datafeed documentation
- Parameters:
request- The PutDatafeedRequest containing theDatafeedConfigsettingsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- PutDatafeedResponse with enclosed
DatafeedConfigobject - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
putDatafeedAsync
public Cancellable putDatafeedAsync(PutDatafeedRequest request, RequestOptions options, ActionListener<PutDatafeedResponse> listener)Creates a new Machine Learning Datafeed asynchronously and notifies listener on completionFor additional info see ML PUT datafeed documentation
- Parameters:
request- The request containing theDatafeedConfigsettingsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
updateDatafeed
public PutDatafeedResponse updateDatafeed(UpdateDatafeedRequest request, RequestOptions options) throws java.io.IOExceptionUpdates a Machine Learning DatafeedFor additional info see ML Update datafeed documentation
- Parameters:
request- The UpdateDatafeedRequest containing theDatafeedUpdatesettingsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- PutDatafeedResponse with enclosed, updated
DatafeedConfigobject - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
updateDatafeedAsync
public Cancellable updateDatafeedAsync(UpdateDatafeedRequest request, RequestOptions options, ActionListener<PutDatafeedResponse> listener)Updates a Machine Learning Datafeed asynchronously and notifies listener on completionFor additional info see ML Update datafeed documentation
- Parameters:
request- The request containing theDatafeedUpdatesettingsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getDatafeed
public GetDatafeedResponse getDatafeed(GetDatafeedRequest request, RequestOptions options) throws java.io.IOExceptionGets one or more Machine Learning datafeed configuration info.For additional info see ML GET datafeed documentation
- Parameters:
request-GetDatafeedRequestRequest containing a list of datafeedId(s) and additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetDatafeedResponseresponse object containing theDatafeedConfigobjects and the number of jobs found- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getDatafeedAsync
public Cancellable getDatafeedAsync(GetDatafeedRequest request, RequestOptions options, ActionListener<GetDatafeedResponse> listener)Gets one or more Machine Learning datafeed configuration info, asynchronously.For additional info see ML GET datafeed documentation
- Parameters:
request-GetDatafeedRequestRequest containing a list of datafeedId(s) and additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified withGetDatafeedResponseupon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteDatafeed
public AcknowledgedResponse deleteDatafeed(DeleteDatafeedRequest request, RequestOptions options) throws java.io.IOExceptionDeletes the given Machine Learning DatafeedFor additional info see ML Delete Datafeed documentation
- Parameters:
request- The request to delete the datafeedoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteDatafeedAsync
public Cancellable deleteDatafeedAsync(DeleteDatafeedRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning Datafeed asynchronously and notifies the listener on completionFor additional info see ML Delete Datafeed documentation
- Parameters:
request- The request to delete the datafeedoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
startDatafeed
public StartDatafeedResponse startDatafeed(StartDatafeedRequest request, RequestOptions options) throws java.io.IOExceptionStarts the given Machine Learning DatafeedFor additional info see ML Start Datafeed documentation
- Parameters:
request- The request to start the datafeedoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
startDatafeedAsync
public Cancellable startDatafeedAsync(StartDatafeedRequest request, RequestOptions options, ActionListener<StartDatafeedResponse> listener)Starts the given Machine Learning Datafeed asynchronously and notifies the listener on completionFor additional info see ML Start Datafeed documentation
- Parameters:
request- The request to start the datafeedoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
stopDatafeed
public StopDatafeedResponse stopDatafeed(StopDatafeedRequest request, RequestOptions options) throws java.io.IOExceptionStops the given Machine Learning DatafeedFor additional info see ML Stop Datafeed documentation
- Parameters:
request- The request to stop the datafeedoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
stopDatafeedAsync
public Cancellable stopDatafeedAsync(StopDatafeedRequest request, RequestOptions options, ActionListener<StopDatafeedResponse> listener)Stops the given Machine Learning Datafeed asynchronously and notifies the listener on completionFor additional info see ML Stop Datafeed documentation
- Parameters:
request- The request to stop the datafeedoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getDatafeedStats
public GetDatafeedStatsResponse getDatafeedStats(GetDatafeedStatsRequest request, RequestOptions options) throws java.io.IOExceptionGets statistics for one or more Machine Learning datafeedsFor additional info see Get datafeed stats docs
- Parameters:
request-GetDatafeedStatsRequestRequest containing a list of datafeedId(s) and additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetDatafeedStatsResponseresponse object containing theDatafeedStatsobjects and the number of datafeeds found- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
previewDatafeed
public PreviewDatafeedResponse previewDatafeed(PreviewDatafeedRequest request, RequestOptions options) throws java.io.IOExceptionPreviews the given Machine Learning DatafeedFor additional info see ML Preview Datafeed documentation
- Parameters:
request- The request to preview the datafeedoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
PreviewDatafeedResponseobject containing aBytesReferenceof the data in JSON format- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getDatafeedStatsAsync
public Cancellable getDatafeedStatsAsync(GetDatafeedStatsRequest request, RequestOptions options, ActionListener<GetDatafeedStatsResponse> listener)Gets statistics for one or more Machine Learning datafeeds, asynchronously.For additional info see Get datafeed stats docs
- Parameters:
request-GetDatafeedStatsRequestRequest containing a list of datafeedId(s) and additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified withGetDatafeedStatsResponseupon request completion- Returns:
- cancellable that may be used to cancel the request
-
previewDatafeedAsync
public Cancellable previewDatafeedAsync(PreviewDatafeedRequest request, RequestOptions options, ActionListener<PreviewDatafeedResponse> listener)Previews the given Machine Learning Datafeed asynchronously and notifies the listener on completionFor additional info see ML Preview Datafeed documentation
- Parameters:
request- The request to preview the datafeedoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
updateJob
public PutJobResponse updateJob(UpdateJobRequest request, RequestOptions options) throws java.io.IOExceptionUpdates a Machine LearningJobFor additional info see ML Update Job Documentation
- Parameters:
request- theUpdateJobRequestobject enclosing the desired updatesoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- a PutJobResponse object containing the updated job object
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
updateJobAsync
public Cancellable updateJobAsync(UpdateJobRequest request, RequestOptions options, ActionListener<PutJobResponse> listener)Updates a Machine LearningJobasynchronouslyFor additional info see ML Update Job Documentation
- Parameters:
request- theUpdateJobRequestobject enclosing the desired updatesoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getBuckets
public GetBucketsResponse getBuckets(GetBucketsRequest request, RequestOptions options) throws java.io.IOExceptionGets the buckets for a Machine Learning Job.For additional info see ML GET buckets documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
java.io.IOException
-
getBucketsAsync
public Cancellable getBucketsAsync(GetBucketsRequest request, RequestOptions options, ActionListener<GetBucketsResponse> listener)Gets the buckets for a Machine Learning Job, notifies listener once the requested buckets are retrieved.For additional info see ML GET buckets documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getCategories
public GetCategoriesResponse getCategories(GetCategoriesRequest request, RequestOptions options) throws java.io.IOExceptionGets the categories for a Machine Learning Job.For additional info see ML GET categories documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getCategoriesAsync
public Cancellable getCategoriesAsync(GetCategoriesRequest request, RequestOptions options, ActionListener<GetCategoriesResponse> listener)Gets the categories for a Machine Learning Job, notifies listener once the requested buckets are retrieved.For additional info see ML GET categories documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getModelSnapshots
public GetModelSnapshotsResponse getModelSnapshots(GetModelSnapshotsRequest request, RequestOptions options) throws java.io.IOExceptionGets the snapshots for a Machine Learning Job.For additional info see ML GET model snapshots documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getModelSnapshotsAsync
public Cancellable getModelSnapshotsAsync(GetModelSnapshotsRequest request, RequestOptions options, ActionListener<GetModelSnapshotsResponse> listener)Gets the snapshots for a Machine Learning Job, notifies listener once the requested snapshots are retrieved.For additional info see ML GET model snapshots documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
updateModelSnapshot
public UpdateModelSnapshotResponse updateModelSnapshot(UpdateModelSnapshotRequest request, RequestOptions options) throws java.io.IOExceptionUpdates a snapshot for a Machine Learning Job.For additional info see ML UPDATE model snapshots documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
updateModelSnapshotAsync
public Cancellable updateModelSnapshotAsync(UpdateModelSnapshotRequest request, RequestOptions options, ActionListener<UpdateModelSnapshotResponse> listener)Updates a snapshot for a Machine Learning Job, notifies listener once the requested snapshots are retrieved.For additional info see ML UPDATE model snapshots documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getOverallBuckets
public GetOverallBucketsResponse getOverallBuckets(GetOverallBucketsRequest request, RequestOptions options) throws java.io.IOExceptionGets overall buckets for a set of Machine Learning Jobs.For additional info see ML GET overall buckets documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
java.io.IOException
-
getOverallBucketsAsync
public Cancellable getOverallBucketsAsync(GetOverallBucketsRequest request, RequestOptions options, ActionListener<GetOverallBucketsResponse> listener)Gets overall buckets for a set of Machine Learning Jobs, notifies listener once the requested buckets are retrieved.For additional info see ML GET overall buckets documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getRecords
public GetRecordsResponse getRecords(GetRecordsRequest request, RequestOptions options) throws java.io.IOExceptionGets the records for a Machine Learning Job.For additional info see ML GET records documentation
- Parameters:
request- the requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
java.io.IOException
-
getRecordsAsync
public Cancellable getRecordsAsync(GetRecordsRequest request, RequestOptions options, ActionListener<GetRecordsResponse> listener)Gets the records for a Machine Learning Job, notifies listener once the requested records are retrieved.For additional info see ML GET records documentation
- Parameters:
request- the requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
postData
public PostDataResponse postData(PostDataRequest request, RequestOptions options) throws java.io.IOExceptionSends data to an anomaly detection job for analysis.NOTE: The job must have a state of open to receive and process the data.
For additional info see ML POST Data documentation
- Parameters:
request- PostDataRequest containing the data to post and some additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- response containing operational progress about the job
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
postDataAsync
public Cancellable postDataAsync(PostDataRequest request, RequestOptions options, ActionListener<PostDataResponse> listener)Sends data to an anomaly detection job for analysis, asynchronouslyNOTE: The job must have a state of open to receive and process the data.
For additional info see ML POST Data documentation
- Parameters:
request- PostDataRequest containing the data to post and some additional optionsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getCalendars
public GetCalendarsResponse getCalendars(GetCalendarsRequest request, RequestOptions options) throws java.io.IOExceptionGets a single or multiple calendars.For additional info see ML GET calendars documentation
- Parameters:
request- The calendars requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetCalendarsResponseresponse object containing theCalendarobjects and the number of calendars found- Throws:
java.io.IOException
-
getCalendarsAsync
public Cancellable getCalendarsAsync(GetCalendarsRequest request, RequestOptions options, ActionListener<GetCalendarsResponse> listener)Gets a single or multiple calendars, notifies listener once the requested records are retrieved.For additional info see ML GET calendars documentation
- Parameters:
request- The calendars requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getInfluencers
public GetInfluencersResponse getInfluencers(GetInfluencersRequest request, RequestOptions options) throws java.io.IOExceptionGets the influencers for a Machine Learning Job.For additional info see ML GET influencers documentation
- Parameters:
request- the requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
java.io.IOException
-
getInfluencersAsync
public Cancellable getInfluencersAsync(GetInfluencersRequest request, RequestOptions options, ActionListener<GetInfluencersResponse> listener)Gets the influencers for a Machine Learning Job, notifies listener once the requested influencers are retrieved.For additional info * see ML GET influencers documentation
- Parameters:
request- the requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putCalendar
public PutCalendarResponse putCalendar(PutCalendarRequest request, RequestOptions options) throws java.io.IOExceptionCreate a new machine learning calendarFor additional info see ML create calendar documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The
PutCalendarResponsecontaining the calendar - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
putCalendarAsync
public Cancellable putCalendarAsync(PutCalendarRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Create a new machine learning calendar, notifies listener with the created calendarFor additional info see ML create calendar documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putCalendarJob
public PutCalendarResponse putCalendarJob(PutCalendarJobRequest request, RequestOptions options) throws java.io.IOExceptionAdds Machine Learning Job(s) to a calendarFor additional info see ML Put calendar job documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The
PutCalendarResponsecontaining the updated calendar - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
putCalendarJobAsync
public Cancellable putCalendarJobAsync(PutCalendarJobRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Adds Machine Learning Job(s) to a calendar, notifies listener when completedFor additional info see ML Put calendar job documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteCalendarJob
public PutCalendarResponse deleteCalendarJob(DeleteCalendarJobRequest request, RequestOptions options) throws java.io.IOExceptionRemoves Machine Learning Job(s) from a calendarFor additional info see ML Delete calendar job documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The
PutCalendarResponsecontaining the updated calendar - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteCalendarJobAsync
public Cancellable deleteCalendarJobAsync(DeleteCalendarJobRequest request, RequestOptions options, ActionListener<PutCalendarResponse> listener)Removes Machine Learning Job(s) from a calendar, notifies listener when completedFor additional info see ML Delete calendar job documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteCalendar
public AcknowledgedResponse deleteCalendar(DeleteCalendarRequest request, RequestOptions options) throws java.io.IOExceptionDeletes the given Machine Learning CalendarFor additional info see ML Delete calendar documentation
- Parameters:
request- The request to delete the calendaroptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteCalendarAsync
public Cancellable deleteCalendarAsync(DeleteCalendarRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning Job asynchronously and notifies the listener on completionFor additional info see ML Delete calendar documentation
- Parameters:
request- The request to delete the calendaroptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getCalendarEvents
public GetCalendarEventsResponse getCalendarEvents(GetCalendarEventsRequest request, RequestOptions options) throws java.io.IOExceptionGets the events for a machine learning calendarFor additional info see GET Calendar Events API
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The
PostCalendarEventRequestcontaining the scheduled events - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getCalendarEventsAsync
public Cancellable getCalendarEventsAsync(GetCalendarEventsRequest request, RequestOptions options, ActionListener<GetCalendarEventsResponse> listener)Gets the events for a a machine learning calendar asynchronously, notifies the listener on completionFor additional info see GET Calendar Events API
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
postCalendarEvent
public PostCalendarEventResponse postCalendarEvent(PostCalendarEventRequest request, RequestOptions options) throws java.io.IOExceptionCreates new events for a a machine learning calendarFor additional info see Add Events to Calendar API
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The
PostCalendarEventRequestcontaining the scheduled events - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
postCalendarEventAsync
public Cancellable postCalendarEventAsync(PostCalendarEventRequest request, RequestOptions options, ActionListener<PostCalendarEventResponse> listener)Creates new events for a a machine learning calendar asynchronously, notifies the listener on completionFor additional info see Add Events to Calendar API
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteCalendarEvent
public AcknowledgedResponse deleteCalendarEvent(DeleteCalendarEventRequest request, RequestOptions options) throws java.io.IOExceptionRemoves a Scheduled Event from a calendarFor additional info see ML Delete calendar event documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The
PutCalendarResponsecontaining the updated calendar - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteCalendarEventAsync
public Cancellable deleteCalendarEventAsync(DeleteCalendarEventRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Removes a Scheduled Event from a calendar, notifies listener when completedFor additional info see ML Delete calendar event documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putFilter
public PutFilterResponse putFilter(PutFilterRequest request, RequestOptions options) throws java.io.IOExceptionCreates a new Machine Learning FilterFor additional info see ML PUT Filter documentation
- Parameters:
request- The PutFilterRequest containing theMlFiltersettingsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- PutFilterResponse with enclosed
MlFilterobject - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
putFilterAsync
public Cancellable putFilterAsync(PutFilterRequest request, RequestOptions options, ActionListener<PutFilterResponse> listener)Creates a new Machine Learning Filter asynchronously and notifies listener on completionFor additional info see ML PUT Filter documentation
- Parameters:
request- The request containing theMlFiltersettingsoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getFilter
public GetFiltersResponse getFilter(GetFiltersRequest request, RequestOptions options) throws java.io.IOExceptionGets Machine Learning FiltersFor additional info see ML GET Filter documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- GetFilterResponse with enclosed
MlFilterobjects - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getFilterAsync
public Cancellable getFilterAsync(GetFiltersRequest request, RequestOptions options, ActionListener<GetFiltersResponse> listener)Gets Machine Learning Filters asynchronously and notifies listener on completionFor additional info see ML GET Filter documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
updateFilter
public PutFilterResponse updateFilter(UpdateFilterRequest request, RequestOptions options) throws java.io.IOExceptionUpdates a Machine Learning FilterFor additional info see ML Update Filter documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- PutFilterResponse with the updated
MlFilterobject - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
updateFilterAsync
public Cancellable updateFilterAsync(UpdateFilterRequest request, RequestOptions options, ActionListener<PutFilterResponse> listener)Updates a Machine Learning Filter asynchronously and notifies listener on completionFor additional info see ML Update Filter documentation
- Parameters:
request- The requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteFilter
public AcknowledgedResponse deleteFilter(DeleteFilterRequest request, RequestOptions options) throws java.io.IOExceptionDeletes the given Machine Learning filterFor additional info see ML Delete Filter documentation
- Parameters:
request- The request to delete the filteroptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteFilterAsync
public Cancellable deleteFilterAsync(DeleteFilterRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning filter asynchronously and notifies the listener on completionFor additional info see ML Delete Filter documentation
- Parameters:
request- The request to delete the filteroptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getMlInfo
public MlInfoResponse getMlInfo(MlInfoRequest request, RequestOptions options) throws java.io.IOExceptionGets Machine Learning information about default values and limits.For additional info see Machine Learning info
- Parameters:
request- The request of Machine Learning infooptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- response info about default values and limits
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
getMlInfoAsync
public Cancellable getMlInfoAsync(MlInfoRequest request, RequestOptions options, ActionListener<MlInfoResponse> listener)Gets Machine Learning information about default values and limits, asynchronously.For additional info see Machine Learning info
- Parameters:
request- The request of Machine Learning infooptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
findFileStructure
public FindFileStructureResponse findFileStructure(FindFileStructureRequest request, RequestOptions options) throws java.io.IOExceptionFinds the structure of a fileFor additional info see ML Find File Structure documentation
- Parameters:
request- The find file structure requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response containing details of the file structure
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
findFileStructureAsync
public Cancellable findFileStructureAsync(FindFileStructureRequest request, RequestOptions options, ActionListener<FindFileStructureResponse> listener)Finds the structure of a file asynchronously and notifies the listener on completionFor additional info see ML Find File Structure documentation
- Parameters:
request- The find file structure requestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
setUpgradeMode
public AcknowledgedResponse setUpgradeMode(SetUpgradeModeRequest request, RequestOptions options) throws java.io.IOExceptionSets the ML cluster setting upgrade_modeFor additional info see Set Upgrade Mode
- Parameters:
request- The request to set upgrade modeoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- response
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
setUpgradeModeAsync
public Cancellable setUpgradeModeAsync(SetUpgradeModeRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Sets the ML cluster setting upgrade_mode asynchronouslyFor additional info see Set Upgrade Mode
- Parameters:
request- The request of Machine Learning infooptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
estimateModelMemory
public EstimateModelMemoryResponse estimateModelMemory(EstimateModelMemoryRequest request, RequestOptions options) throws java.io.IOExceptionEstimate the model memory an analysis config is likely to need given supplied field cardinalitiesFor additional info see Estimate Model Memory
- Parameters:
request- TheEstimateModelMemoryRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
EstimateModelMemoryResponseresponse object- Throws:
java.io.IOException
-
estimateModelMemoryAsync
public Cancellable estimateModelMemoryAsync(EstimateModelMemoryRequest request, RequestOptions options, ActionListener<EstimateModelMemoryResponse> listener)Estimate the model memory an analysis config is likely to need given supplied field cardinalities and notifies listener upon completionFor additional info see Estimate Model Memory
- Parameters:
request- TheEstimateModelMemoryRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putDataFrameAnalytics
public PutDataFrameAnalyticsResponse putDataFrameAnalytics(PutDataFrameAnalyticsRequest request, RequestOptions options) throws java.io.IOExceptionCreates a new Data Frame Analytics configFor additional info see PUT Data Frame Analytics documentation
- Parameters:
request- ThePutDataFrameAnalyticsRequestcontaining theDataFrameAnalyticsConfigoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- The
PutDataFrameAnalyticsResponsecontaining the createdDataFrameAnalyticsConfig - Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
putDataFrameAnalyticsAsync
public Cancellable putDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<PutDataFrameAnalyticsResponse> listener)Creates a new Data Frame Analytics config asynchronously and notifies listener upon completionFor additional info see PUT Data Frame Analytics documentation
- Parameters:
request- ThePutDataFrameAnalyticsRequestcontaining theDataFrameAnalyticsConfigoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getDataFrameAnalytics
public GetDataFrameAnalyticsResponse getDataFrameAnalytics(GetDataFrameAnalyticsRequest request, RequestOptions options) throws java.io.IOExceptionGets a single or multiple Data Frame Analytics configsFor additional info see GET Data Frame Analytics documentation
- Parameters:
request- TheGetDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetDataFrameAnalyticsResponseresponse object containing theDataFrameAnalyticsConfigobjects- Throws:
java.io.IOException
-
getDataFrameAnalyticsAsync
public Cancellable getDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<GetDataFrameAnalyticsResponse> listener)Gets a single or multiple Data Frame Analytics configs asynchronously and notifies listener upon completionFor additional info see GET Data Frame Analytics documentation
- Parameters:
request- TheGetDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getDataFrameAnalyticsStats
public GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequest request, RequestOptions options) throws java.io.IOExceptionGets the running statistics of a Data Frame AnalyticsFor additional info see GET Data Frame Analytics Stats documentation
- Parameters:
request- TheGetDataFrameAnalyticsStatsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetDataFrameAnalyticsStatsResponseresponse object- Throws:
java.io.IOException
-
getDataFrameAnalyticsStatsAsync
public Cancellable getDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequest request, RequestOptions options, ActionListener<GetDataFrameAnalyticsStatsResponse> listener)Gets the running statistics of a Data Frame Analytics asynchronously and notifies listener upon completionFor additional info see GET Data Frame Analytics Stats documentation
- Parameters:
request- TheGetDataFrameAnalyticsStatsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
startDataFrameAnalytics
public AcknowledgedResponse startDataFrameAnalytics(StartDataFrameAnalyticsRequest request, RequestOptions options) throws java.io.IOExceptionStarts Data Frame AnalyticsFor additional info see Start Data Frame Analytics documentation
- Parameters:
request- TheStartDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
startDataFrameAnalyticsAsync
public Cancellable startDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Starts Data Frame Analytics asynchronously and notifies listener upon completionFor additional info see Start Data Frame Analytics documentation
- Parameters:
request- TheStartDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
stopDataFrameAnalytics
public StopDataFrameAnalyticsResponse stopDataFrameAnalytics(StopDataFrameAnalyticsRequest request, RequestOptions options) throws java.io.IOExceptionStops Data Frame AnalyticsFor additional info see Stop Data Frame Analytics documentation
- Parameters:
request- TheStopDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
StopDataFrameAnalyticsResponse- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
stopDataFrameAnalyticsAsync
public Cancellable stopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<StopDataFrameAnalyticsResponse> listener)Stops Data Frame Analytics asynchronously and notifies listener upon completionFor additional info see Stop Data Frame Analytics documentation
- Parameters:
request- TheStopDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteDataFrameAnalytics
public AcknowledgedResponse deleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request, RequestOptions options) throws java.io.IOExceptionDeletes the given Data Frame Analytics configFor additional info see DELETE Data Frame Analytics documentation
- Parameters:
request- TheDeleteDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteDataFrameAnalyticsAsync
public Cancellable deleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Data Frame Analytics config asynchronously and notifies listener upon completionFor additional info see DELETE Data Frame Analytics documentation
- Parameters:
request- TheDeleteDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
evaluateDataFrame
public EvaluateDataFrameResponse evaluateDataFrame(EvaluateDataFrameRequest request, RequestOptions options) throws java.io.IOExceptionEvaluates the given Data FrameFor additional info see Evaluate Data Frame documentation
- Parameters:
request- TheEvaluateDataFrameRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
EvaluateDataFrameResponseresponse object- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
evaluateDataFrameAsync
public Cancellable evaluateDataFrameAsync(EvaluateDataFrameRequest request, RequestOptions options, ActionListener<EvaluateDataFrameResponse> listener)Evaluates the given Data Frame asynchronously and notifies listener upon completionFor additional info see Evaluate Data Frame documentation
- Parameters:
request- TheEvaluateDataFrameRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
explainDataFrameAnalytics
public ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics(ExplainDataFrameAnalyticsRequest request, RequestOptions options) throws java.io.IOExceptionExplains the given Data Frame AnalyticsFor additional info see Explain Data Frame Analytics documentation
- Parameters:
request- TheExplainDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
ExplainDataFrameAnalyticsResponseresponse object- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
explainDataFrameAnalyticsAsync
public Cancellable explainDataFrameAnalyticsAsync(ExplainDataFrameAnalyticsRequest request, RequestOptions options, ActionListener<ExplainDataFrameAnalyticsResponse> listener)Explains the given Data Frame Analytics asynchronously and notifies listener upon completionFor additional info see Explain Data Frame Analytics documentation
- Parameters:
request- TheExplainDataFrameAnalyticsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getTrainedModels
public GetTrainedModelsResponse getTrainedModels(GetTrainedModelsRequest request, RequestOptions options) throws java.io.IOExceptionGets trained model configsFor additional info see GET Trained Model Configs documentation
- Parameters:
request- TheGetTrainedModelsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetTrainedModelsResponseresponse object- Throws:
java.io.IOException
-
getTrainedModelsAsync
public Cancellable getTrainedModelsAsync(GetTrainedModelsRequest request, RequestOptions options, ActionListener<GetTrainedModelsResponse> listener)Gets trained model configs asynchronously and notifies listener upon completionFor additional info see GET Trained Model Configs documentation
- Parameters:
request- TheGetTrainedModelsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putTrainedModel
public PutTrainedModelResponse putTrainedModel(PutTrainedModelRequest request, RequestOptions options) throws java.io.IOExceptionPut trained model configFor additional info see PUT Trained Model Config documentation
- Parameters:
request- ThePutTrainedModelRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
PutTrainedModelResponseresponse object- Throws:
java.io.IOException
-
putTrainedModelAsync
public Cancellable putTrainedModelAsync(PutTrainedModelRequest request, RequestOptions options, ActionListener<PutTrainedModelResponse> listener)Put trained model config asynchronously and notifies listener upon completionFor additional info see PUT Trained Model Config documentation
- Parameters:
request- ThePutTrainedModelRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getTrainedModelsStats
public GetTrainedModelsStatsResponse getTrainedModelsStats(GetTrainedModelsStatsRequest request, RequestOptions options) throws java.io.IOExceptionGets trained model statsFor additional info see GET Trained Model Stats documentation
- Parameters:
request- TheGetTrainedModelsStatsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
GetTrainedModelsStatsResponseresponse object- Throws:
java.io.IOException
-
getTrainedModelsStatsAsync
public Cancellable getTrainedModelsStatsAsync(GetTrainedModelsStatsRequest request, RequestOptions options, ActionListener<GetTrainedModelsStatsResponse> listener)Gets trained model stats asynchronously and notifies listener upon completionFor additional info see GET Trained Model Stats documentation
- Parameters:
request- TheGetTrainedModelsStatsRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteTrainedModel
public AcknowledgedResponse deleteTrainedModel(DeleteTrainedModelRequest request, RequestOptions options) throws java.io.IOExceptionDeletes the given Trained ModelFor additional info see DELETE Trained Model documentation
- Parameters:
request- TheDeleteTrainedModelRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- action acknowledgement
- Throws:
java.io.IOException- when there is a serialization issue sending the request or receiving the response
-
deleteTrainedModelAsync
public Cancellable deleteTrainedModelAsync(DeleteTrainedModelRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Trained Model asynchronously and notifies listener upon completionFor additional info see DELETE Trained Model documentation
- Parameters:
request- TheDeleteTrainedModelRequestoptions- Additional request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- Listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-