RelayStats class
relay stats
Constructors
Properties
- activeRequests ↔ int
-
number of active requests on this relay
getter/setter pair
- connectionErrors ↔ int
-
number of connection errors
getter/setter pair
- connections ↔ int
-
number of connections
getter/setter pair
-
dataReadBytes
↔ Map<
int, int> -
kind as keys, bytes amount as values
getter/setter pair
-
dataWrittenBytes
↔ Map<
int, int> -
kind as keys, bytes amount as values
getter/setter pair
-
eventsRead
↔ Map<
int, int> -
kind as keys, count as values
getter/setter pair
-
eventsWritten
↔ Map<
int, int> -
kind as keys, count as values
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- relayUsefulness → double
-
describes how often the relay was used and returned something useful
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- touched ↔ int
-
gets incremented on every touch => search if it has a pubkey assigned
getter/setter pair
- touchUseful ↔ int
-
gets incremented when there is a pubkey match
getter/setter pair
Methods
-
getTotalBytesRead(
) → int - Get total bytes read this relay
-
getTotalEventsRead(
) → int - Get total number of read events in this relay
-
incStatsByNewEvent(
Nip01Event event, int bytes) → void - increment stats by new event
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited