A generic catalog of simple metrics.  
 More...
#include <resource_metrics.h>
 | 
| 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  | 
|   | 
A generic catalog of simple metrics. 
 
      
        
          | 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] | name | Name 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] | name | The name of the metric.  | 
    | [in] | amount | The amount to increment the metric (negative amount corresponds to decrementing the metric).  | 
  
   
 
 
The documentation for this class was generated from the following file: