Struct elasticsearch::watcher::Watcher[][src]

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

Namespace client for Watcher APIs

Implementations

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

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

Creates a new instance of Watcher

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

pub fn ack_watch<'b>(
    &'a self,
    parts: WatcherAckWatchParts<'b>
) -> WatcherAckWatch<'a, 'b, ()>
[src]

Watcher Ack Watch API

Acknowledges a watch, manually throttling the execution of the watch’s actions.

pub fn activate_watch<'b>(
    &'a self,
    parts: WatcherActivateWatchParts<'b>
) -> WatcherActivateWatch<'a, 'b, ()>
[src]

Watcher Activate Watch API

Activates a currently inactive watch.

pub fn deactivate_watch<'b>(
    &'a self,
    parts: WatcherDeactivateWatchParts<'b>
) -> WatcherDeactivateWatch<'a, 'b, ()>
[src]

Watcher Deactivate Watch API

Deactivates a currently active watch.

pub fn delete_watch<'b>(
    &'a self,
    parts: WatcherDeleteWatchParts<'b>
) -> WatcherDeleteWatch<'a, 'b>
[src]

Watcher Delete Watch API

Removes a watch from Watcher.

pub fn execute_watch<'b>(
    &'a self,
    parts: WatcherExecuteWatchParts<'b>
) -> WatcherExecuteWatch<'a, 'b, ()>
[src]

Watcher Execute Watch API

Forces the execution of a stored watch.

pub fn get_watch<'b>(
    &'a self,
    parts: WatcherGetWatchParts<'b>
) -> WatcherGetWatch<'a, 'b>
[src]

Watcher Get Watch API

Retrieves a watch by its ID.

pub fn put_watch<'b>(
    &'a self,
    parts: WatcherPutWatchParts<'b>
) -> WatcherPutWatch<'a, 'b, ()>
[src]

Watcher Put Watch API

Creates a new watch, or updates an existing one.

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

Watcher Query Watches API

Retrieves stored watches.

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

Watcher Start API

Starts Watcher if it is not already running.

pub fn stats<'b>(&'a self, parts: WatcherStatsParts<'b>) -> WatcherStats<'a, 'b>[src]

Watcher Stats API

Retrieves the current Watcher metrics.

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

Watcher Stop API

Stops Watcher if it is running.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Watcher<'a>

impl<'a> Send for Watcher<'a>

impl<'a> Sync for Watcher<'a>

impl<'a> Unpin for Watcher<'a>

impl<'a> !UnwindSafe for Watcher<'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.