Counter class

Data object to store measurement for a performance counter. This object is used by CachedCounters to store counters.

Constructors

Counter(String name, CounterType type)
Creates a instance of the data obejct
Counter.fromJson(Map<String, dynamic> json)
factory

Properties

average double?
The average value
getter/setter pair
count int?
The total count
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
last int?
The last recorded value
getter/setter pair
max int?
The maximum value
getter/setter pair
min int?
The minimum value
getter/setter pair
name String
The counter unique name
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time DateTime?
The recorded timestamp
getter/setter pair
type CounterType
The counter type that defines measurement algorithm
getter/setter pair

Methods

fromJson(Map<String, dynamic> json) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited