Struct elasticsearch::slm::Slm[][src]

pub struct Slm<'a> { /* fields omitted */ }

Namespace client for Snapshot Lifecycle Management APIs

Implementations

impl<'a> Slm<'a>[src]

pub fn new(transport: &'a Transport) -> Self[src]

Creates a new instance of Slm

pub fn transport(&self) -> &Transport[src]

pub fn delete_lifecycle<'b>(
    &'a self,
    parts: SlmDeleteLifecycleParts<'b>
) -> SlmDeleteLifecycle<'a, 'b>
[src]

Slm Delete Lifecycle API

Deletes an existing snapshot lifecycle policy.

pub fn execute_lifecycle<'b>(
    &'a self,
    parts: SlmExecuteLifecycleParts<'b>
) -> SlmExecuteLifecycle<'a, 'b, ()>
[src]

Slm Execute Lifecycle API

Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time.

pub fn execute_retention<'b>(&'a self) -> SlmExecuteRetention<'a, 'b, ()>[src]

Slm Execute Retention API

Deletes any snapshots that are expired according to the policy’s retention rules.

pub fn get_lifecycle<'b>(
    &'a self,
    parts: SlmGetLifecycleParts<'b>
) -> SlmGetLifecycle<'a, 'b>
[src]

Slm Get Lifecycle API

Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts.

pub fn get_stats<'b>(&'a self) -> SlmGetStats<'a, 'b>[src]

Slm Get Stats API

Returns global and policy-level statistics about actions taken by snapshot lifecycle management.

pub fn get_status<'b>(&'a self) -> SlmGetStatus<'a, 'b>[src]

Slm Get Status API

Retrieves the status of snapshot lifecycle management (SLM).

pub fn put_lifecycle<'b>(
    &'a self,
    parts: SlmPutLifecycleParts<'b>
) -> SlmPutLifecycle<'a, 'b, ()>
[src]

Slm Put Lifecycle API

Creates or updates a snapshot lifecycle policy.

pub fn start<'b>(&'a self) -> SlmStart<'a, 'b, ()>[src]

Slm Start API

Turns on snapshot lifecycle management (SLM).

pub fn stop<'b>(&'a self) -> SlmStop<'a, 'b, ()>[src]

Slm Stop API

Turns off 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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.