forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: Introduce cross-cluster replication API docs (elastic#34726) Responses can use Writeable.Reader interface (elastic#34655) SQL: Provide null-safe scripts for Not and Neg (elastic#34877) Fix put/resume follow request parsing (elastic#34913) Fix line length for org.elasticsearch.common.* files (elastic#34888) [ML] Extract common native process base class (elastic#34856) Refactor children aggregator into a generic ParentJoinAggregator (elastic#34845) [Style] Fix line lengths in action.admin.indices (elastic#34890) HLRC - add support for source exists API (elastic#34519)
- Loading branch information
Showing
243 changed files
with
3,287 additions
and
1,526 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
docs/reference/ccr/apis/auto-follow/delete-auto-follow-pattern.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
[role="xpack"] | ||
[testenv="platinum"] | ||
[[ccr-delete-auto-follow-pattern]] | ||
=== Delete Auto-Follow Pattern API | ||
++++ | ||
<titleabbrev>Delete Auto-Follow Pattern</titleabbrev> | ||
++++ | ||
|
||
Delete auto-follow patterns. | ||
|
||
==== Description | ||
|
||
This API deletes a configured auto-follow pattern collection. | ||
|
||
==== Request | ||
|
||
////////////////////////// | ||
[source,js] | ||
-------------------------------------------------- | ||
PUT /_ccr/auto_follow/my_auto_follow_pattern | ||
{ | ||
"remote_cluster" : "remote_cluster", | ||
"leader_index_patterns" : | ||
[ | ||
"leader_index" | ||
], | ||
"follow_index_pattern" : "{{leader_index}}-follower" | ||
} | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST[setup:remote_cluster] | ||
// TESTSETUP | ||
////////////////////////// | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
DELETE /_ccr/auto_follow/<auto_follow_pattern_name> | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST[s/<auto_follow_pattern_name>/my_auto_follow_pattern/] | ||
|
||
==== Path Parameters | ||
`auto_follow_pattern_name` (required):: | ||
(string) specifies the auto-follow pattern collection to delete | ||
|
||
==== Example | ||
|
||
This example deletes an auto-follow pattern collection named | ||
`my_auto_follow_pattern`: | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
DELETE /_ccr/auto_follow/my_auto_follow_pattern | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST[setup:remote_cluster] | ||
|
||
The API returns the following result: | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
{ | ||
"acknowledged" : true | ||
} | ||
-------------------------------------------------- | ||
// TESTRESPONSE |
93 changes: 93 additions & 0 deletions
93
docs/reference/ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
[role="xpack"] | ||
[testenv="platinum"] | ||
[[ccr-get-auto-follow-pattern]] | ||
=== Get Auto-Follow Pattern API | ||
++++ | ||
<titleabbrev>Get Auto-Follow Pattern</titleabbrev> | ||
++++ | ||
|
||
Get auto-follow patterns. | ||
|
||
==== Description | ||
|
||
This API gets configured auto-follow patterns. This API will return the | ||
specified auto-follow pattern collection. | ||
|
||
==== Request | ||
|
||
////////////////////////// | ||
[source,js] | ||
-------------------------------------------------- | ||
PUT /_ccr/auto_follow/my_auto_follow_pattern | ||
{ | ||
"remote_cluster" : "remote_cluster", | ||
"leader_index_patterns" : | ||
[ | ||
"leader_index*" | ||
], | ||
"follow_index_pattern" : "{{leader_index}}-follower" | ||
} | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST[setup:remote_cluster] | ||
// TESTSETUP | ||
[source,js] | ||
-------------------------------------------------- | ||
DELETE /_ccr/auto_follow/my_auto_follow_pattern | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST | ||
// TEARDOWN | ||
////////////////////////// | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
GET /_ccr/auto_follow/ | ||
-------------------------------------------------- | ||
// CONSOLE | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
GET /_ccr/auto_follow/<auto_follow_pattern_name> | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST[s/<auto_follow_pattern_name>/my_auto_follow_pattern/] | ||
|
||
==== Path Parameters | ||
`auto_follow_pattern_name`:: | ||
(string) specifies the auto-follow pattern collection that you want to | ||
retrieve; if you do not specify a name, the API returns information for all | ||
collections | ||
|
||
==== Example | ||
|
||
This example retrieves information about an auto-follow pattern collection | ||
named `my_auto_follow_pattern`: | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
GET /_ccr/auto_follow/my_auto_follow_pattern | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST[setup:remote_cluster] | ||
|
||
The API returns the following result: | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
{ | ||
"my_auto_follow_pattern" : | ||
{ | ||
"remote_cluster" : "remote_cluster", | ||
"leader_index_patterns" : | ||
[ | ||
"leader_index*" | ||
], | ||
"follow_index_pattern" : "{{leader_index}}-follower" | ||
} | ||
} | ||
-------------------------------------------------- | ||
// TESTRESPONSE |
46 changes: 46 additions & 0 deletions
46
docs/reference/ccr/apis/auto-follow/get-auto-follow-stats.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[role="xpack"] | ||
[testenv="platinum"] | ||
[[ccr-get-auto-follow-stats]] | ||
=== Get Auto-Follow Stats API | ||
++++ | ||
<titleabbrev>Get Auto-Follow Stats</titleabbrev> | ||
++++ | ||
|
||
Get auto-follow stats. | ||
|
||
==== Description | ||
|
||
This API gets stats about auto-follow patterns. | ||
|
||
==== Request | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
GET /_ccr/auto_follow/stats | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST | ||
|
||
==== Example | ||
|
||
This example retrieves stats about auto-follow patterns: | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
GET /_ccr/auto_follow/stats | ||
-------------------------------------------------- | ||
// CONSOLE | ||
// TEST | ||
|
||
The API returns the following result: | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
{ | ||
"number_of_successful_follow_indices" : 16, | ||
"number_of_failed_follow_indices" : 0, | ||
"number_of_failed_remote_cluster_state_requests" : 0, | ||
"recent_auto_follow_errors" : [ ] | ||
} | ||
-------------------------------------------------- | ||
// TESTRESPONSE[s/"number_of_successful_follow_indices" : 16/"number_of_successful_follow_indices" : $body.number_of_successful_follow_indices/] |
Oops, something went wrong.