pub struct NodesHotThreads<'a, 'b> { /* private fields */ }
Expand description
Builder for the Nodes Hot Threads API
Returns information about hot threads on each node in the cluster.
Implementations§
Source§impl<'a, 'b> NodesHotThreads<'a, 'b>
impl<'a, 'b> NodesHotThreads<'a, 'b>
Sourcepub fn new(transport: &'a Transport, parts: NodesHotThreadsParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: NodesHotThreadsParts<'b>) -> Self
Creates a new instance of NodesHotThreads with the specified API parts
Sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
Sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
Sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
Sourcepub fn ignore_idle_threads(self, ignore_idle_threads: bool) -> Self
pub fn ignore_idle_threads(self, ignore_idle_threads: bool) -> Self
Don’t show threads that are in known-idle places, such as waiting on a socket select or pulling from an empty task queue (default: true)
Sourcepub fn interval(self, interval: &'b str) -> Self
pub fn interval(self, interval: &'b str) -> Self
The interval for the second sampling of threads
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
Sourcepub fn snapshots(self, snapshots: i64) -> Self
pub fn snapshots(self, snapshots: i64) -> Self
Number of samples of thread stacktrace (default: 10)
Sourcepub fn source(self, source: &'b str) -> Self
pub fn source(self, source: &'b str) -> Self
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
Trait Implementations§
Source§impl<'a, 'b> Clone for NodesHotThreads<'a, 'b>
impl<'a, 'b> Clone for NodesHotThreads<'a, 'b>
Source§fn clone(&self) -> NodesHotThreads<'a, 'b>
fn clone(&self) -> NodesHotThreads<'a, 'b>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more