OdbcMetrics class
Performance and operational metrics for the ODBC engine.
Provides insights into query execution, error rates, and system uptime. Useful for monitoring, debugging, and performance analysis.
Example:
final metrics = await service.getMetrics();
print('Queries executed: ${metrics.queryCount}');
print('Average latency: ${metrics.avgLatencyMillis}ms');
Constructors
- OdbcMetrics({required int queryCount, required int errorCount, required int uptimeSecs, required int totalLatencyMillis, required int avgLatencyMillis})
-
Creates a new OdbcMetrics instance.
const
Properties
- avgLatencyMillis → int
-
Average query latency in milliseconds.
final
- errorCount → int
-
Total number of errors encountered since engine initialization.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- queryCount → int
-
Total number of queries executed since engine initialization.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalLatencyMillis → int
-
Total cumulative latency in milliseconds for all queries.
final
- uptimeSecs → int
-
Total uptime in seconds since engine initialization.
final
Methods
-
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