Struct Cat

Source
pub struct Cat<'a> { /* private fields */ }
Expand description

Namespace client for Cat APIs

Implementations§

Source§

impl<'a> Cat<'a>

Source

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

Creates a new instance of Cat

Source

pub fn transport(&self) -> &Transport

Source

pub fn aliases<'b>(&'a self, parts: CatAliasesParts<'b>) -> CatAliases<'a, 'b>

Cat Aliases API

Shows information about currently configured aliases to indices including filter and routing infos.

Source

pub fn allocation<'b>( &'a self, parts: CatAllocationParts<'b>, ) -> CatAllocation<'a, 'b>

Cat Allocation API

Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.

Source

pub fn component_templates<'b>( &'a self, parts: CatComponentTemplatesParts<'b>, ) -> CatComponentTemplates<'a, 'b>

Cat Component Templates API

Returns information about existing component_templates templates.

Source

pub fn count<'b>(&'a self, parts: CatCountParts<'b>) -> CatCount<'a, 'b>

Cat Count API

Provides quick access to the document count of the entire cluster, or individual indices.

Source

pub fn fielddata<'b>( &'a self, parts: CatFielddataParts<'b>, ) -> CatFielddata<'a, 'b>

Cat Fielddata API

Shows how much heap memory is currently being used by fielddata on every data node in the cluster.

Source

pub fn health<'b>(&'a self) -> CatHealth<'a, 'b>

Cat Health API

Returns a concise representation of the cluster health.

Source

pub fn help<'b>(&'a self) -> CatHelp<'a, 'b>

Cat Help API

Returns help for the Cat APIs.

Source

pub fn indices<'b>(&'a self, parts: CatIndicesParts<'b>) -> CatIndices<'a, 'b>

Cat Indices API

Returns information about indices: number of primaries and replicas, document counts, disk size, …

Source

pub fn master<'b>(&'a self) -> CatMaster<'a, 'b>

Cat Master API

Returns information about the master node.

Source

pub fn ml_data_frame_analytics<'b>( &'a self, parts: CatMlDataFrameAnalyticsParts<'b>, ) -> CatMlDataFrameAnalytics<'a, 'b>

Cat Ml Data Frame Analytics API

Gets configuration and usage information about data frame analytics jobs.

Source

pub fn ml_datafeeds<'b>( &'a self, parts: CatMlDatafeedsParts<'b>, ) -> CatMlDatafeeds<'a, 'b>

Cat Ml Datafeeds API

Gets configuration and usage information about datafeeds.

Source

pub fn ml_jobs<'b>(&'a self, parts: CatMlJobsParts<'b>) -> CatMlJobs<'a, 'b>

Cat Ml Jobs API

Gets configuration and usage information about anomaly detection jobs.

Source

pub fn ml_trained_models<'b>( &'a self, parts: CatMlTrainedModelsParts<'b>, ) -> CatMlTrainedModels<'a, 'b>

Cat Ml Trained Models API

Gets configuration and usage information about inference trained models.

Source

pub fn nodeattrs<'b>(&'a self) -> CatNodeattrs<'a, 'b>

Cat Nodeattrs API

Returns information about custom node attributes.

Source

pub fn nodes<'b>(&'a self) -> CatNodes<'a, 'b>

Cat Nodes API

Returns basic statistics about performance of cluster nodes.

Source

pub fn pending_tasks<'b>(&'a self) -> CatPendingTasks<'a, 'b>

Cat Pending Tasks API

Returns a concise representation of the cluster pending tasks.

Source

pub fn plugins<'b>(&'a self) -> CatPlugins<'a, 'b>

Cat Plugins API

Returns information about installed plugins across nodes node.

Source

pub fn recovery<'b>( &'a self, parts: CatRecoveryParts<'b>, ) -> CatRecovery<'a, 'b>

Cat Recovery API

Returns information about index shard recoveries, both on-going completed.

Source

pub fn repositories<'b>(&'a self) -> CatRepositories<'a, 'b>

Cat Repositories API

Returns information about snapshot repositories registered in the cluster.

Source

pub fn segments<'b>( &'a self, parts: CatSegmentsParts<'b>, ) -> CatSegments<'a, 'b>

Cat Segments API

Provides low-level information about the segments in the shards of an index.

Source

pub fn shards<'b>(&'a self, parts: CatShardsParts<'b>) -> CatShards<'a, 'b>

Cat Shards API

Provides a detailed view of shard allocation on nodes.

Source

pub fn snapshots<'b>( &'a self, parts: CatSnapshotsParts<'b>, ) -> CatSnapshots<'a, 'b>

Cat Snapshots API

Returns all snapshots in a specific repository.

Source

pub fn tasks<'b>(&'a self) -> CatTasks<'a, 'b>

Cat Tasks API

Returns information about the tasks currently executing on one or more nodes in the cluster.  

§Optional, experimental

This requires the experimental-apis feature. Can have breaking changes in future versions or might even be removed entirely.

Source

pub fn templates<'b>( &'a self, parts: CatTemplatesParts<'b>, ) -> CatTemplates<'a, 'b>

Cat Templates API

Returns information about existing templates.

Source

pub fn thread_pool<'b>( &'a self, parts: CatThreadPoolParts<'b>, ) -> CatThreadPool<'a, 'b>

Cat Thread Pool API

Returns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools.

Source

pub fn transforms<'b>( &'a self, parts: CatTransformsParts<'b>, ) -> CatTransforms<'a, 'b>

Cat Transforms API

Gets configuration and usage information about transforms.

Auto Trait Implementations§

§

impl<'a> Freeze for Cat<'a>

§

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

§

impl<'a> Send for Cat<'a>

§

impl<'a> Sync for Cat<'a>

§

impl<'a> Unpin for Cat<'a>

§

impl<'a> !UnwindSafe for Cat<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> MaybeSendSync for T