Metrics class

Constructors

Metrics({required String appName, required int metricsInterval, required DateTime clock(), bool disableMetrics = false, required Future<Response> poster(Request), required Uri url, required String clientKey, required String connectionId, required String sdkName, required dynamic emit(String, [dynamic])})

Properties

appName → String
final
bucket ↔ Bucket
getter/setter pair
clientKey → String
final
clock → DateTime Function()
final
connectionId → String
final
disableMetrics ↔ bool
getter/setter pair
emit → dynamic Function(String, [dynamic])
final
hashCode → int
The hash code for this object.
no setterinherited
metricsInterval → int
final
poster → Future<Response> Function(Request)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdkName → String
final
timer ↔ Timer?
getter/setter pair
url ↔ Uri
getter/setter pair

Methods

count(String name, bool enabled) → void
countVariant(String name, String variant) → void
createRequest(String payload) → Request
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMetrics() → Future<void>
start() → Future<void>
stop() → dynamic
toString() → String
A string representation of this object.
inherited

Operators

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