Skip to content

Commit 57a0f4e

Browse files
committed
More descriptions
1 parent 96abe60 commit 57a0f4e

23 files changed

+944
-400
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 158 additions & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 296 additions & 198 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,12 @@
398398
],
399399
"response": []
400400
},
401+
"snapshot.clone": {
402+
"request": [
403+
"Request: query parameter 'timeout' does not exist in the json spec"
404+
],
405+
"response": []
406+
},
401407
"snapshot.delete": {
402408
"request": [
403409
"Request: missing json spec query parameter 'wait_for_completion'"

output/typescript/types.ts

Lines changed: 16 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ slm-api-start,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/s
667667
slm-api-stop,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/slm-api-stop.html
668668
snapshot-create,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/snapshots-take-snapshot.html
669669
snapshot-repository-api-create,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/put-snapshot-repo-api.html
670+
snapshot-restore-amend-replacement,https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html#appendReplacement-java.lang.StringBuffer-java.lang.String-
671+
snapshot-restore-feature-state,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/snapshot-restore.html#feature-state
670672
sort-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/sort-processor.html
671673
sort-search-results,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/sort-search-results.html
672674
sort-tiebreaker,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql.html#eql-search-specify-a-sort-tiebreaker

specification/snapshot/_types/SnapshotShardsStats.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,28 @@
2020
import { long } from '@_types/Numeric'
2121

2222
export class ShardsStats {
23+
/**
24+
* The number of shards that initialized, started, and finalized successfully.
25+
*/
2326
done: long
27+
/**
28+
* The number of shards that failed to be included in the snapshot.
29+
*/
2430
failed: long
31+
/**
32+
* The number of shards that are finalizing but are not done.
33+
*/
2534
finalizing: long
35+
/**
36+
* The number of shards that are still initializing.
37+
*/
2638
initializing: long
39+
/**
40+
* The number of shards that have started but are not finalized.
41+
*/
2742
started: long
43+
/**
44+
* The total number of shards included in the snapshot.
45+
*/
2846
total: long
2947
}

specification/snapshot/_types/SnapshotShardsStatsStage.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
*/
1919

2020
export enum ShardsStatsStage {
21-
/** Number of shards in the snapshot that were successfully stored in the repository. */
21+
/** The number of shards in the snapshot that were successfully stored in the repository. */
2222
DONE,
23-
/** Number of shards in the snapshot that were not successfully stored in the repository. */
23+
/** The number of shards in the snapshot that were not successfully stored in the repository. */
2424
FAILURE,
25-
/** Number of shards in the snapshot that are in the finalizing stage of being stored in the repository. */
25+
/** The number of shards in the snapshot that are in the finalizing stage of being stored in the repository. */
2626
FINALIZE,
27-
/** Number of shards in the snapshot that are in the initializing stage of being stored in the repository. */
27+
/** The number of shards in the snapshot that are in the initializing stage of being stored in the repository. */
2828
INIT,
29-
/** Number of shards in the snapshot that are in the started stage of being stored in the repository. */
29+
/** The number of shards in the snapshot that are in the started stage of being stored in the repository. */
3030
STARTED
3131
}

specification/snapshot/_types/SnapshotStats.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,22 @@ import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time'
2121
import { FileCountSnapshotStats } from './FileCountSnapshotStats'
2222

2323
export class SnapshotStats {
24+
/**
25+
* The number and size of files that still need to be copied as part of the incremental snapshot.
26+
* For completed snapshots, this property indicates the number and size of files that were not already in the repository and were copied as part of the incremental snapshot.
27+
*/
2428
incremental: FileCountSnapshotStats
29+
/**
30+
* The time, in milliseconds, when the snapshot creation process started.
31+
*/
2532
start_time_in_millis: EpochTime<UnitMillis>
2633
time?: Duration
34+
/**
35+
* The total time, in milliseconds, that it took for the snapshot process to complete.
36+
*/
2737
time_in_millis: DurationValue<UnitMillis>
38+
/**
39+
* The total number and size of files that are referenced by the snapshot.
40+
*/
2841
total: FileCountSnapshotStats
2942
}

specification/snapshot/_types/SnapshotStatus.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,37 @@ import { ShardsStats } from './SnapshotShardsStats'
2424
import { SnapshotStats } from './SnapshotStats'
2525

2626
export class Status {
27+
/**
28+
* Indicates whether the current cluster state is included in the snapshot.
29+
*/
2730
include_global_state: boolean
2831
indices: Dictionary<string, SnapshotIndexStats>
32+
/**
33+
* The name of the repository that includes the snapshot.
34+
*/
2935
repository: string
36+
/**
37+
* Statistics for the shards in the snapshot.
38+
*/
3039
shards_stats: ShardsStats
40+
/**
41+
* The name of the snapshot.
42+
*/
3143
snapshot: string
44+
/**
45+
* The current snapshot state:
46+
*
47+
* * `FAILED`: The snapshot finished with an error and failed to store any data.
48+
* * `STARTED`: The snapshot is currently running.
49+
* * `SUCCESS`: The snapshot completed.
50+
*/
3251
state: string
52+
/**
53+
* Details about the number (`file_count`) and size (`size_in_bytes`) of files included in the snapshot.
54+
*/
3355
stats: SnapshotStats
56+
/**
57+
* The universally unique identifier (UUID) for the snapshot.
58+
*/
3459
uuid: Uuid
3560
}

specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,22 @@ import { Duration } from '@_types/Time'
3333
export interface Request extends RequestBase {
3434
path_parts: {
3535
/**
36-
* Snapshot repository to clean up.
36+
* The name of the snapshot repository to clean up.
3737
* @codegen_name name */
3838
repository: Name
3939
}
4040
query_parameters: {
4141
/**
42-
* Period to wait for a connection to the master node.
42+
* The period to wait for a connection to the master node.
43+
* If the master node is not available before the timeout expires, the request fails and returns an error.
44+
* To indicate that the request should never timeout, set it to `-1`
4345
* @server_default 30s
4446
*/
4547
master_timeout?: Duration
4648
/**
47-
* Period to wait for a response.
49+
* The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
50+
* If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.
51+
* To indicate that the request should never timeout, set it to `-1`.
4852
* @server_default 30s
4953
*/
5054
timeout?: Duration

0 commit comments

Comments
 (0)