Skip to content

Commit 80bf8d7

Browse files
committed
More descriptions
1 parent 6fdc68c commit 80bf8d7

21 files changed

+767
-289
lines changed

output/schema/schema.json

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

output/typescript/types.ts

Lines changed: 15 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
@@ -664,6 +664,8 @@ slm-api-start,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/s
664664
slm-api-stop,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/slm-api-stop.html
665665
snapshot-create,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/snapshots-take-snapshot.html
666666
snapshot-repository-api-create,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/put-snapshot-repo-api.html
667+
snapshot-restore-amend-replacement,https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html#appendReplacement-java.lang.StringBuffer-java.lang.String-
668+
snapshot-restore-feature-state,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/snapshot-restore.html#feature-state
667669
sort-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/sort-processor.html
668670
sort-search-results,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/sort-search-results.html
669671
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

specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ export class Response {
2727
}
2828

2929
export class CleanupRepositoryResults {
30-
/** Number of binary large objects (blobs) removed during cleanup. */
30+
/**
31+
* The number of binary large objects (blobs) removed from the snapshot repository during cleanup operations.
32+
* A non-zero value indicates that unreferenced blobs were found and subsequently cleaned up.
33+
*/
3134
deleted_blobs: long
32-
/** Number of bytes freed by cleanup operations. */
35+
/** The number of bytes freed by cleanup operations. */
3336
deleted_bytes: long
3437
}

specification/snapshot/clone/SnapshotCloneRequest.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,39 @@ import { Duration } from '@_types/Time'
3131
*/
3232
export interface Request extends RequestBase {
3333
path_parts: {
34+
/**
35+
* The name of the snapshot repository that both source and target snapshot belong to.
36+
*/
3437
repository: Name
38+
/**
39+
* The source snapshot name.
40+
*/
3541
snapshot: Name
42+
/**
43+
* The target snapshot name.
44+
*/
3645
target_snapshot: Name
3746
}
3847
query_parameters: {
48+
/**
49+
* The period to wait for the master node.
50+
* If the master node is not available before the timeout expires, the request fails and returns an error.
51+
* To indicate that the request should never timeout, set it to `-1`.
52+
* @server_default 30s
53+
*/
3954
master_timeout?: Duration
55+
/**
56+
* The period of time to wait for a response.
57+
* If no response is received before the timeout expires, the request fails and returns an error.
58+
* @server_default 30s
59+
*/
4060
timeout?: Duration
4161
}
4262
body: {
63+
/**
64+
* A comma-separated list of indices to include in the snapshot.
65+
* Multi-target syntax is supported.
66+
*/
4367
indices: string
4468
}
4569
}

0 commit comments

Comments
 (0)