kudu::client::ResourceMetrics Class Reference

A generic catalog of simple metrics. More...

#include <resource_metrics.h>

List of all members.

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] name Name 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] 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:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines