[−][src]Struct elasticsearch::cluster::ClusterHealth
Builder for the Cluster Health API. Returns basic information about the health of the cluster.
Methods
impl<'a, 'b> ClusterHealth<'a, 'b>
[src]
pub fn new(client: &'a Elasticsearch, parts: ClusterHealthParts<'b>) -> Self
[src]
Creates a new instance of ClusterHealth with the specified API parts
pub fn error_trace(self, error_trace: bool) -> Self
[src]
Include the stack trace of returned errors.
pub fn expand_wildcards(self, expand_wildcards: ExpandWildcards) -> Self
[src]
Whether to expand wildcard expression to concrete indices that are open, closed or both.
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
[src]
A comma-separated list of filters used to reduce the response.
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
[src]
Adds a HTTP header
pub fn human(self, human: bool) -> Self
[src]
Return human readable values for statistics.
pub fn level(self, level: Level) -> Self
[src]
Specify the level of detail for returned information
pub fn local(self, local: bool) -> Self
[src]
Return local information, do not retrieve the state from master node (default: false)
pub fn master_timeout(self, master_timeout: &'b str) -> Self
[src]
Explicit operation timeout for connection to master node
pub fn pretty(self, pretty: bool) -> Self
[src]
Pretty format the returned JSON response.
pub fn source(self, source: &'b str) -> Self
[src]
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
pub fn timeout(self, timeout: &'b str) -> Self
[src]
Explicit operation timeout
pub fn wait_for_active_shards(self, wait_for_active_shards: &'b str) -> Self
[src]
Wait until the specified number of shards is active
pub fn wait_for_events(self, wait_for_events: WaitForEvents) -> Self
[src]
Wait until all currently queued events with the given priority are processed
pub fn wait_for_no_initializing_shards(
self,
wait_for_no_initializing_shards: bool
) -> Self
[src]
self,
wait_for_no_initializing_shards: bool
) -> Self
Whether to wait until there are no initializing shards in the cluster
pub fn wait_for_no_relocating_shards(
self,
wait_for_no_relocating_shards: bool
) -> Self
[src]
self,
wait_for_no_relocating_shards: bool
) -> Self
Whether to wait until there are no relocating shards in the cluster
pub fn wait_for_nodes(self, wait_for_nodes: &'b str) -> Self
[src]
Wait until the specified number of nodes is available
pub fn wait_for_status(self, wait_for_status: WaitForStatus) -> Self
[src]
Wait until cluster is in a specific state
pub async fn send(self) -> Result<Response, Error>
[src]
Creates an asynchronous call to the Cluster Health API that can be awaited
Trait Implementations
impl<'a, 'b> Clone for ClusterHealth<'a, 'b>
[src]
fn clone(&self) -> ClusterHealth<'a, 'b>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, 'b> Debug for ClusterHealth<'a, 'b>
[src]
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for ClusterHealth<'a, 'b>
impl<'a, 'b> Send for ClusterHealth<'a, 'b>
impl<'a, 'b> Sync for ClusterHealth<'a, 'b>
impl<'a, 'b> Unpin for ClusterHealth<'a, 'b>
impl<'a, 'b> !UnwindSafe for ClusterHealth<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,