Struct elasticsearch::ilm::Ilm
source · [−]pub struct Ilm<'a> { /* private fields */ }
Expand description
Namespace client for Index Lifecycle Management APIs
Implementations
sourceimpl<'a> Ilm<'a>
impl<'a> Ilm<'a>
pub fn transport(&self) -> &Transport
sourcepub fn delete_lifecycle<'b>(
&'a self,
parts: IlmDeleteLifecycleParts<'b>
) -> IlmDeleteLifecycle<'a, 'b>
pub fn delete_lifecycle<'b>(
&'a self,
parts: IlmDeleteLifecycleParts<'b>
) -> IlmDeleteLifecycle<'a, 'b>
Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
sourcepub fn explain_lifecycle<'b>(
&'a self,
parts: IlmExplainLifecycleParts<'b>
) -> IlmExplainLifecycle<'a, 'b>
pub fn explain_lifecycle<'b>(
&'a self,
parts: IlmExplainLifecycleParts<'b>
) -> IlmExplainLifecycle<'a, 'b>
Retrieves information about the index’s current lifecycle state, such as the currently executing phase, action, and step.
sourcepub fn get_lifecycle<'b>(
&'a self,
parts: IlmGetLifecycleParts<'b>
) -> IlmGetLifecycle<'a, 'b>
pub fn get_lifecycle<'b>(
&'a self,
parts: IlmGetLifecycleParts<'b>
) -> IlmGetLifecycle<'a, 'b>
Returns the specified policy definition. Includes the policy version and last modified date.
sourcepub fn get_status<'b>(&'a self) -> IlmGetStatus<'a, 'b>
pub fn get_status<'b>(&'a self) -> IlmGetStatus<'a, 'b>
Retrieves the current index lifecycle management (ILM) status.
sourcepub fn migrate_to_data_tiers<'b>(&'a self) -> IlmMigrateToDataTiers<'a, 'b, ()>
pub fn migrate_to_data_tiers<'b>(&'a self) -> IlmMigrateToDataTiers<'a, 'b, ()>
Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing
sourcepub fn move_to_step<'b>(
&'a self,
parts: IlmMoveToStepParts<'b>
) -> IlmMoveToStep<'a, 'b, ()>
pub fn move_to_step<'b>(
&'a self,
parts: IlmMoveToStepParts<'b>
) -> IlmMoveToStep<'a, 'b, ()>
Manually moves an index into the specified step and executes that step.
sourcepub fn put_lifecycle<'b>(
&'a self,
parts: IlmPutLifecycleParts<'b>
) -> IlmPutLifecycle<'a, 'b, ()>
pub fn put_lifecycle<'b>(
&'a self,
parts: IlmPutLifecycleParts<'b>
) -> IlmPutLifecycle<'a, 'b, ()>
Creates a lifecycle policy
sourcepub fn remove_policy<'b>(
&'a self,
parts: IlmRemovePolicyParts<'b>
) -> IlmRemovePolicy<'a, 'b, ()>
pub fn remove_policy<'b>(
&'a self,
parts: IlmRemovePolicyParts<'b>
) -> IlmRemovePolicy<'a, 'b, ()>
Removes the assigned lifecycle policy and stops managing the specified index
sourcepub fn retry<'b>(&'a self, parts: IlmRetryParts<'b>) -> IlmRetry<'a, 'b, ()>
pub fn retry<'b>(&'a self, parts: IlmRetryParts<'b>) -> IlmRetry<'a, 'b, ()>
Retries executing the policy for an index that is in the ERROR step.
sourcepub fn start<'b>(&'a self) -> IlmStart<'a, 'b, ()>
pub fn start<'b>(&'a self) -> IlmStart<'a, 'b, ()>
Start the index lifecycle management (ILM) plugin.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Ilm<'a>
impl<'a> Send for Ilm<'a>
impl<'a> Sync for Ilm<'a>
impl<'a> Unpin for Ilm<'a>
impl<'a> !UnwindSafe for Ilm<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more