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
read / write
- count ↔ int
-
The total count
read / write
- last ↔ int
-
The last recorded value
read / write
- max ↔ int
-
The maximum value
read / write
- min ↔ int
-
The minimum value
read / write
- name ↔ String
-
The counter unique name
read / write
- time ↔ DateTime
-
The recorded timestamp
read / write
- type ↔ CounterType
-
The counter type that defines measurement algorithm
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
fromJson(
Map< String, dynamic> json) → void -
toJson(
) → Map< String, dynamic> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited