Kudu C++ client API
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
kudu::client::ResourceMetrics Class Reference

A generic catalog of simple metrics. More...

#include <resource_metrics.h>

Public Member Functions

std::map< std::string, int64_t > Get () const
 
void Increment (const std::string &name, int64_t amount)
 
int64_t GetMetric (const std::string &name) const
 

Detailed Description

A generic catalog of simple metrics.

Member Function Documentation

std::map<std::string, int64_t> kudu::client::ResourceMetrics::Get ( ) const
Returns
A map that contains all metrics, its key is the metric name and its value is corresponding metric count.
int64_t kudu::client::ResourceMetrics::GetMetric ( const std::string &  name) const

Get current count for the specified metric.

Parameters
[in]nameName of the metric in question.
Returns
The metric's current count.
void kudu::client::ResourceMetrics::Increment ( const std::string &  name,
int64_t  amount 
)

Increment/decrement the given metric.

Parameters
[in]nameThe name of the metric.
[in]amountThe amount to increment the metric (negative amount corresponds to decrementing the metric).

The documentation for this class was generated from the following file: