Class MachineLearningClient
- java.lang.Object
-
- org.elasticsearch.client.MachineLearningClient
-
public final class MachineLearningClient extends java.lang.ObjectMachine Learning API client wrapper for theRestHighLevelClientSee 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.voidcloseJobAsync(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 CalendarvoiddeleteCalendarAsync(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 calendarvoiddeleteCalendarEventAsync(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 calendarvoiddeleteCalendarJobAsync(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 DatafeedvoiddeleteDatafeedAsync(DeleteDatafeedRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes the given Machine Learning Datafeed asynchronously and notifies the listener on completionDeleteExpiredDataResponsedeleteExpiredData(DeleteExpiredDataRequest request, RequestOptions options)Deletes expired data from Machine Learning JobsvoiddeleteExpiredDataAsync(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 filtervoiddeleteFilterAsync(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 ForecastsvoiddeleteForecastAsync(DeleteForecastRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes Machine Learning Job Forecasts asynchronouslyDeleteJobResponsedeleteJob(DeleteJobRequest request, RequestOptions options)Deletes the given Machine Learning JobvoiddeleteJobAsync(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 SnapshotsvoiddeleteModelSnapshotAsync(DeleteModelSnapshotRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Deletes Machine Learning Model Snapshots asynchronously and notifies the listener on completionFindFileStructureResponsefindFileStructure(FindFileStructureRequest request, RequestOptions options)Finds the structure of a filevoidfindFileStructureAsync(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.voidflushJobAsync(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.voidforecastJobAsync(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.voidgetBucketsAsync(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 calendarvoidgetCalendarEventsAsync(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.voidgetCalendarsAsync(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.voidgetCategoriesAsync(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.voidgetDatafeedAsync(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 datafeedsvoidgetDatafeedStatsAsync(GetDatafeedStatsRequest request, RequestOptions options, ActionListener<GetDatafeedStatsResponse> listener)Gets statistics for one or more Machine Learning datafeeds, asynchronously.GetFiltersResponsegetFilter(GetFiltersRequest request, RequestOptions options)Gets Machine Learning FiltersvoidgetFilterAsync(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.voidgetInfluencersAsync(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.voidgetJobAsync(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 jobsvoidgetJobStatsAsync(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.voidgetMlInfoAsync(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.voidgetModelSnapshotsAsync(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.voidgetOverallBucketsAsync(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.voidgetRecordsAsync(GetRecordsRequest request, RequestOptions options, ActionListener<GetRecordsResponse> listener)Gets the records for a Machine Learning Job, notifies listener once the requested records are retrieved.OpenJobResponseopenJob(OpenJobRequest request, RequestOptions options)Opens a Machine Learning Job.voidopenJobAsync(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 calendarvoidpostCalendarEventAsync(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.voidpostDataAsync(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 DatafeedvoidpreviewDatafeedAsync(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 calendarvoidputCalendarAsync(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 calendarvoidputCalendarJobAsync(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 DatafeedvoidputDatafeedAsync(PutDatafeedRequest request, RequestOptions options, ActionListener<PutDatafeedResponse> listener)Creates a new Machine Learning Datafeed asynchronously and notifies listener on completionPutFilterResponseputFilter(PutFilterRequest request, RequestOptions options)Creates a new Machine Learning FiltervoidputFilterAsync(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 JobvoidputJobAsync(PutJobRequest request, RequestOptions options, ActionListener<PutJobResponse> listener)Creates a new Machine Learning Job asynchronously and notifies listener on completionRevertModelSnapshotResponserevertModelSnapshot(RevertModelSnapshotRequest request, RequestOptions options)Reverts to a particular Machine Learning Model SnapshotvoidrevertModelSnapshotAsync(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_modevoidsetUpgradeModeAsync(SetUpgradeModeRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Sets the ML cluster setting upgrade_mode asynchronouslyStartDatafeedResponsestartDatafeed(StartDatafeedRequest request, RequestOptions options)Starts the given Machine Learning DatafeedvoidstartDatafeedAsync(StartDatafeedRequest request, RequestOptions options, ActionListener<StartDatafeedResponse> listener)Starts the given Machine Learning Datafeed asynchronously and notifies the listener on completionStopDatafeedResponsestopDatafeed(StopDatafeedRequest request, RequestOptions options)Stops the given Machine Learning DatafeedvoidstopDatafeedAsync(StopDatafeedRequest request, RequestOptions options, ActionListener<StopDatafeedResponse> listener)Stops the given Machine Learning Datafeed asynchronously and notifies the listener on completionPutDatafeedResponseupdateDatafeed(UpdateDatafeedRequest request, RequestOptions options)Updates a Machine Learning DatafeedvoidupdateDatafeedAsync(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 FiltervoidupdateFilterAsync(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 LearningJobvoidupdateJobAsync(UpdateJobRequest request, RequestOptions options, ActionListener<PutJobResponse> listener)Updates a Machine LearningJobasynchronouslyUpdateModelSnapshotResponseupdateModelSnapshot(UpdateModelSnapshotRequest request, RequestOptions options)Updates a snapshot for a Machine Learning Job.voidupdateModelSnapshotAsync(UpdateModelSnapshotRequest request, RequestOptions options, ActionListener<UpdateModelSnapshotResponse> listener)Updates a snapshot for a Machine Learning Job, notifies listener once the requested snapshots are retrieved.
-
-
-
Method Detail
-
putJob
public PutJobResponse putJob(PutJobRequest request, RequestOptions options) throws java.io.IOException
Creates 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 void 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
-
getJob
public GetJobResponse getJob(GetJobRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
getJobStats
public GetJobStatsResponse getJobStats(GetJobStatsRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
deleteExpiredData
public DeleteExpiredDataResponse deleteExpiredData(DeleteExpiredDataRequest request, RequestOptions options) throws java.io.IOException
Deletes 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 void 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
-
deleteJob
public DeleteJobResponse deleteJob(DeleteJobRequest request, RequestOptions options) throws java.io.IOException
Deletes 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 void 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
-
openJob
public OpenJobResponse openJob(OpenJobRequest request, RequestOptions options) throws java.io.IOException
Opens 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 void 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
-
closeJob
public CloseJobResponse closeJob(CloseJobRequest request, RequestOptions options) throws java.io.IOException
Closes 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 void 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
-
flushJob
public FlushJobResponse flushJob(FlushJobRequest request, RequestOptions options) throws java.io.IOException
Flushes 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 void 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
-
forecastJob
public ForecastJobResponse forecastJob(ForecastJobRequest request, RequestOptions options) throws java.io.IOException
Creates 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 void 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
-
deleteForecast
public AcknowledgedResponse deleteForecast(DeleteForecastRequest request, RequestOptions options) throws java.io.IOException
Deletes 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 void 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
-
deleteModelSnapshot
public AcknowledgedResponse deleteModelSnapshot(DeleteModelSnapshotRequest request, RequestOptions options) throws java.io.IOException
Deletes 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 void 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
-
revertModelSnapshot
public RevertModelSnapshotResponse revertModelSnapshot(RevertModelSnapshotRequest request, RequestOptions options) throws java.io.IOException
Reverts 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 void 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
-
putDatafeed
public PutDatafeedResponse putDatafeed(PutDatafeedRequest request, RequestOptions options) throws java.io.IOException
Creates 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 void 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
-
updateDatafeed
public PutDatafeedResponse updateDatafeed(UpdateDatafeedRequest request, RequestOptions options) throws java.io.IOException
Updates 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 void 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
-
getDatafeed
public GetDatafeedResponse getDatafeed(GetDatafeedRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
deleteDatafeed
public AcknowledgedResponse deleteDatafeed(DeleteDatafeedRequest request, RequestOptions options) throws java.io.IOException
Deletes 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 void 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
-
startDatafeed
public StartDatafeedResponse startDatafeed(StartDatafeedRequest request, RequestOptions options) throws java.io.IOException
Starts 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 void 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
-
stopDatafeed
public StopDatafeedResponse stopDatafeed(StopDatafeedRequest request, RequestOptions options) throws java.io.IOException
Stops 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 void 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
-
getDatafeedStats
public GetDatafeedStatsResponse getDatafeedStats(GetDatafeedStatsRequest request, RequestOptions options) throws java.io.IOException
Gets 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.IOException
Previews 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 void 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
-
previewDatafeedAsync
public void 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
-
updateJob
public PutJobResponse updateJob(UpdateJobRequest request, RequestOptions options) throws java.io.IOException
Updates 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 void 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
-
getBuckets
public GetBucketsResponse getBuckets(GetBucketsRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
getCategories
public GetCategoriesResponse getCategories(GetCategoriesRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
getModelSnapshots
public GetModelSnapshotsResponse getModelSnapshots(GetModelSnapshotsRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
updateModelSnapshot
public UpdateModelSnapshotResponse updateModelSnapshot(UpdateModelSnapshotRequest request, RequestOptions options) throws java.io.IOException
Updates 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 void 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
-
getOverallBuckets
public GetOverallBucketsResponse getOverallBuckets(GetOverallBucketsRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
getRecords
public GetRecordsResponse getRecords(GetRecordsRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
postData
public PostDataResponse postData(PostDataRequest request, RequestOptions options) throws java.io.IOException
Sends 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 void 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
-
getCalendars
public GetCalendarsResponse getCalendars(GetCalendarsRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
getInfluencers
public GetInfluencersResponse getInfluencers(GetInfluencersRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
putCalendar
public PutCalendarResponse putCalendar(PutCalendarRequest request, RequestOptions options) throws java.io.IOException
Create 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 void 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
-
putCalendarJob
public PutCalendarResponse putCalendarJob(PutCalendarJobRequest request, RequestOptions options) throws java.io.IOException
Adds 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 void 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
-
deleteCalendarJob
public PutCalendarResponse deleteCalendarJob(DeleteCalendarJobRequest request, RequestOptions options) throws java.io.IOException
Removes 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 void 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
-
deleteCalendar
public AcknowledgedResponse deleteCalendar(DeleteCalendarRequest request, RequestOptions options) throws java.io.IOException
Deletes 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 void 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
-
getCalendarEvents
public GetCalendarEventsResponse getCalendarEvents(GetCalendarEventsRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
postCalendarEvent
public PostCalendarEventResponse postCalendarEvent(PostCalendarEventRequest request, RequestOptions options) throws java.io.IOException
Creates 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 void 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
-
deleteCalendarEvent
public AcknowledgedResponse deleteCalendarEvent(DeleteCalendarEventRequest request, RequestOptions options) throws java.io.IOException
Removes 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 void 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
-
putFilter
public PutFilterResponse putFilter(PutFilterRequest request, RequestOptions options) throws java.io.IOException
Creates 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 void 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
-
getFilter
public GetFiltersResponse getFilter(GetFiltersRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
updateFilter
public PutFilterResponse updateFilter(UpdateFilterRequest request, RequestOptions options) throws java.io.IOException
Updates 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 void 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
-
deleteFilter
public AcknowledgedResponse deleteFilter(DeleteFilterRequest request, RequestOptions options) throws java.io.IOException
Deletes 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 void 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
-
getMlInfo
public MlInfoResponse getMlInfo(MlInfoRequest request, RequestOptions options) throws java.io.IOException
Gets 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 void 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
-
findFileStructure
public FindFileStructureResponse findFileStructure(FindFileStructureRequest request, RequestOptions options) throws java.io.IOException
Finds 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 void 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
-
setUpgradeMode
public AcknowledgedResponse setUpgradeMode(SetUpgradeModeRequest request, RequestOptions options) throws java.io.IOException
Sets 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 void 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
-
-