Kudu C++ client API
 All Classes Namespaces 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
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.

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

Increment/decrement the given metric.

[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: