IceMX.Metrics

class IceMX.Metrics(id: str = '', total: int = 0, current: int = 0, totalLifetime: int = 0, failures: int = 0)

Bases: Value

The base class for metrics. A metrics object represents a collection of measurements associated with a given system.

Parameters:
id

The metrics identifier.

Type:

str

total

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.

Type:

int

current

The number of objects currently observed by this metrics.

Type:

int

totalLifetime

The sum of the lifetimes of each observed object. This does not include the lifetimes of objects which are currently observed, only the objects observed in the past.

Type:

int

failures

The number of failures observed.

Type:

int

Notes

The Slice compiler generated this dataclass from Slice class ::IceMX::Metrics.

static ice_staticId() str

Returns the Slice type ID of this type.

Returns:

The return value is always ::Ice::Object.

Return type:

str