Struct elastic::client::requests::endpoints::NodesStatsRequest
[−]
pub struct NodesStatsRequest<'a> { pub url: Url<'a>, }
Get: /_nodes/stats
Fields
url: Url<'a>
Methods
impl<'a> NodesStatsRequest<'a>
pub fn new() -> NodesStatsRequest<'a>
Request to: /_nodes/stats
pub fn for_metric<IMetric>(metric: IMetric) -> NodesStatsRequest<'a> where
IMetric: Into<Metric<'a>>,
IMetric: Into<Metric<'a>>,
Request to: /_nodes/stats/{metric}
pub fn for_metric_index_metric<IMetric, IIndexMetric>(
metric: IMetric,
index_metric: IIndexMetric
) -> NodesStatsRequest<'a> where
IIndexMetric: Into<IndexMetric<'a>>,
IMetric: Into<Metric<'a>>,
metric: IMetric,
index_metric: IIndexMetric
) -> NodesStatsRequest<'a> where
IIndexMetric: Into<IndexMetric<'a>>,
IMetric: Into<Metric<'a>>,
Request to: /_nodes/stats/{metric}/{index_metric}
pub fn for_node_id<INodeId>(node_id: INodeId) -> NodesStatsRequest<'a> where
INodeId: Into<NodeId<'a>>,
INodeId: Into<NodeId<'a>>,
Request to: /_nodes/{node_id}/stats
pub fn for_node_id_metric<INodeId, IMetric>(
node_id: INodeId,
metric: IMetric
) -> NodesStatsRequest<'a> where
IMetric: Into<Metric<'a>>,
INodeId: Into<NodeId<'a>>,
node_id: INodeId,
metric: IMetric
) -> NodesStatsRequest<'a> where
IMetric: Into<Metric<'a>>,
INodeId: Into<NodeId<'a>>,
Request to: /_nodes/{node_id}/stats/{metric}
pub fn for_node_id_metric_index_metric<INodeId, IMetric, IIndexMetric>(
node_id: INodeId,
metric: IMetric,
index_metric: IIndexMetric
) -> NodesStatsRequest<'a> where
IIndexMetric: Into<IndexMetric<'a>>,
IMetric: Into<Metric<'a>>,
INodeId: Into<NodeId<'a>>,
node_id: INodeId,
metric: IMetric,
index_metric: IIndexMetric
) -> NodesStatsRequest<'a> where
IIndexMetric: Into<IndexMetric<'a>>,
IMetric: Into<Metric<'a>>,
INodeId: Into<NodeId<'a>>,
Request to: /_nodes/{node_id}/stats/{metric}/{index_metric}
Trait Implementations
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for NodesStatsRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> PartialEq<NodesStatsRequest<'a>> for NodesStatsRequest<'a>
fn eq(&self, __arg_0: &NodesStatsRequest<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NodesStatsRequest<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for NodesStatsRequest<'a>
fn clone(&self) -> NodesStatsRequest<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more