Skip to content

Commit 46e1c13

Browse files
authored
Fix ccr.get_auto_follow_pattern response (#695)
1 parent f0a4931 commit 46e1c13

File tree

4 files changed

+125
-12
lines changed

4 files changed

+125
-12
lines changed

output/schema/schema.json

Lines changed: 45 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

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

specification/ccr/get_auto_follow_pattern/types.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,25 @@ export class AutoFollowPattern {
2727

2828
export class AutoFollowPatternSummary {
2929
active: boolean
30+
/**
31+
* The remote cluster containing the leader indices to match against.
32+
*/
3033
remote_cluster: string
34+
/**
35+
* The name of follower index.
36+
*/
3137
follow_index_pattern?: IndexPattern
38+
/**
39+
* An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.
40+
*/
3241
leader_index_patterns: IndexPatterns
42+
/**
43+
* An array of simple index patterns that can be used to exclude indices from being auto-followed.
44+
* @since 7.14.0
45+
*/
46+
leader_index_exclusion_patterns: IndexPatterns
47+
/**
48+
* The maximum number of outstanding reads requests from the remote cluster.
49+
*/
3350
max_outstanding_read_requests: integer
3451
}

specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts

Lines changed: 61 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,82 @@ import { Time } from '@_types/Time'
3131
*/
3232
export interface Request extends RequestBase {
3333
path_parts: {
34-
name: Name // param name in docs: auto_follow_pattern_name
34+
/**
35+
* The name of the collection of auto-follow patterns.
36+
*/
37+
name: Name
3538
}
3639
body: {
40+
/**
41+
* The remote cluster containing the leader indices to match against.
42+
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-remote-clusters.html
43+
*/
3744
remote_cluster: string
45+
/**
46+
* The name of follower index. The template {{leader_index}} can be used to derive the name of the follower index from the name of the leader index. When following a data stream, use {{leader_index}}; CCR does not support changes to the names of a follower data stream’s backing indices.
47+
*/
3848
follow_index_pattern?: IndexPattern
49+
/**
50+
* An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.
51+
*/
3952
leader_index_patterns?: IndexPatterns
40-
/** @server_default 12 */
53+
/**
54+
* An array of simple index patterns that can be used to exclude indices from being auto-followed. Indices in the remote cluster whose names are matching one or more leader_index_patterns and one or more leader_index_exclusion_patterns won’t be followed.
55+
*/
56+
leader_index_exclusion_patterns?: IndexPatterns
57+
/**
58+
* The maximum number of outstanding reads requests from the remote cluster.
59+
* @server_default 12
60+
*/
4161
max_outstanding_read_requests?: integer
62+
/**
63+
* Settings to override from the leader index. Note that certain settings can not be overrode (e.g., index.number_of_shards).
64+
*/
4265
settings?: Dictionary<string, UserDefinedValue>
43-
/** @server_default 9 */
66+
/**
67+
* The maximum number of outstanding reads requests from the remote cluster.
68+
* @server_default 9
69+
*/
4470
max_outstanding_write_requests?: integer
45-
/** @server_default 1m */
71+
/**
72+
* The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. Then the follower will immediately attempt to read from the leader again.
73+
* @server_default 1m
74+
*/
4675
read_poll_timeout?: Time
47-
/** @server_default 5120 */
76+
/**
77+
* The maximum number of operations to pull per read from the remote cluster.
78+
* @server_default 5120
79+
*/
4880
max_read_request_operation_count?: integer
49-
/** @server_default 32mb */
81+
/**
82+
* The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.
83+
* @server_default 32mb
84+
*/
5085
max_read_request_size?: ByteSize
51-
/** @server_default 500ms */
86+
/**
87+
* The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when retrying.
88+
* @server_default 500ms
89+
*/
5290
max_retry_delay?: Time
53-
/** @server_default 2147483647 */
91+
/**
92+
* The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be deferred until the number of queued operations goes below the limit.
93+
* @server_default 2147483647
94+
*/
5495
max_write_buffer_count?: integer
55-
/** @server_default 512mb */
96+
/**
97+
* The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be deferred until the total bytes of queued operations goes below the limit.
98+
* @server_default 512mb
99+
*/
56100
max_write_buffer_size?: ByteSize
57-
/** @server_default 5120 */
101+
/**
102+
* The maximum number of operations per bulk write request executed on the follower.
103+
* @server_default 5120
104+
*/
58105
max_write_request_operation_count?: integer
59-
/** @server_default 9223372036854775807b */
106+
/**
107+
* The maximum total bytes of operations per bulk write request executed on the follower.
108+
* @server_default 9223372036854775807b
109+
*/
60110
max_write_request_size?: ByteSize
61111
}
62112
}

0 commit comments

Comments
 (0)