kv_get_node_metrics()

#include <kvstore.h>

kv_node_metrics_t *
kv_get_node_metrics(kv_stats_t *stats,
                    kv_int_t index) 

Returns a list of metrics associated with each node in the store. The information is returned using a kv_node_metrics_t structure, which includes the following data members:

Note that if the index parameter is out of range, then this functions returns NULL.

Parameters

stats

The stats parameter is the statistics structure containing the node metrics information. This structure is allocated using kv_get_stats(), and is released using kv_release_stats().

index

The index parameter is the integer designation of the node for which you want to retrieve statistical information. You can discover the total number of nodes for which statistical information is available using kv_get_num_nodes().

See Also

Statistics and Related Functions