Struct elasticsearch::cluster::Cluster
source · pub struct Cluster<'a> { /* private fields */ }
Expand description
Namespace client for Cluster APIs
Implementations
sourceimpl<'a> Cluster<'a>
impl<'a> Cluster<'a>
pub fn transport(&self) -> &Transport
sourcepub fn allocation_explain<'b>(&'a self) -> ClusterAllocationExplain<'a, 'b, ()>
pub fn allocation_explain<'b>(&'a self) -> ClusterAllocationExplain<'a, 'b, ()>
Cluster Allocation Explain API
Provides explanations for shard allocations in the cluster.
sourcepub fn delete_component_template<'b>(
&'a self,
parts: ClusterDeleteComponentTemplateParts<'b>
) -> ClusterDeleteComponentTemplate<'a, 'b>
pub fn delete_component_template<'b>(
&'a self,
parts: ClusterDeleteComponentTemplateParts<'b>
) -> ClusterDeleteComponentTemplate<'a, 'b>
Cluster Delete Component Template API
Deletes a component template
sourcepub fn delete_voting_config_exclusions<'b>(
&'a self
) -> ClusterDeleteVotingConfigExclusions<'a, 'b>
pub fn delete_voting_config_exclusions<'b>(
&'a self
) -> ClusterDeleteVotingConfigExclusions<'a, 'b>
Cluster Delete Voting Config Exclusions API
Clears cluster voting config exclusions.
sourcepub fn exists_component_template<'b>(
&'a self,
parts: ClusterExistsComponentTemplateParts<'b>
) -> ClusterExistsComponentTemplate<'a, 'b>
pub fn exists_component_template<'b>(
&'a self,
parts: ClusterExistsComponentTemplateParts<'b>
) -> ClusterExistsComponentTemplate<'a, 'b>
Cluster Exists Component Template API
Returns information about whether a particular component template exist
sourcepub fn get_component_template<'b>(
&'a self,
parts: ClusterGetComponentTemplateParts<'b>
) -> ClusterGetComponentTemplate<'a, 'b>
pub fn get_component_template<'b>(
&'a self,
parts: ClusterGetComponentTemplateParts<'b>
) -> ClusterGetComponentTemplate<'a, 'b>
Cluster Get Component Template API
Returns one or more component templates
sourcepub fn get_settings<'b>(&'a self) -> ClusterGetSettings<'a, 'b>
pub fn get_settings<'b>(&'a self) -> ClusterGetSettings<'a, 'b>
Returns cluster settings.
sourcepub fn health<'b>(
&'a self,
parts: ClusterHealthParts<'b>
) -> ClusterHealth<'a, 'b>
pub fn health<'b>(
&'a self,
parts: ClusterHealthParts<'b>
) -> ClusterHealth<'a, 'b>
Returns basic information about the health of the cluster.
sourcepub fn pending_tasks<'b>(&'a self) -> ClusterPendingTasks<'a, 'b>
pub fn pending_tasks<'b>(&'a self) -> ClusterPendingTasks<'a, 'b>
Returns a list of any cluster-level changes (e.g. create index, update mapping, allocate or fail shard) which have not yet been executed.
sourcepub fn post_voting_config_exclusions<'b>(
&'a self
) -> ClusterPostVotingConfigExclusions<'a, 'b, ()>
pub fn post_voting_config_exclusions<'b>(
&'a self
) -> ClusterPostVotingConfigExclusions<'a, 'b, ()>
Cluster Post Voting Config Exclusions API
Updates the cluster voting config exclusions by node ids or node names.
sourcepub fn put_component_template<'b>(
&'a self,
parts: ClusterPutComponentTemplateParts<'b>
) -> ClusterPutComponentTemplate<'a, 'b, ()>
pub fn put_component_template<'b>(
&'a self,
parts: ClusterPutComponentTemplateParts<'b>
) -> ClusterPutComponentTemplate<'a, 'b, ()>
Cluster Put Component Template API
Creates or updates a component template
sourcepub fn put_settings<'b>(&'a self) -> ClusterPutSettings<'a, 'b, ()>
pub fn put_settings<'b>(&'a self) -> ClusterPutSettings<'a, 'b, ()>
Updates the cluster settings.
sourcepub fn remote_info<'b>(&'a self) -> ClusterRemoteInfo<'a, 'b>
pub fn remote_info<'b>(&'a self) -> ClusterRemoteInfo<'a, 'b>
Returns the information about configured remote clusters.
sourcepub fn reroute<'b>(&'a self) -> ClusterReroute<'a, 'b, ()>
pub fn reroute<'b>(&'a self) -> ClusterReroute<'a, 'b, ()>
Allows to manually change the allocation of individual shards in the cluster.
sourcepub fn state<'b>(&'a self, parts: ClusterStateParts<'b>) -> ClusterState<'a, 'b>
pub fn state<'b>(&'a self, parts: ClusterStateParts<'b>) -> ClusterState<'a, 'b>
Returns a comprehensive information about the state of the cluster.
sourcepub fn stats<'b>(&'a self, parts: ClusterStatsParts<'b>) -> ClusterStats<'a, 'b>
pub fn stats<'b>(&'a self, parts: ClusterStatsParts<'b>) -> ClusterStats<'a, 'b>
Returns high-level overview of cluster statistics.