Skip to content

Commit 3e5d7e1

Browse files
committed
Introduce a few errors on purpose
1 parent 270dd4e commit 3e5d7e1

File tree

2 files changed

+1
-65
lines changed

2 files changed

+1
-65
lines changed

specification/ml/_types/Bucket.ts

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { Field, Id } from '@_types/common'
21-
import { double, long } from '@_types/Numeric'
21+
import { double } from '@_types/Numeric'
2222
import {
2323
DateTime,
2424
DurationValue,
@@ -35,27 +35,6 @@ export class BucketSummary {
3535
*/
3636
anomaly_score: double
3737
bucket_influencers: BucketInfluencer[]
38-
/**
39-
* The length of the bucket in seconds. This value matches the bucket span that is specified in the job.
40-
*/
41-
bucket_span: DurationValue<UnitSeconds>
42-
/**
43-
* The number of input data records processed in this bucket.
44-
*/
45-
event_count: long
46-
/**
47-
* The maximum anomaly score for any of the bucket influencers. This is the initial value that was calculated at the
48-
* time the bucket was processed.
49-
*/
50-
initial_anomaly_score: double
51-
/**
52-
* If true, this is an interim result. In other words, the results are calculated based on partial input data.
53-
*/
54-
is_interim: boolean
55-
/**
56-
* Identifier for the anomaly detection job.
57-
*/
58-
job_id: Id
5938
/**
6039
* The amount of time, in milliseconds, that it took to analyze the bucket contents and calculate results.
6140
*/
@@ -86,22 +65,6 @@ export class BucketInfluencer {
8665
* The length of the bucket in seconds. This value matches the bucket span that is specified in the job.
8766
*/
8867
bucket_span: DurationValue<UnitSeconds>
89-
/**
90-
* The field name of the influencer.
91-
*/
92-
influencer_field_name: Field
93-
/**
94-
* The score between 0-100 for each bucket influencer. This score is the initial value that was calculated at the
95-
* time the bucket was processed. */
96-
initial_anomaly_score: double
97-
/**
98-
* If true, this is an interim result. In other words, the results are calculated based on partial input data.
99-
*/
100-
is_interim: boolean
101-
/**
102-
* Identifier for the anomaly detection job.
103-
*/
104-
job_id: Id
10568
/**
10669
* The probability that the bucket has this behavior, in the range 0 to 1. This value can be held to a high precision
10770
* of over 300 decimal places, so the `anomaly_score` is provided as a human-readable and friendly interpretation of

specification/snapshot/get/SnapshotGetRequest.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,6 @@ export interface Request extends RequestBase {
7474
* @availability serverless
7575
*/
7676
from_sort_value?: string
77-
/**
78-
* If `false`, the request returns an error for any snapshots that are unavailable.
79-
* @server_default false
80-
*/
81-
ignore_unavailable?: boolean
82-
/**
83-
* If `true`, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index.
84-
* The default is `false`, meaning that this information is omitted.
85-
* @server_default false
86-
* @availability stack since=7.13.0
87-
* @availability serverless
88-
*/
89-
index_details?: boolean
90-
/**
91-
* If `true`, the response includes the name of each index in each snapshot.
92-
* @server_default true
93-
* @availability stack since=8.3.0
94-
* @availability serverless
95-
*/
96-
index_names?: boolean
9777
/**
9878
* If `true`, the response includes the repository name in each snapshot.
9979
* @server_default true
@@ -148,13 +128,6 @@ export interface Request extends RequestBase {
148128
* @availability serverless
149129
*/
150130
sort?: SnapshotSort
151-
/**
152-
* Only return snapshots with a state found in the given comma-separated list of snapshot states.
153-
* The default is all snapshot states.
154-
* @availability stack since=9.1.0
155-
* @availability serverless
156-
*/
157-
state?: SnapshotState | SnapshotState[]
158131
/**
159132
* If `true`, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.
160133
*

0 commit comments

Comments
 (0)