Module: Elasticsearch::API::CrossClusterReplication::Actions
- Included in:
- CrossClusterReplicationClient
- Defined in:
- lib/elasticsearch/api/namespace/cross_cluster_replication.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb,
lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb more...
Instance Method Summary collapse
-
#delete_auto_follow_pattern(arguments = {}) ⇒ Object
Deletes auto-follow patterns.
-
#follow(arguments = {}) ⇒ Object
Creates a new follower index configured to follow the referenced leader index.
-
#follow_info(arguments = {}) ⇒ Object
Retrieves information about all follower indices, including parameters and status for each follower index.
-
#follow_stats(arguments = {}) ⇒ Object
Retrieves follower stats.
-
#forget_follower(arguments = {}) ⇒ Object
Removes the follower retention leases from the leader.
-
#get_auto_follow_pattern(arguments = {}) ⇒ Object
Gets configured auto-follow patterns.
-
#pause_auto_follow_pattern(arguments = {}) ⇒ Object
Pauses an auto-follow pattern.
-
#pause_follow(arguments = {}) ⇒ Object
Pauses a follower index.
-
#put_auto_follow_pattern(arguments = {}) ⇒ Object
Creates a new named collection of auto-follow patterns against a specified remote cluster.
-
#resume_auto_follow_pattern(arguments = {}) ⇒ Object
Resumes an auto-follow pattern that has been paused.
-
#resume_follow(arguments = {}) ⇒ Object
Resumes a follower index that has been paused.
-
#stats(arguments = {}) ⇒ Object
Gets all stats related to cross-cluster replication.
-
#unfollow(arguments = {}) ⇒ Object
Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.
Instance Method Details
permalink #delete_auto_follow_pattern(arguments = {}) ⇒ Object
Deletes auto-follow patterns.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb', line 32 def delete_auto_follow_pattern(arguments = {}) raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE path = "_ccr/auto_follow/#{Utils.__listify(_name)}" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #follow(arguments = {}) ⇒ Object
Creates a new follower index configured to follow the referenced leader index.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb', line 34 def follow(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_PUT path = "#{Utils.__listify(_index)}/_ccr/follow" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #follow_info(arguments = {}) ⇒ Object
Retrieves information about all follower indices, including parameters and status for each follower index
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb', line 32 def follow_info(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = "#{Utils.__listify(_index)}/_ccr/info" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #follow_stats(arguments = {}) ⇒ Object
Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb', line 32 def follow_stats(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = "#{Utils.__listify(_index)}/_ccr/stats" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #forget_follower(arguments = {}) ⇒ Object
Removes the follower retention leases from the leader.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb', line 33 def forget_follower(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = "#{Utils.__listify(_index)}/_ccr/forget_follower" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #get_auto_follow_pattern(arguments = {}) ⇒ Object
Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb', line 32 def get_auto_follow_pattern(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_GET path = if _name "_ccr/auto_follow/#{Utils.__listify(_name)}" else "_ccr/auto_follow" end params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #pause_auto_follow_pattern(arguments = {}) ⇒ Object
Pauses an auto-follow pattern
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb', line 32 def pause_auto_follow_pattern(arguments = {}) raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST path = "_ccr/auto_follow/#{Utils.__listify(_name)}/pause" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #pause_follow(arguments = {}) ⇒ Object
Pauses a follower index. The follower index will not fetch any additional operations from the leader index.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb', line 32 def pause_follow(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = "#{Utils.__listify(_index)}/_ccr/pause_follow" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #put_auto_follow_pattern(arguments = {}) ⇒ Object
Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb', line 33 def put_auto_follow_pattern(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT path = "_ccr/auto_follow/#{Utils.__listify(_name)}" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #resume_auto_follow_pattern(arguments = {}) ⇒ Object
Resumes an auto-follow pattern that has been paused
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb', line 32 def resume_auto_follow_pattern(arguments = {}) raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST path = "_ccr/auto_follow/#{Utils.__listify(_name)}/resume" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #resume_follow(arguments = {}) ⇒ Object
Resumes a follower index that has been paused
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb', line 33 def resume_follow(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = "#{Utils.__listify(_index)}/_ccr/resume_follow" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #stats(arguments = {}) ⇒ Object
Gets all stats related to cross-cluster replication.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb', line 31 def stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = "_ccr/stats" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
permalink #unfollow(arguments = {}) ⇒ Object
Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb', line 32 def unfollow(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = "#{Utils.__listify(_index)}/_ccr/unfollow" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |