Skip to content

Commit f05a8f1

Browse files
authored
Remove allow_no_jobs and allow_no_datafeeds parameters
1 parent a7da1eb commit f05a8f1

File tree

7 files changed

+87
-148
lines changed

7 files changed

+87
-148
lines changed

output/schema/schema.json

+46-95
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

+8-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+5-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ml/close_job/MlCloseJobRequest.ts

-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ export interface Request extends RequestBase {
4646
* @server_default true
4747
*/
4848
allow_no_match?: boolean
49-
/**
50-
* @deprecated 7.10.0 Use `allow_no_match` instead.
51-
*/
52-
allow_no_jobs?: boolean
5349
/**
5450
* Use to close a failed job, or to forcefully close a job which has not responded to its initial close request; the request returns without performing the associated actions such as flushing buffers and persisting the model snapshots.
5551
* If you want the job to be in a consistent state after the close job API returns, do not set to `true`. This parameter should be used only in situations where the job has already failed or where you are not interested in results the job might have recently produced or might produce in the future.

specification/ml/get_job_stats/MlGetJobStatsRequest.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ export interface Request extends RequestBase {
4545
* 2. Contains the _all string or no identifiers and there are no matches.
4646
* 3. Contains wildcard expressions and there are only partial matches.
4747
*
48-
* The default value is `true`, which returns an empty `jobs` array when
48+
* If `true`, the API returns an empty `jobs` array when
4949
* there are no matches and the subset of results when there are partial
50-
* matches. If this parameter is `false`, the request returns a `404` status
50+
* matches. If `false`, the API returns a `404` status
5151
* code when there are no matches or only partial matches.
5252
* @server_default true
5353
*/
54-
allow_no_jobs?: boolean
54+
allow_no_match?: boolean
5555
}
5656
}

specification/ml/get_jobs/MlGetJobsRequest.ts

-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ export interface Request extends RequestBase {
5555
* @server_default true
5656
*/
5757
allow_no_match?: boolean
58-
/**
59-
* @deprecated 7.10.0
60-
*/
61-
allow_no_jobs?: boolean
6258
/**
6359
* Indicates if certain fields should be removed from the configuration on
6460
* retrieval. This allows the configuration to be in an acceptable format to

specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts

+25-31
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ export interface Request extends RequestBase {
5858
job_id: Id
5959
}
6060
query_parameters: {
61+
/**
62+
* Specifies what to do when the request:
63+
*
64+
* 1. Contains wildcard expressions and there are no jobs that match.
65+
* 2. Contains the `_all` string or no identifiers and there are no matches.
66+
* 3. Contains wildcard expressions and there are only partial matches.
67+
*
68+
* If `true`, the request returns an empty `jobs` array when there are no
69+
* matches and the subset of results when there are partial matches. If this
70+
* parameter is `false`, the request returns a `404` status code when there
71+
* are no matches or only partial matches.
72+
* @server_default true
73+
*/
74+
allow_no_match?: boolean
6175
/**
6276
* The span of the overall buckets. Must be greater or equal to the largest
6377
* bucket span of the specified anomaly detection jobs, which is the default
@@ -68,49 +82,29 @@ export interface Request extends RequestBase {
6882
* the optional `bucket_span` parameter.
6983
*/
7084
bucket_span?: Time
71-
/**
72-
* Returns overall buckets with overall scores greater than or equal to this
73-
* value.
74-
*/
75-
overall_score?: double | string
76-
/**
77-
* The number of top anomaly detection job bucket scores to be used in the
78-
* `overall_score` calculation.
79-
* @server_default 1
80-
*/
81-
top_n?: integer
8285
/**
8386
* Returns overall buckets with timestamps earlier than this time.
8487
*/
8588
end?: Time
86-
/**
87-
* Returns overall buckets with timestamps after this time.
88-
*/
89-
start?: Time
9089
/**
9190
* If `true`, the output excludes interim results.
9291
* @server_default false
9392
*/
9493
exclude_interim?: boolean
9594
/**
96-
* Specifies what to do when the request:
97-
*
98-
* 1. Contains wildcard expressions and there are no jobs that match.
99-
* 2. Contains the `_all` string or no identifiers and there are no matches.
100-
* 3. Contains wildcard expressions and there are only partial matches.
101-
*
102-
* If `true`, the request returns an empty `jobs` array when there are no
103-
* matches and the subset of results when there are partial matches. If this
104-
* parameter is `false`, the request returns a `404` status code when there
105-
* are no matches or only partial matches.
106-
* @server_default true
95+
* Returns overall buckets with overall scores greater than or equal to this
96+
* value.
10797
*/
108-
allow_no_match?: boolean
109-
}
110-
body: {
98+
overall_score?: double | string
11199
/**
112-
* @deprecated 7.10.0
100+
* Returns overall buckets with timestamps after this time.
113101
*/
114-
allow_no_jobs?: boolean
102+
start?: Time
103+
/**
104+
* The number of top anomaly detection job bucket scores to be used in the
105+
* `overall_score` calculation.
106+
* @server_default 1
107+
*/
108+
top_n?: integer
115109
}
116110
}

0 commit comments

Comments
 (0)