Counter

Data object used to store the measurements of a performance counter.

Description

The Counter class allows you to create data objects used to store the measurements of performance counters.

Important points

Constructors

Creates a instance of the data object.

Counter(name: str = None, tipe: CounterType = None)

  • name: str - a counter name.
  • tipe: CounterType - a counter type.

Fields

last

The last recorded value

last: Optional[float]

count

The total count

count: Optional[int]

min

The minimum value

min: Optional[float]

max

The maximum value

max: Optional[float]

average

The average value

average: Optional[float]

time

The recorded timestamp

time: Optional[datetime.datetime]

name

The counter’s unique name

name: str

type

The counter type that defines the measurement algorithm

type: CounterType