pub struct Cat<'a> { /* private fields */ }
Expand description
Namespace client for Cat APIs
Implementations§
Source§impl<'a> Cat<'a>
impl<'a> Cat<'a>
pub fn transport(&self) -> &Transport
Sourcepub fn aliases<'b>(&'a self, parts: CatAliasesParts<'b>) -> CatAliases<'a, 'b>
pub fn aliases<'b>(&'a self, parts: CatAliasesParts<'b>) -> CatAliases<'a, 'b>
Shows information about currently configured aliases to indices including filter and routing infos.
Sourcepub fn allocation<'b>(
&'a self,
parts: CatAllocationParts<'b>,
) -> CatAllocation<'a, 'b>
pub fn allocation<'b>( &'a self, parts: CatAllocationParts<'b>, ) -> CatAllocation<'a, 'b>
Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.
Sourcepub fn component_templates<'b>(
&'a self,
parts: CatComponentTemplatesParts<'b>,
) -> CatComponentTemplates<'a, 'b>
pub fn component_templates<'b>( &'a self, parts: CatComponentTemplatesParts<'b>, ) -> CatComponentTemplates<'a, 'b>
Returns information about existing component_templates templates.
Sourcepub fn count<'b>(&'a self, parts: CatCountParts<'b>) -> CatCount<'a, 'b>
pub fn count<'b>(&'a self, parts: CatCountParts<'b>) -> CatCount<'a, 'b>
Provides quick access to the document count of the entire cluster, or individual indices.
Sourcepub fn fielddata<'b>(
&'a self,
parts: CatFielddataParts<'b>,
) -> CatFielddata<'a, 'b>
pub fn fielddata<'b>( &'a self, parts: CatFielddataParts<'b>, ) -> CatFielddata<'a, 'b>
Shows how much heap memory is currently being used by fielddata on every data node in the cluster.
Sourcepub fn health<'b>(&'a self) -> CatHealth<'a, 'b>
pub fn health<'b>(&'a self) -> CatHealth<'a, 'b>
Returns a concise representation of the cluster health.
Sourcepub fn indices<'b>(&'a self, parts: CatIndicesParts<'b>) -> CatIndices<'a, 'b>
pub fn indices<'b>(&'a self, parts: CatIndicesParts<'b>) -> CatIndices<'a, 'b>
Returns information about indices: number of primaries and replicas, document counts, disk size, …
Sourcepub fn ml_data_frame_analytics<'b>(
&'a self,
parts: CatMlDataFrameAnalyticsParts<'b>,
) -> CatMlDataFrameAnalytics<'a, 'b>
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.
Sourcepub fn ml_datafeeds<'b>(
&'a self,
parts: CatMlDatafeedsParts<'b>,
) -> CatMlDatafeeds<'a, 'b>
pub fn ml_datafeeds<'b>( &'a self, parts: CatMlDatafeedsParts<'b>, ) -> CatMlDatafeeds<'a, 'b>
Gets configuration and usage information about datafeeds.
Sourcepub fn ml_jobs<'b>(&'a self, parts: CatMlJobsParts<'b>) -> CatMlJobs<'a, 'b>
pub fn ml_jobs<'b>(&'a self, parts: CatMlJobsParts<'b>) -> CatMlJobs<'a, 'b>
Gets configuration and usage information about anomaly detection jobs.
Sourcepub fn ml_trained_models<'b>(
&'a self,
parts: CatMlTrainedModelsParts<'b>,
) -> CatMlTrainedModels<'a, 'b>
pub fn ml_trained_models<'b>( &'a self, parts: CatMlTrainedModelsParts<'b>, ) -> CatMlTrainedModels<'a, 'b>
Gets configuration and usage information about inference trained models.
Sourcepub fn nodeattrs<'b>(&'a self) -> CatNodeattrs<'a, 'b>
pub fn nodeattrs<'b>(&'a self) -> CatNodeattrs<'a, 'b>
Returns information about custom node attributes.
Sourcepub fn nodes<'b>(&'a self) -> CatNodes<'a, 'b>
pub fn nodes<'b>(&'a self) -> CatNodes<'a, 'b>
Returns basic statistics about performance of cluster nodes.
Sourcepub fn pending_tasks<'b>(&'a self) -> CatPendingTasks<'a, 'b>
pub fn pending_tasks<'b>(&'a self) -> CatPendingTasks<'a, 'b>
Returns a concise representation of the cluster pending tasks.
Sourcepub fn plugins<'b>(&'a self) -> CatPlugins<'a, 'b>
pub fn plugins<'b>(&'a self) -> CatPlugins<'a, 'b>
Returns information about installed plugins across nodes node.
Sourcepub fn recovery<'b>(
&'a self,
parts: CatRecoveryParts<'b>,
) -> CatRecovery<'a, 'b>
pub fn recovery<'b>( &'a self, parts: CatRecoveryParts<'b>, ) -> CatRecovery<'a, 'b>
Returns information about index shard recoveries, both on-going completed.
Sourcepub fn repositories<'b>(&'a self) -> CatRepositories<'a, 'b>
pub fn repositories<'b>(&'a self) -> CatRepositories<'a, 'b>
Returns information about snapshot repositories registered in the cluster.
Sourcepub fn segments<'b>(
&'a self,
parts: CatSegmentsParts<'b>,
) -> CatSegments<'a, 'b>
pub fn segments<'b>( &'a self, parts: CatSegmentsParts<'b>, ) -> CatSegments<'a, 'b>
Provides low-level information about the segments in the shards of an index.
Sourcepub fn shards<'b>(&'a self, parts: CatShardsParts<'b>) -> CatShards<'a, 'b>
pub fn shards<'b>(&'a self, parts: CatShardsParts<'b>) -> CatShards<'a, 'b>
Provides a detailed view of shard allocation on nodes.
Sourcepub fn snapshots<'b>(
&'a self,
parts: CatSnapshotsParts<'b>,
) -> CatSnapshots<'a, 'b>
pub fn snapshots<'b>( &'a self, parts: CatSnapshotsParts<'b>, ) -> CatSnapshots<'a, 'b>
Returns all snapshots in a specific repository.
Sourcepub fn tasks<'b>(&'a self) -> CatTasks<'a, 'b>
pub fn tasks<'b>(&'a self) -> CatTasks<'a, 'b>
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.
Sourcepub fn templates<'b>(
&'a self,
parts: CatTemplatesParts<'b>,
) -> CatTemplates<'a, 'b>
pub fn templates<'b>( &'a self, parts: CatTemplatesParts<'b>, ) -> CatTemplates<'a, 'b>
Returns information about existing templates.
Sourcepub fn thread_pool<'b>(
&'a self,
parts: CatThreadPoolParts<'b>,
) -> CatThreadPool<'a, 'b>
pub fn thread_pool<'b>( &'a self, parts: CatThreadPoolParts<'b>, ) -> CatThreadPool<'a, 'b>
Returns cluster-wide thread pool statistics per node. By default the active, queue and rejected statistics are returned for all thread pools.
Sourcepub fn transforms<'b>(
&'a self,
parts: CatTransformsParts<'b>,
) -> CatTransforms<'a, 'b>
pub fn transforms<'b>( &'a self, parts: CatTransformsParts<'b>, ) -> CatTransforms<'a, 'b>
Gets configuration and usage information about transforms.