Class ElasticsearchMlClient
java.lang.Object
co.elastic.clients.base.ApiClient
co.elastic.clients.elasticsearch.ml.ElasticsearchMlClient
public class ElasticsearchMlClient extends ApiClient
Client for the ml namespace.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ElasticsearchMlClient(Transport transport)
-
Method Summary
Methods inherited from class co.elastic.clients.base.ApiClient
_transport, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchMlClient
-
-
Method Details
-
closeJob
Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
closeJob
public final CloseJobResponse closeJob(java.util.function.Function<CloseJobRequest.Builder,ObjectBuilder<CloseJobRequest>> fn) throws java.io.IOExceptionCloses one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteCalendar
public DeleteCalendarResponse deleteCalendar(DeleteCalendarRequest request) throws java.io.IOExceptionDeletes a calendar.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteCalendar
public final DeleteCalendarResponse deleteCalendar(java.util.function.Function<DeleteCalendarRequest.Builder,ObjectBuilder<DeleteCalendarRequest>> fn) throws java.io.IOExceptionDeletes a calendar.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteCalendarEvent
public DeleteCalendarEventResponse deleteCalendarEvent(DeleteCalendarEventRequest request) throws java.io.IOExceptionDeletes scheduled events from a calendar.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteCalendarEvent
public final DeleteCalendarEventResponse deleteCalendarEvent(java.util.function.Function<DeleteCalendarEventRequest.Builder,ObjectBuilder<DeleteCalendarEventRequest>> fn) throws java.io.IOExceptionDeletes scheduled events from a calendar.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteCalendarJob
public DeleteCalendarJobResponse deleteCalendarJob(DeleteCalendarJobRequest request) throws java.io.IOExceptionDeletes anomaly detection jobs from a calendar.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteCalendarJob
public final DeleteCalendarJobResponse deleteCalendarJob(java.util.function.Function<DeleteCalendarJobRequest.Builder,ObjectBuilder<DeleteCalendarJobRequest>> fn) throws java.io.IOExceptionDeletes anomaly detection jobs from a calendar.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteDataFrameAnalytics
public DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request) throws java.io.IOExceptionDeletes an existing data frame analytics job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteDataFrameAnalytics
public final DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics(java.util.function.Function<DeleteDataFrameAnalyticsRequest.Builder,ObjectBuilder<DeleteDataFrameAnalyticsRequest>> fn) throws java.io.IOExceptionDeletes an existing data frame analytics job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteDatafeed
public DeleteDatafeedResponse deleteDatafeed(DeleteDatafeedRequest request) throws java.io.IOExceptionDeletes an existing datafeed.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteDatafeed
public final DeleteDatafeedResponse deleteDatafeed(java.util.function.Function<DeleteDatafeedRequest.Builder,ObjectBuilder<DeleteDatafeedRequest>> fn) throws java.io.IOExceptionDeletes an existing datafeed.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteFilter
Deletes a filter.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteFilter
public final DeleteFilterResponse deleteFilter(java.util.function.Function<DeleteFilterRequest.Builder,ObjectBuilder<DeleteFilterRequest>> fn) throws java.io.IOExceptionDeletes a filter.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteForecast
public DeleteForecastResponse deleteForecast(DeleteForecastRequest request) throws java.io.IOExceptionDeletes forecasts from a machine learning job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteForecast
public final DeleteForecastResponse deleteForecast(java.util.function.Function<DeleteForecastRequest.Builder,ObjectBuilder<DeleteForecastRequest>> fn) throws java.io.IOExceptionDeletes forecasts from a machine learning job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteJob
Deletes an existing anomaly detection job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteJob
public final DeleteJobResponse deleteJob(java.util.function.Function<DeleteJobRequest.Builder,ObjectBuilder<DeleteJobRequest>> fn) throws java.io.IOExceptionDeletes an existing anomaly detection job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteModelSnapshot
public DeleteModelSnapshotResponse deleteModelSnapshot(DeleteModelSnapshotRequest request) throws java.io.IOExceptionDeletes an existing model snapshot.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteModelSnapshot
public final DeleteModelSnapshotResponse deleteModelSnapshot(java.util.function.Function<DeleteModelSnapshotRequest.Builder,ObjectBuilder<DeleteModelSnapshotRequest>> fn) throws java.io.IOExceptionDeletes an existing model snapshot.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteTrainedModel
public DeleteTrainedModelResponse deleteTrainedModel(DeleteTrainedModelRequest request) throws java.io.IOExceptionDeletes an existing trained inference model that is currently not referenced by an ingest pipeline.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteTrainedModel
public final DeleteTrainedModelResponse deleteTrainedModel(java.util.function.Function<DeleteTrainedModelRequest.Builder,ObjectBuilder<DeleteTrainedModelRequest>> fn) throws java.io.IOExceptionDeletes an existing trained inference model that is currently not referenced by an ingest pipeline.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteTrainedModelAlias
public DeleteTrainedModelAliasResponse deleteTrainedModelAlias(DeleteTrainedModelAliasRequest request) throws java.io.IOExceptionDeletes a model alias that refers to the trained model- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
deleteTrainedModelAlias
public final DeleteTrainedModelAliasResponse deleteTrainedModelAlias(java.util.function.Function<DeleteTrainedModelAliasRequest.Builder,ObjectBuilder<DeleteTrainedModelAliasRequest>> fn) throws java.io.IOExceptionDeletes a model alias that refers to the trained model- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
estimateModelMemory
public EstimateModelMemoryResponse estimateModelMemory(EstimateModelMemoryRequest request) throws java.io.IOExceptionEstimates the model memory- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
estimateModelMemory
public final EstimateModelMemoryResponse estimateModelMemory(java.util.function.Function<EstimateModelMemoryRequest.Builder,ObjectBuilder<EstimateModelMemoryRequest>> fn) throws java.io.IOExceptionEstimates the model memory- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
evaluateDataFrame
public EvaluateDataFrameResponse evaluateDataFrame(EvaluateDataFrameRequest request) throws java.io.IOExceptionEvaluates the data frame analytics for an annotated index.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
evaluateDataFrame
public final EvaluateDataFrameResponse evaluateDataFrame(java.util.function.Function<EvaluateDataFrameRequest.Builder,ObjectBuilder<EvaluateDataFrameRequest>> fn) throws java.io.IOExceptionEvaluates the data frame analytics for an annotated index.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
explainDataFrameAnalytics
public ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics(ExplainDataFrameAnalyticsRequest request) throws java.io.IOExceptionExplains a data frame analytics config.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
explainDataFrameAnalytics
public final ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics(java.util.function.Function<ExplainDataFrameAnalyticsRequest.Builder,ObjectBuilder<ExplainDataFrameAnalyticsRequest>> fn) throws java.io.IOExceptionExplains a data frame analytics config.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
findFileStructure
public FindFileStructureResponse findFileStructure(FindFileStructureRequest request) throws java.io.IOExceptionFinds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
findFileStructure
public final FindFileStructureResponse findFileStructure(java.util.function.Function<FindFileStructureRequest.Builder,ObjectBuilder<FindFileStructureRequest>> fn) throws java.io.IOExceptionFinds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
flushJob
Forces any buffered data to be processed by the job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
flushJob
public final FlushJobResponse flushJob(java.util.function.Function<FlushJobRequest.Builder,ObjectBuilder<FlushJobRequest>> fn) throws java.io.IOExceptionForces any buffered data to be processed by the job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
forecast
Predicts the future behavior of a time series by using its historical behavior.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
forecast
public final ForecastResponse forecast(java.util.function.Function<ForecastRequest.Builder,ObjectBuilder<ForecastRequest>> fn) throws java.io.IOExceptionPredicts the future behavior of a time series by using its historical behavior.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getBuckets
Retrieves anomaly detection job results for one or more buckets.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getBuckets
public final GetBucketsResponse getBuckets(java.util.function.Function<GetBucketsRequest.Builder,ObjectBuilder<GetBucketsRequest>> fn) throws java.io.IOExceptionRetrieves anomaly detection job results for one or more buckets.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getCalendarEvents
public GetCalendarEventsResponse getCalendarEvents(GetCalendarEventsRequest request) throws java.io.IOExceptionRetrieves information about the scheduled events in calendars.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getCalendarEvents
public final GetCalendarEventsResponse getCalendarEvents(java.util.function.Function<GetCalendarEventsRequest.Builder,ObjectBuilder<GetCalendarEventsRequest>> fn) throws java.io.IOExceptionRetrieves information about the scheduled events in calendars.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getCalendars
Retrieves configuration information for calendars.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getCalendars
public final GetCalendarsResponse getCalendars(java.util.function.Function<GetCalendarsRequest.Builder,ObjectBuilder<GetCalendarsRequest>> fn) throws java.io.IOExceptionRetrieves configuration information for calendars.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getCategories
public GetCategoriesResponse getCategories(GetCategoriesRequest request) throws java.io.IOExceptionRetrieves anomaly detection job results for one or more categories.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getCategories
public final GetCategoriesResponse getCategories(java.util.function.Function<GetCategoriesRequest.Builder,ObjectBuilder<GetCategoriesRequest>> fn) throws java.io.IOExceptionRetrieves anomaly detection job results for one or more categories.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getDataFrameAnalytics
public GetDataFrameAnalyticsResponse getDataFrameAnalytics(GetDataFrameAnalyticsRequest request) throws java.io.IOExceptionRetrieves configuration information for data frame analytics jobs.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getDataFrameAnalytics
public final GetDataFrameAnalyticsResponse getDataFrameAnalytics(java.util.function.Function<GetDataFrameAnalyticsRequest.Builder,ObjectBuilder<GetDataFrameAnalyticsRequest>> fn) throws java.io.IOExceptionRetrieves configuration information for data frame analytics jobs.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getDataFrameAnalyticsStats
public GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequest request) throws java.io.IOExceptionRetrieves usage information for data frame analytics jobs.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getDataFrameAnalyticsStats
public final GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats(java.util.function.Function<GetDataFrameAnalyticsStatsRequest.Builder,ObjectBuilder<GetDataFrameAnalyticsStatsRequest>> fn) throws java.io.IOExceptionRetrieves usage information for data frame analytics jobs.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getDatafeedStats
public GetDatafeedStatsResponse getDatafeedStats(GetDatafeedStatsRequest request) throws java.io.IOExceptionRetrieves usage information for datafeeds.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getDatafeedStats
public final GetDatafeedStatsResponse getDatafeedStats(java.util.function.Function<GetDatafeedStatsRequest.Builder,ObjectBuilder<GetDatafeedStatsRequest>> fn) throws java.io.IOExceptionRetrieves usage information for datafeeds.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getDatafeeds
Retrieves configuration information for datafeeds.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getDatafeeds
public final GetDatafeedsResponse getDatafeeds(java.util.function.Function<GetDatafeedsRequest.Builder,ObjectBuilder<GetDatafeedsRequest>> fn) throws java.io.IOExceptionRetrieves configuration information for datafeeds.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getFilters
Retrieves filters.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getFilters
public final GetFiltersResponse getFilters(java.util.function.Function<GetFiltersRequest.Builder,ObjectBuilder<GetFiltersRequest>> fn) throws java.io.IOExceptionRetrieves filters.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getInfluencers
public GetInfluencersResponse getInfluencers(GetInfluencersRequest request) throws java.io.IOExceptionRetrieves anomaly detection job results for one or more influencers.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getInfluencers
public final GetInfluencersResponse getInfluencers(java.util.function.Function<GetInfluencersRequest.Builder,ObjectBuilder<GetInfluencersRequest>> fn) throws java.io.IOExceptionRetrieves anomaly detection job results for one or more influencers.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getJobStats
Retrieves usage information for anomaly detection jobs.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getJobStats
public final GetJobStatsResponse getJobStats(java.util.function.Function<GetJobStatsRequest.Builder,ObjectBuilder<GetJobStatsRequest>> fn) throws java.io.IOExceptionRetrieves usage information for anomaly detection jobs.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getJobs
Retrieves configuration information for anomaly detection jobs.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getJobs
public final GetJobsResponse getJobs(java.util.function.Function<GetJobsRequest.Builder,ObjectBuilder<GetJobsRequest>> fn) throws java.io.IOExceptionRetrieves configuration information for anomaly detection jobs.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getModelSnapshots
public GetModelSnapshotsResponse getModelSnapshots(GetModelSnapshotsRequest request) throws java.io.IOExceptionRetrieves information about model snapshots.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getModelSnapshots
public final GetModelSnapshotsResponse getModelSnapshots(java.util.function.Function<GetModelSnapshotsRequest.Builder,ObjectBuilder<GetModelSnapshotsRequest>> fn) throws java.io.IOExceptionRetrieves information about model snapshots.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getOverallBuckets
public GetOverallBucketsResponse getOverallBuckets(GetOverallBucketsRequest request) throws java.io.IOExceptionRetrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getOverallBuckets
public final GetOverallBucketsResponse getOverallBuckets(java.util.function.Function<GetOverallBucketsRequest.Builder,ObjectBuilder<GetOverallBucketsRequest>> fn) throws java.io.IOExceptionRetrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getRecords
Retrieves anomaly records for an anomaly detection job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getRecords
public final GetRecordsResponse getRecords(java.util.function.Function<GetRecordsRequest.Builder,ObjectBuilder<GetRecordsRequest>> fn) throws java.io.IOExceptionRetrieves anomaly records for an anomaly detection job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getTrainedModels
public GetTrainedModelsResponse getTrainedModels(GetTrainedModelsRequest request) throws java.io.IOExceptionRetrieves configuration information for a trained inference model.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getTrainedModels
public final GetTrainedModelsResponse getTrainedModels(java.util.function.Function<GetTrainedModelsRequest.Builder,ObjectBuilder<GetTrainedModelsRequest>> fn) throws java.io.IOExceptionRetrieves configuration information for a trained inference model.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getTrainedModelsStats
public GetTrainedModelsStatsResponse getTrainedModelsStats(GetTrainedModelsStatsRequest request) throws java.io.IOExceptionRetrieves usage information for trained inference models.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
getTrainedModelsStats
public final GetTrainedModelsStatsResponse getTrainedModelsStats(java.util.function.Function<GetTrainedModelsStatsRequest.Builder,ObjectBuilder<GetTrainedModelsStatsRequest>> fn) throws java.io.IOExceptionRetrieves usage information for trained inference models.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
info
Returns defaults and limits used by machine learning.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
openJob
Opens one or more anomaly detection jobs.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
openJob
public final OpenJobResponse openJob(java.util.function.Function<OpenJobRequest.Builder,ObjectBuilder<OpenJobRequest>> fn) throws java.io.IOExceptionOpens one or more anomaly detection jobs.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
postCalendarEvents
public PostCalendarEventsResponse postCalendarEvents(PostCalendarEventsRequest request) throws java.io.IOExceptionPosts scheduled events in a calendar.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
postCalendarEvents
public final PostCalendarEventsResponse postCalendarEvents(java.util.function.Function<PostCalendarEventsRequest.Builder,ObjectBuilder<PostCalendarEventsRequest>> fn) throws java.io.IOExceptionPosts scheduled events in a calendar.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
postData
public <TData> PostDataResponse postData(PostDataRequest<TData> request) throws java.io.IOExceptionSends data to an anomaly detection job for analysis.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
postData
public final <TData> PostDataResponse postData(java.util.function.Function<PostDataRequest.Builder<TData>,ObjectBuilder<PostDataRequest<TData>>> fn) throws java.io.IOExceptionSends data to an anomaly detection job for analysis.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
previewDataFrameAnalytics
public PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics(PreviewDataFrameAnalyticsRequest request) throws java.io.IOExceptionPreviews that will be analyzed given a data frame analytics config.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
previewDataFrameAnalytics
public final PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics(java.util.function.Function<PreviewDataFrameAnalyticsRequest.Builder,ObjectBuilder<PreviewDataFrameAnalyticsRequest>> fn) throws java.io.IOExceptionPreviews that will be analyzed given a data frame analytics config.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
previewDatafeed
public <TDocument> PreviewDatafeedResponse<TDocument> previewDatafeed(PreviewDatafeedRequest request, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOExceptionPreviews a datafeed.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
previewDatafeed
public final <TDocument> PreviewDatafeedResponse<TDocument> previewDatafeed(java.util.function.Function<PreviewDatafeedRequest.Builder,ObjectBuilder<PreviewDatafeedRequest>> fn, java.lang.Class<TDocument> tDocumentClass) throws java.io.IOExceptionPreviews a datafeed.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putCalendar
Instantiates a calendar.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putCalendar
public final PutCalendarResponse putCalendar(java.util.function.Function<PutCalendarRequest.Builder,ObjectBuilder<PutCalendarRequest>> fn) throws java.io.IOExceptionInstantiates a calendar.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putCalendarJob
public PutCalendarJobResponse putCalendarJob(PutCalendarJobRequest request) throws java.io.IOExceptionAdds an anomaly detection job to a calendar.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putCalendarJob
public final PutCalendarJobResponse putCalendarJob(java.util.function.Function<PutCalendarJobRequest.Builder,ObjectBuilder<PutCalendarJobRequest>> fn) throws java.io.IOExceptionAdds an anomaly detection job to a calendar.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putDataFrameAnalytics
public PutDataFrameAnalyticsResponse putDataFrameAnalytics(PutDataFrameAnalyticsRequest request) throws java.io.IOExceptionInstantiates a data frame analytics job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putDataFrameAnalytics
public final PutDataFrameAnalyticsResponse putDataFrameAnalytics(java.util.function.Function<PutDataFrameAnalyticsRequest.Builder,ObjectBuilder<PutDataFrameAnalyticsRequest>> fn) throws java.io.IOExceptionInstantiates a data frame analytics job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putDatafeed
Instantiates a datafeed.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putDatafeed
public final PutDatafeedResponse putDatafeed(java.util.function.Function<PutDatafeedRequest.Builder,ObjectBuilder<PutDatafeedRequest>> fn) throws java.io.IOExceptionInstantiates a datafeed.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putFilter
Instantiates a filter.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putFilter
public final PutFilterResponse putFilter(java.util.function.Function<PutFilterRequest.Builder,ObjectBuilder<PutFilterRequest>> fn) throws java.io.IOExceptionInstantiates a filter.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putJob
Instantiates an anomaly detection job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putJob
public final PutJobResponse putJob(java.util.function.Function<PutJobRequest.Builder,ObjectBuilder<PutJobRequest>> fn) throws java.io.IOExceptionInstantiates an anomaly detection job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putTrainedModel
public PutTrainedModelResponse putTrainedModel(PutTrainedModelRequest request) throws java.io.IOExceptionCreates an inference trained model.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putTrainedModel
public final PutTrainedModelResponse putTrainedModel(java.util.function.Function<PutTrainedModelRequest.Builder,ObjectBuilder<PutTrainedModelRequest>> fn) throws java.io.IOExceptionCreates an inference trained model.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putTrainedModelAlias
public PutTrainedModelAliasResponse putTrainedModelAlias(PutTrainedModelAliasRequest request) throws java.io.IOExceptionCreates a new model alias (or reassigns an existing one) to refer to the trained model- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
putTrainedModelAlias
public final PutTrainedModelAliasResponse putTrainedModelAlias(java.util.function.Function<PutTrainedModelAliasRequest.Builder,ObjectBuilder<PutTrainedModelAliasRequest>> fn) throws java.io.IOExceptionCreates a new model alias (or reassigns an existing one) to refer to the trained model- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
resetJob
Resets an existing anomaly detection job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
resetJob
public final ResetJobResponse resetJob(java.util.function.Function<ResetJobRequest.Builder,ObjectBuilder<ResetJobRequest>> fn) throws java.io.IOExceptionResets an existing anomaly detection job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
revertModelSnapshot
public RevertModelSnapshotResponse revertModelSnapshot(RevertModelSnapshotRequest request) throws java.io.IOExceptionReverts to a specific snapshot.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
revertModelSnapshot
public final RevertModelSnapshotResponse revertModelSnapshot(java.util.function.Function<RevertModelSnapshotRequest.Builder,ObjectBuilder<RevertModelSnapshotRequest>> fn) throws java.io.IOExceptionReverts to a specific snapshot.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
setUpgradeMode
public SetUpgradeModeResponse setUpgradeMode(SetUpgradeModeRequest request) throws java.io.IOExceptionSets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
setUpgradeMode
public final SetUpgradeModeResponse setUpgradeMode(java.util.function.Function<SetUpgradeModeRequest.Builder,ObjectBuilder<SetUpgradeModeRequest>> fn) throws java.io.IOExceptionSets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
startDataFrameAnalytics
public StartDataFrameAnalyticsResponse startDataFrameAnalytics(StartDataFrameAnalyticsRequest request) throws java.io.IOExceptionStarts a data frame analytics job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
startDataFrameAnalytics
public final StartDataFrameAnalyticsResponse startDataFrameAnalytics(java.util.function.Function<StartDataFrameAnalyticsRequest.Builder,ObjectBuilder<StartDataFrameAnalyticsRequest>> fn) throws java.io.IOExceptionStarts a data frame analytics job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
startDatafeed
public StartDatafeedResponse startDatafeed(StartDatafeedRequest request) throws java.io.IOExceptionStarts one or more datafeeds.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
startDatafeed
public final StartDatafeedResponse startDatafeed(java.util.function.Function<StartDatafeedRequest.Builder,ObjectBuilder<StartDatafeedRequest>> fn) throws java.io.IOExceptionStarts one or more datafeeds.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stopDataFrameAnalytics
public StopDataFrameAnalyticsResponse stopDataFrameAnalytics(StopDataFrameAnalyticsRequest request) throws java.io.IOExceptionStops one or more data frame analytics jobs.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stopDataFrameAnalytics
public final StopDataFrameAnalyticsResponse stopDataFrameAnalytics(java.util.function.Function<StopDataFrameAnalyticsRequest.Builder,ObjectBuilder<StopDataFrameAnalyticsRequest>> fn) throws java.io.IOExceptionStops one or more data frame analytics jobs.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stopDatafeed
Stops one or more datafeeds.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
stopDatafeed
public final StopDatafeedResponse stopDatafeed(java.util.function.Function<StopDatafeedRequest.Builder,ObjectBuilder<StopDatafeedRequest>> fn) throws java.io.IOExceptionStops one or more datafeeds.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
updateDataFrameAnalytics
public UpdateDataFrameAnalyticsResponse updateDataFrameAnalytics(UpdateDataFrameAnalyticsRequest request) throws java.io.IOExceptionUpdates certain properties of a data frame analytics job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
updateDataFrameAnalytics
public final UpdateDataFrameAnalyticsResponse updateDataFrameAnalytics(java.util.function.Function<UpdateDataFrameAnalyticsRequest.Builder,ObjectBuilder<UpdateDataFrameAnalyticsRequest>> fn) throws java.io.IOExceptionUpdates certain properties of a data frame analytics job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
updateFilter
Updates the description of a filter, adds items, or removes items.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
updateFilter
public final UpdateFilterResponse updateFilter(java.util.function.Function<UpdateFilterRequest.Builder,ObjectBuilder<UpdateFilterRequest>> fn) throws java.io.IOExceptionUpdates the description of a filter, adds items, or removes items.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
updateJob
Updates certain properties of an anomaly detection job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
updateJob
public final UpdateJobResponse updateJob(java.util.function.Function<UpdateJobRequest.Builder,ObjectBuilder<UpdateJobRequest>> fn) throws java.io.IOExceptionUpdates certain properties of an anomaly detection job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
updateModelSnapshot
public UpdateModelSnapshotResponse updateModelSnapshot(UpdateModelSnapshotRequest request) throws java.io.IOExceptionUpdates certain properties of a snapshot.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
updateModelSnapshot
public final UpdateModelSnapshotResponse updateModelSnapshot(java.util.function.Function<UpdateModelSnapshotRequest.Builder,ObjectBuilder<UpdateModelSnapshotRequest>> fn) throws java.io.IOExceptionUpdates certain properties of a snapshot.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
upgradeJobSnapshot
public UpgradeJobSnapshotResponse upgradeJobSnapshot(UpgradeJobSnapshotRequest request) throws java.io.IOExceptionUpgrades a given job snapshot to the current major version.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
upgradeJobSnapshot
public final UpgradeJobSnapshotResponse upgradeJobSnapshot(java.util.function.Function<UpgradeJobSnapshotRequest.Builder,ObjectBuilder<UpgradeJobSnapshotRequest>> fn) throws java.io.IOExceptionUpgrades a given job snapshot to the current major version.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
validate
Validates an anomaly detection job.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
validate
public final ValidateResponse validate(java.util.function.Function<ValidateRequest.Builder,ObjectBuilder<ValidateRequest>> fn) throws java.io.IOExceptionValidates an anomaly detection job.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
validateDetector
public ValidateDetectorResponse validateDetector(ValidateDetectorRequest request) throws java.io.IOExceptionValidates an anomaly detection detector.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-
validateDetector
public final ValidateDetectorResponse validateDetector(java.util.function.Function<ValidateDetectorRequest.Builder,ObjectBuilder<ValidateDetectorRequest>> fn) throws java.io.IOExceptionValidates an anomaly detection detector.- Parameters:
fn
- a function that initializes a freshly created builder. This function can either return its builder argument after having set its properties or return another builder.- Throws:
java.io.IOException
- See Also:
- Documentation on elastic.co
-