diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index d792186b7..20e564051 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -2191,8 +2191,8 @@ 'ml._types.CategorizationAnalyzerDefinition': 'ml/_types/Analysis.ts#L119-L133', 'ml._types.CategorizationStatus': 'ml/_types/Model.ts#L84-L87', 'ml._types.Category': 'ml/_types/Category.ts#L23-L49', -'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L255-L268', -'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L249-L253', +'ml._types.ChunkingConfig': 'ml/_types/Datafeed.ts#L251-L264', +'ml._types.ChunkingMode': 'ml/_types/Datafeed.ts#L245-L249', 'ml._types.ClassificationInferenceOptions': 'ml/_types/inference.ts#L118-L133', 'ml._types.CommonTokenizationConfig': 'ml/_types/inference.ts#L160-L186', 'ml._types.ConditionOperator': 'ml/_types/Rule.ts#L74-L79', @@ -2200,11 +2200,11 @@ 'ml._types.DataDescription': 'ml/_types/Job.ts#L376-L392', 'ml._types.Datafeed': 'ml/_types/Datafeed.ts#L37-L61', 'ml._types.DatafeedAuthorization': 'ml/_types/Authorization.ts#L31-L43', -'ml._types.DatafeedConfig': 'ml/_types/Datafeed.ts#L63-L124', -'ml._types.DatafeedRunningState': 'ml/_types/Datafeed.ts#L214-L228', -'ml._types.DatafeedState': 'ml/_types/Datafeed.ts#L140-L145', -'ml._types.DatafeedStats': 'ml/_types/Datafeed.ts#L147-L176', -'ml._types.DatafeedTimingStats': 'ml/_types/Datafeed.ts#L178-L206', +'ml._types.DatafeedConfig': 'ml/_types/Datafeed.ts#L63-L120', +'ml._types.DatafeedRunningState': 'ml/_types/Datafeed.ts#L210-L224', +'ml._types.DatafeedState': 'ml/_types/Datafeed.ts#L136-L141', +'ml._types.DatafeedStats': 'ml/_types/Datafeed.ts#L143-L172', +'ml._types.DatafeedTimingStats': 'ml/_types/Datafeed.ts#L174-L202', 'ml._types.DataframeAnalysis': 'ml/_types/DataframeAnalytics.ts#L134-L213', 'ml._types.DataframeAnalysisAnalyzedFields': 'ml/_types/DataframeAnalytics.ts#L238-L244', 'ml._types.DataframeAnalysisClassification': 'ml/_types/DataframeAnalytics.ts#L227-L236', @@ -2242,7 +2242,7 @@ 'ml._types.DataframeEvaluationRegressionMetricsHuber': 'ml/_types/DataframeEvaluation.ts#L117-L120', 'ml._types.DataframeEvaluationRegressionMetricsMsle': 'ml/_types/DataframeEvaluation.ts#L112-L115', 'ml._types.DataframeState': 'ml/_types/Dataframe.ts#L20-L26', -'ml._types.DelayedDataCheckConfig': 'ml/_types/Datafeed.ts#L126-L137', +'ml._types.DelayedDataCheckConfig': 'ml/_types/Datafeed.ts#L122-L133', 'ml._types.DeploymentAllocationState': 'ml/_types/TrainedModel.ts#L331-L344', 'ml._types.DeploymentAssignmentState': 'ml/_types/TrainedModel.ts#L346-L363', 'ml._types.DetectionRule': 'ml/_types/Rule.ts#L25-L39', @@ -2252,7 +2252,7 @@ 'ml._types.DiscoveryNodeCompact': 'ml/_types/DiscoveryNode.ts#L39-L48', 'ml._types.DiscoveryNodeContent': 'ml/_types/DiscoveryNode.ts#L27-L37', 'ml._types.ExcludeFrequent': 'ml/_types/Detector.ts#L91-L96', -'ml._types.ExponentialAverageCalculationContext': 'ml/_types/Datafeed.ts#L208-L212', +'ml._types.ExponentialAverageCalculationContext': 'ml/_types/Datafeed.ts#L204-L208', 'ml._types.FillMaskInferenceOptions': 'ml/_types/inference.ts#L284-L299', 'ml._types.FillMaskInferenceUpdateOptions': 'ml/_types/inference.ts#L430-L437', 'ml._types.Filter': 'ml/_types/Filter.ts#L22-L29', @@ -2302,7 +2302,7 @@ 'ml._types.RoutingState': 'ml/_types/TrainedModel.ts#L408-L429', 'ml._types.RuleAction': 'ml/_types/Rule.ts#L41-L50', 'ml._types.RuleCondition': 'ml/_types/Rule.ts#L52-L65', -'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L230-L247', +'ml._types.RunningStateSearchInterval': 'ml/_types/Datafeed.ts#L226-L243', 'ml._types.SnapshotUpgradeState': 'ml/_types/Model.ts#L95-L100', 'ml._types.TextClassificationInferenceOptions': 'ml/_types/inference.ts#L202-L214', 'ml._types.TextClassificationInferenceUpdateOptions': 'ml/_types/inference.ts#L382-L391', @@ -2465,8 +2465,8 @@ 'ml.put_calendar_job.Response': 'ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31', 'ml.put_data_frame_analytics.Request': 'ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L36-L163', 'ml.put_data_frame_analytics.Response': 'ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L47', -'ml.put_datafeed.Request': 'ml/put_datafeed/MlPutDatafeedRequest.ts#L38-L195', -'ml.put_datafeed.Response': 'ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L50', +'ml.put_datafeed.Request': 'ml/put_datafeed/MlPutDatafeedRequest.ts#L38-L187', +'ml.put_datafeed.Response': 'ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49', 'ml.put_filter.Request': 'ml/put_filter/MlPutFilterRequest.ts#L23-L60', 'ml.put_filter.Response': 'ml/put_filter/MlPutFilterResponse.ts#L22-L28', 'ml.put_job.Request': 'ml/put_job/MlPutJobRequest.ts#L30-L153', @@ -2511,8 +2511,8 @@ 'ml.stop_trained_model_deployment.Response': 'ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22', 'ml.update_data_frame_analytics.Request': 'ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L82', 'ml.update_data_frame_analytics.Response': 'ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45', -'ml.update_datafeed.Request': 'ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L174', -'ml.update_datafeed.Response': 'ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L50', +'ml.update_datafeed.Request': 'ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L166', +'ml.update_datafeed.Response': 'ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49', 'ml.update_filter.Request': 'ml/update_filter/MlUpdateFilterRequest.ts#L23-L62', 'ml.update_filter.Response': 'ml/update_filter/MlUpdateFilterResponse.ts#L22-L28', 'ml.update_job.Request': 'ml/update_job/MlUpdateJobRequest.ts#L33-L149', @@ -3385,10 +3385,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/4340716a5cdb8b75654131337835e74e1f5c4c80/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/66b2f4efc86f106ad7a869fe474b77ef3a3a77f9/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java index a6d1a5898..da08f28f6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java @@ -95,9 +95,6 @@ public class DatafeedConfig implements JsonpSerializable { @Nullable private final Integer maxEmptySearches; - @Nullable - private final Integer maxConsecutiveExtractionFailures; - @Nullable private final Query query; @@ -124,7 +121,6 @@ private DatafeedConfig(Builder builder) { this.indicesOptions = builder.indicesOptions; this.jobId = builder.jobId; this.maxEmptySearches = builder.maxEmptySearches; - this.maxConsecutiveExtractionFailures = builder.maxConsecutiveExtractionFailures; this.query = builder.query; this.queryDelay = builder.queryDelay; this.runtimeMappings = ApiTypeHelper.unmodifiable(builder.runtimeMappings); @@ -252,23 +248,6 @@ public final Integer maxEmptySearches() { return this.maxEmptySearches; } - /** - * The maximum number of consecutive real-time data extraction failures the - * datafeed tolerates before it automatically stops itself, leaving the - * associated job open. The consecutive-failure counter resets on any cycle that - * extracts successfully, including empty-data cycles. If not set, the threshold - * defaults to roughly one day's worth of searches based on the datafeed - * frequency (floored at 1). Set to -1 to disable - * auto-stop and retry indefinitely. Values of 0 or less than - * -1 are rejected. - *

- * API name: {@code max_consecutive_extraction_failures} - */ - @Nullable - public final Integer maxConsecutiveExtractionFailures() { - return this.maxConsecutiveExtractionFailures; - } - /** * The Elasticsearch query domain-specific language (DSL). This value * corresponds to the query object in an Elasticsearch search POST body. All the @@ -395,11 +374,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("max_empty_searches"); generator.write(this.maxEmptySearches); - } - if (this.maxConsecutiveExtractionFailures != null) { - generator.writeKey("max_consecutive_extraction_failures"); - generator.write(this.maxConsecutiveExtractionFailures); - } if (this.query != null) { generator.writeKey("query"); @@ -480,9 +454,6 @@ public static class Builder extends WithJsonObjectBuilderBase implement @Nullable private Integer maxEmptySearches; - @Nullable - private Integer maxConsecutiveExtractionFailures; - @Nullable private Query query; @@ -510,7 +481,6 @@ private Builder(DatafeedConfig instance) { this.indicesOptions = instance.indicesOptions; this.jobId = instance.jobId; this.maxEmptySearches = instance.maxEmptySearches; - this.maxConsecutiveExtractionFailures = instance.maxConsecutiveExtractionFailures; this.query = instance.query; this.queryDelay = instance.queryDelay; this.runtimeMappings = instance.runtimeMappings; @@ -745,23 +715,6 @@ public final Builder maxEmptySearches(@Nullable Integer value) { return this; } - /** - * The maximum number of consecutive real-time data extraction failures the - * datafeed tolerates before it automatically stops itself, leaving the - * associated job open. The consecutive-failure counter resets on any cycle that - * extracts successfully, including empty-data cycles. If not set, the threshold - * defaults to roughly one day's worth of searches based on the datafeed - * frequency (floored at 1). Set to -1 to disable - * auto-stop and retry indefinitely. Values of 0 or less than - * -1 are rejected. - *

- * API name: {@code max_consecutive_extraction_failures} - */ - public final Builder maxConsecutiveExtractionFailures(@Nullable Integer value) { - this.maxConsecutiveExtractionFailures = value; - return this; - } - /** * The Elasticsearch query domain-specific language (DSL). This value * corresponds to the query object in an Elasticsearch search POST body. All the @@ -963,8 +916,6 @@ protected static void setupDatafeedConfigDeserializer(ObjectDeserializerfrequency (floored at 1). Set to -1 to disable - * auto-stop and retry indefinitely. Values of 0 or less than - * -1 are rejected. - *

- * API name: {@code max_consecutive_extraction_failures} - */ - @Nullable - public final Integer maxConsecutiveExtractionFailures() { - return this.maxConsecutiveExtractionFailures; - } - /** * If a real-time datafeed has never seen any data (including during any initial * training period), it automatically stops and closes the associated job after @@ -494,11 +473,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("job_id"); generator.write(this.jobId); - } - if (this.maxConsecutiveExtractionFailures != null) { - generator.writeKey("max_consecutive_extraction_failures"); - generator.write(this.maxConsecutiveExtractionFailures); - } if (this.maxEmptySearches != null) { generator.writeKey("max_empty_searches"); @@ -592,9 +566,6 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String jobId; - @Nullable - private Integer maxConsecutiveExtractionFailures; - @Nullable private Integer maxEmptySearches; @@ -629,7 +600,6 @@ private Builder(PutDatafeedRequest instance) { this.indices = instance.indices; this.indicesOptions = instance.indicesOptions; this.jobId = instance.jobId; - this.maxConsecutiveExtractionFailures = instance.maxConsecutiveExtractionFailures; this.maxEmptySearches = instance.maxEmptySearches; this.query = instance.query; this.queryDelay = instance.queryDelay; @@ -932,23 +902,6 @@ public final Builder jobId(@Nullable String value) { return this; } - /** - * The maximum number of consecutive real-time data extraction failures the - * datafeed tolerates before it automatically stops itself, leaving the - * associated job open. The consecutive-failure counter resets on any cycle that - * extracts successfully, including empty-data cycles. If not set, the threshold - * defaults to roughly one day's worth of searches based on the datafeed - * frequency (floored at 1). Set to -1 to disable - * auto-stop and retry indefinitely. Values of 0 or less than - * -1 are rejected. - *

- * API name: {@code max_consecutive_extraction_failures} - */ - public final Builder maxConsecutiveExtractionFailures(@Nullable Integer value) { - this.maxConsecutiveExtractionFailures = value; - return this; - } - /** * If a real-time datafeed has never seen any data (including during any initial * training period), it automatically stops and closes the associated job after @@ -1166,8 +1119,6 @@ protected static void setupPutDatafeedRequestDeserializer(ObjectDeserializer @Nullable private Integer maxEmptySearches; - @Nullable - private Integer maxConsecutiveExtractionFailures; - private Query query; private Time queryDelay; @@ -572,14 +552,6 @@ public final Builder maxEmptySearches(@Nullable Integer value) { return this; } - /** - * API name: {@code max_consecutive_extraction_failures} - */ - public final Builder maxConsecutiveExtractionFailures(@Nullable Integer value) { - this.maxConsecutiveExtractionFailures = value; - return this; - } - /** * Required - API name: {@code query} */ @@ -725,8 +697,6 @@ protected static void setupPutDatafeedResponseDeserializer(ObjectDeserializerfrequency (floored at 1). Set to -1 to disable - * auto-stop and retry indefinitely. Values of 0 or less than - * -1 are rejected. - *

- * API name: {@code max_consecutive_extraction_failures} - */ - @Nullable - public final Integer maxConsecutiveExtractionFailures() { - return this.maxConsecutiveExtractionFailures; - } - /** * If a real-time datafeed has never seen any data (including during any initial * training period), it automatically stops and closes the associated job after @@ -459,11 +438,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("job_id"); generator.write(this.jobId); - } - if (this.maxConsecutiveExtractionFailures != null) { - generator.writeKey("max_consecutive_extraction_failures"); - generator.write(this.maxConsecutiveExtractionFailures); - } if (this.maxEmptySearches != null) { generator.writeKey("max_empty_searches"); @@ -554,9 +528,6 @@ public static class Builder extends RequestBase.AbstractBuilder @Nullable private String jobId; - @Nullable - private Integer maxConsecutiveExtractionFailures; - @Nullable private Integer maxEmptySearches; @@ -590,7 +561,6 @@ private Builder(UpdateDatafeedRequest instance) { this.indices = instance.indices; this.indicesOptions = instance.indicesOptions; this.jobId = instance.jobId; - this.maxConsecutiveExtractionFailures = instance.maxConsecutiveExtractionFailures; this.maxEmptySearches = instance.maxEmptySearches; this.query = instance.query; this.queryDelay = instance.queryDelay; @@ -870,23 +840,6 @@ public final Builder jobId(@Nullable String value) { return this; } - /** - * The maximum number of consecutive real-time data extraction failures the - * datafeed tolerates before it automatically stops itself, leaving the - * associated job open. The consecutive-failure counter resets on any cycle that - * extracts successfully, including empty-data cycles. If not set, the threshold - * defaults to roughly one day's worth of searches based on the datafeed - * frequency (floored at 1). Set to -1 to disable - * auto-stop and retry indefinitely. Values of 0 or less than - * -1 are rejected. - *

- * API name: {@code max_consecutive_extraction_failures} - */ - public final Builder maxConsecutiveExtractionFailures(@Nullable Integer value) { - this.maxConsecutiveExtractionFailures = value; - return this; - } - /** * If a real-time datafeed has never seen any data (including during any initial * training period), it automatically stops and closes the associated job after @@ -1117,8 +1070,6 @@ protected static void setupUpdateDatafeedRequestDeserializer(ObjectDeserializer< "indexes"); op.add(Builder::indicesOptions, IndicesOptions._DESERIALIZER, "indices_options"); op.add(Builder::jobId, JsonpDeserializer.stringDeserializer(), "job_id"); - op.add(Builder::maxConsecutiveExtractionFailures, JsonpDeserializer.integerDeserializer(), - "max_consecutive_extraction_failures"); op.add(Builder::maxEmptySearches, JsonpDeserializer.integerDeserializer(), "max_empty_searches"); op.add(Builder::query, Query._DESERIALIZER, "query"); op.add(Builder::queryDelay, Time._DESERIALIZER, "query_delay"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java index 28c3896f8..519cfc854 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDatafeedResponse.java @@ -95,9 +95,6 @@ public class UpdateDatafeedResponse implements JsonpSerializable { @Nullable private final Integer maxEmptySearches; - @Nullable - private final Integer maxConsecutiveExtractionFailures; - private final Query query; private final Time queryDelay; @@ -122,7 +119,6 @@ private UpdateDatafeedResponse(Builder builder) { this.indicesOptions = builder.indicesOptions; this.jobId = ApiTypeHelper.requireNonNull(builder.jobId, this, "jobId"); this.maxEmptySearches = builder.maxEmptySearches; - this.maxConsecutiveExtractionFailures = builder.maxConsecutiveExtractionFailures; this.query = ApiTypeHelper.requireNonNull(builder.query, this, "query"); this.queryDelay = ApiTypeHelper.requireNonNull(builder.queryDelay, this, "queryDelay"); this.runtimeMappings = ApiTypeHelper.unmodifiable(builder.runtimeMappings); @@ -210,14 +206,6 @@ public final Integer maxEmptySearches() { return this.maxEmptySearches; } - /** - * API name: {@code max_consecutive_extraction_failures} - */ - @Nullable - public final Integer maxConsecutiveExtractionFailures() { - return this.maxConsecutiveExtractionFailures; - } - /** * Required - API name: {@code query} */ @@ -318,11 +306,6 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("max_empty_searches"); generator.write(this.maxEmptySearches); - } - if (this.maxConsecutiveExtractionFailures != null) { - generator.writeKey("max_consecutive_extraction_failures"); - generator.write(this.maxConsecutiveExtractionFailures); - } generator.writeKey("query"); this.query.serialize(generator, mapper); @@ -397,9 +380,6 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private Integer maxEmptySearches; - @Nullable - private Integer maxConsecutiveExtractionFailures; - private Query query; private Time queryDelay; @@ -572,14 +552,6 @@ public final Builder maxEmptySearches(@Nullable Integer value) { return this; } - /** - * API name: {@code max_consecutive_extraction_failures} - */ - public final Builder maxConsecutiveExtractionFailures(@Nullable Integer value) { - this.maxConsecutiveExtractionFailures = value; - return this; - } - /** * Required - API name: {@code query} */ @@ -726,8 +698,6 @@ protected static void setupUpdateDatafeedResponseDeserializer( op.add(Builder::indicesOptions, IndicesOptions._DESERIALIZER, "indices_options"); op.add(Builder::jobId, JsonpDeserializer.stringDeserializer(), "job_id"); op.add(Builder::maxEmptySearches, JsonpDeserializer.integerDeserializer(), "max_empty_searches"); - op.add(Builder::maxConsecutiveExtractionFailures, JsonpDeserializer.integerDeserializer(), - "max_consecutive_extraction_failures"); op.add(Builder::query, Query._DESERIALIZER, "query"); op.add(Builder::queryDelay, Time._DESERIALIZER, "query_delay"); op.add(Builder::runtimeMappings, JsonpDeserializer.stringMapDeserializer(RuntimeField._DESERIALIZER),