Skip to content

Fix ccr.get_auto_follow_pattern response #695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions specification/ccr/get_auto_follow_pattern/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,25 @@ export class AutoFollowPattern {

export class AutoFollowPatternSummary {
active: boolean
/**
* The remote cluster containing the leader indices to match against.
*/
remote_cluster: string
/**
* The name of follower index.
*/
follow_index_pattern?: IndexPattern
/**
* An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.
*/
leader_index_patterns: IndexPatterns
/**
* An array of simple index patterns that can be used to exclude indices from being auto-followed.
* @since 7.14.0
*/
leader_index_exclusion_patterns: IndexPatterns
/**
* The maximum number of outstanding reads requests from the remote cluster.
*/
max_outstanding_read_requests: integer
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,82 @@ import { Time } from '@_types/Time'
*/
export interface Request extends RequestBase {
path_parts: {
name: Name // param name in docs: auto_follow_pattern_name
/**
* The name of the collection of auto-follow patterns.
*/
name: Name
}
body: {
/**
* The remote cluster containing the leader indices to match against.
* @doc_url https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-remote-clusters.html
*/
remote_cluster: string
/**
* 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.
*/
follow_index_pattern?: IndexPattern
/**
* An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.
*/
leader_index_patterns?: IndexPatterns
/** @server_default 12 */
/**
* 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.
*/
leader_index_exclusion_patterns?: IndexPatterns
/**
* The maximum number of outstanding reads requests from the remote cluster.
* @server_default 12
*/
max_outstanding_read_requests?: integer
/**
* Settings to override from the leader index. Note that certain settings can not be overrode (e.g., index.number_of_shards).
*/
settings?: Dictionary<string, UserDefinedValue>
/** @server_default 9 */
/**
* The maximum number of outstanding reads requests from the remote cluster.
* @server_default 9
*/
max_outstanding_write_requests?: integer
/** @server_default 1m */
/**
* 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.
* @server_default 1m
*/
read_poll_timeout?: Time
/** @server_default 5120 */
/**
* The maximum number of operations to pull per read from the remote cluster.
* @server_default 5120
*/
max_read_request_operation_count?: integer
/** @server_default 32mb */
/**
* The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.
* @server_default 32mb
*/
max_read_request_size?: ByteSize
/** @server_default 500ms */
/**
* The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when retrying.
* @server_default 500ms
*/
max_retry_delay?: Time
/** @server_default 2147483647 */
/**
* 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.
* @server_default 2147483647
*/
max_write_buffer_count?: integer
/** @server_default 512mb */
/**
* 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.
* @server_default 512mb
*/
max_write_buffer_size?: ByteSize
/** @server_default 5120 */
/**
* The maximum number of operations per bulk write request executed on the follower.
* @server_default 5120
*/
max_write_request_operation_count?: integer
/** @server_default 9223372036854775807b */
/**
* The maximum total bytes of operations per bulk write request executed on the follower.
* @server_default 9223372036854775807b
*/
max_write_request_size?: ByteSize
}
}