Struct elasticsearch::slm::Slm
source · pub struct Slm<'a> { /* private fields */ }
Expand description
Namespace client for Snapshot Lifecycle Management APIs
Implementations
sourceimpl<'a> Slm<'a>
impl<'a> Slm<'a>
pub fn transport(&self) -> &Transport
sourcepub fn delete_lifecycle<'b>(
&'a self,
parts: SlmDeleteLifecycleParts<'b>
) -> SlmDeleteLifecycle<'a, 'b>
pub fn delete_lifecycle<'b>(
&'a self,
parts: SlmDeleteLifecycleParts<'b>
) -> SlmDeleteLifecycle<'a, 'b>
Deletes an existing snapshot lifecycle policy.
sourcepub fn execute_lifecycle<'b>(
&'a self,
parts: SlmExecuteLifecycleParts<'b>
) -> SlmExecuteLifecycle<'a, 'b, ()>
pub fn execute_lifecycle<'b>(
&'a self,
parts: SlmExecuteLifecycleParts<'b>
) -> SlmExecuteLifecycle<'a, 'b, ()>
Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time.
sourcepub fn execute_retention<'b>(&'a self) -> SlmExecuteRetention<'a, 'b, ()>
pub fn execute_retention<'b>(&'a self) -> SlmExecuteRetention<'a, 'b, ()>
Deletes any snapshots that are expired according to the policy’s retention rules.
sourcepub fn get_lifecycle<'b>(
&'a self,
parts: SlmGetLifecycleParts<'b>
) -> SlmGetLifecycle<'a, 'b>
pub fn get_lifecycle<'b>(
&'a self,
parts: SlmGetLifecycleParts<'b>
) -> SlmGetLifecycle<'a, 'b>
Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts.
sourcepub fn get_stats<'b>(&'a self) -> SlmGetStats<'a, 'b>
pub fn get_stats<'b>(&'a self) -> SlmGetStats<'a, 'b>
Returns global and policy-level statistics about actions taken by snapshot lifecycle management.
sourcepub fn get_status<'b>(&'a self) -> SlmGetStatus<'a, 'b>
pub fn get_status<'b>(&'a self) -> SlmGetStatus<'a, 'b>
Retrieves the status of snapshot lifecycle management (SLM).
sourcepub fn put_lifecycle<'b>(
&'a self,
parts: SlmPutLifecycleParts<'b>
) -> SlmPutLifecycle<'a, 'b, ()>
pub fn put_lifecycle<'b>(
&'a self,
parts: SlmPutLifecycleParts<'b>
) -> SlmPutLifecycle<'a, 'b, ()>
Creates or updates a snapshot lifecycle policy.
sourcepub fn start<'b>(&'a self) -> SlmStart<'a, 'b, ()>
pub fn start<'b>(&'a self) -> SlmStart<'a, 'b, ()>
Turns on snapshot lifecycle management (SLM).
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Slm<'a>
impl<'a> Send for Slm<'a>
impl<'a> Sync for Slm<'a>
impl<'a> Unpin for Slm<'a>
impl<'a> !UnwindSafe for Slm<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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