Struct elastic_requests::endpoints::NodesStatsRequest
[−]
[src]
pub struct NodesStatsRequest<'a> { pub url: Url<'a>, }
Get: /_nodes/stats
Fields
url: Url<'a>
Methods
impl<'a> NodesStatsRequest<'a>
[src]
pub fn new() -> Self
[src]
Request to: /_nodes/stats
pub fn for_metric<IMetric>(metric: IMetric) -> Self where
IMetric: Into<Metric<'a>>,
[src]
IMetric: Into<Metric<'a>>,
Request to: /_nodes/stats/{metric}
pub fn for_metric_index_metric<IMetric, IIndexMetric>(
metric: IMetric,
index_metric: IIndexMetric
) -> Self where
IMetric: Into<Metric<'a>>,
IIndexMetric: Into<IndexMetric<'a>>,
[src]
metric: IMetric,
index_metric: IIndexMetric
) -> Self where
IMetric: Into<Metric<'a>>,
IIndexMetric: Into<IndexMetric<'a>>,
Request to: /_nodes/stats/{metric}/{index_metric}
pub fn for_node_id<INodeId>(node_id: INodeId) -> Self where
INodeId: Into<NodeId<'a>>,
[src]
INodeId: Into<NodeId<'a>>,
Request to: /_nodes/{node_id}/stats
pub fn for_node_id_metric<INodeId, IMetric>(
node_id: INodeId,
metric: IMetric
) -> Self where
INodeId: Into<NodeId<'a>>,
IMetric: Into<Metric<'a>>,
[src]
node_id: INodeId,
metric: IMetric
) -> Self where
INodeId: Into<NodeId<'a>>,
IMetric: Into<Metric<'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
) -> Self where
INodeId: Into<NodeId<'a>>,
IMetric: Into<Metric<'a>>,
IIndexMetric: Into<IndexMetric<'a>>,
[src]
node_id: INodeId,
metric: IMetric,
index_metric: IIndexMetric
) -> Self where
INodeId: Into<NodeId<'a>>,
IMetric: Into<Metric<'a>>,
IIndexMetric: Into<IndexMetric<'a>>,
Request to: /_nodes/{node_id}/stats/{metric}/{index_metric}
Trait Implementations
impl<'a> Debug for NodesStatsRequest<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> PartialEq for NodesStatsRequest<'a>
[src]
fn eq(&self, __arg_0: &NodesStatsRequest<'a>) -> bool
[src]
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
[src]
This method tests for !=
.
impl<'a> Clone for NodesStatsRequest<'a>
[src]
fn clone(&self) -> NodesStatsRequest<'a>
[src]
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
impl<'a> Into<HttpRequest<'a, DefaultBody>> for NodesStatsRequest<'a>
[src]
fn into(self) -> HttpRequest<'a, DefaultBody>
[src]
Performs the conversion.