Ice 3.7 C++11 API Reference
|
The base class for metrics. More...
#include <Ice/Ice.h>
Public Member Functions | |
std::tuple< const ::std::string &, const long long int &, const int &, const long long int &, const int & > | ice_tuple () const |
Obtains a tuple containing all of the value's data members. More... | |
Metrics ()=default | |
Metrics (const ::std::string &id, long long int total, int current, long long int totalLifetime, int failures) | |
One-shot constructor to initialize all data members. More... | |
Metrics (const Metrics &)=default | |
Metrics (Metrics &&)=default | |
Metrics & | operator= (const Metrics &)=default |
Metrics & | operator= (Metrics &&)=default |
virtual | ~Metrics () |
Static Public Member Functions | |
static const ::std::string & | ice_staticId () |
Obtains the Slice type ID of this value. More... | |
Public Attributes | |
int | current = 0 |
The number of objects currently observed by this metrics. More... | |
int | failures = 0 |
The number of failures observed. More... | |
::std::string | id |
The metrics identifier. More... | |
long long int | total = 0LL |
The total number of objects observed by this metrics. More... | |
long long int | totalLifetime = 0LL |
The sum of the lifetime of each observed objects. More... | |
The base class for metrics.
A metrics object represents a collection of measurements associated to a given a system.
|
virtual |
|
default |
|
default |
|
default |
|
inline |
One-shot constructor to initialize all data members.
id | The metrics identifier. |
total | The total number of objects observed by this metrics. |
current | The number of objects currently observed by this metrics. |
totalLifetime | The sum of the lifetime of each observed objects. |
failures | The number of failures observed. |
|
static |
Obtains the Slice type ID of this value.
|
inline |
Obtains a tuple containing all of the value's data members.
int IceMX::Metrics::current = 0 |
The number of objects currently observed by this metrics.
int IceMX::Metrics::failures = 0 |
The number of failures observed.
::std::string IceMX::Metrics::id |
The metrics identifier.
long long int IceMX::Metrics::total = 0LL |
The total number of objects observed by this metrics.
This includes the number of currently observed objects and the number of objects observed in the past.
long long int IceMX::Metrics::totalLifetime = 0LL |
The sum of the lifetime of each observed objects.
This does not include the lifetime of objects which are currently observed, only the objects observed in the past.