Struct debug_interface::NodeDebugClient
source · pub struct NodeDebugClient { /* private fields */ }
Expand description
Implement default utility client for NodeDebugInterface
Implementations§
source§impl NodeDebugClient
impl NodeDebugClient
sourcepub fn new<A: AsRef<str>>(address: A, port: u16) -> Self
pub fn new<A: AsRef<str>>(address: A, port: u16) -> Self
Create NodeDebugInterfaceClient from a valid socket address.
pub fn from_url(url: Url) -> Self
sourcepub fn get_node_metric<S: AsRef<str>>(&self, metric: S) -> Result<Option<i64>>
pub fn get_node_metric<S: AsRef<str>>(&self, metric: S) -> Result<Option<i64>>
Retrieves the individual node metric. Requires all sub fields to match in alphabetical order.
sourcepub fn get_node_metric_with_name(
&self,
metric: &str
) -> Result<Option<HashMap<String, i64>>>
pub fn get_node_metric_with_name( &self, metric: &str ) -> Result<Option<HashMap<String, i64>>>
Retrieves all node metrics for a given metric name. Allows for filtering metrics by fields afterwards.