|
Lightweight 0.20260921.0
|
#include <SqlStatistics.hpp>
Public Member Functions | |
| constexpr SqlOperationStatistics const & | operator[] (SqlStatisticsOperation operation) const noexcept |
Public Attributes | |
| std::array< SqlOperationStatistics, static_cast< std::size_t >(SqlStatisticsOperation::Count)> | operations {} |
| Per-operation-class counters, indexed by SqlStatisticsOperation. | |
| SqlPoolStatistics | pool {} |
| Connection-pool counters. | |
| std::uint64_t | connectionsOpened {} |
| Number of connections opened. | |
| std::uint64_t | connectionsClosed {} |
| Number of connections closed. | |
| std::uint64_t | rowsFetched {} |
| Total number of rows fetched across all statements. | |
| std::uint64_t | blockFetches {} |
Number of block-prefetch round-trips (one per SQLFetchScroll that materialized a row block). | |
An immutable, plain-struct view of everything a SqlStatistics collector has observed.
Deliberately free of any exporter-specific concept: read the fields and feed them to Prometheus, StatsD, a log line, or a test assertion. Obtain one via SqlStatistics::Snapshot.
Definition at line 215 of file SqlStatistics.hpp.
|
inlineconstexprnoexcept |
Retrieves the counters for one operation class.
| operation | The operation class to read. |
operation. Definition at line 239 of file SqlStatistics.hpp.
| std::array<SqlOperationStatistics, static_cast<std::size_t>(SqlStatisticsOperation::Count)> Lightweight::SqlStatisticsSnapshot::operations {} |
Per-operation-class counters, indexed by SqlStatisticsOperation.
Definition at line 218 of file SqlStatistics.hpp.
| SqlPoolStatistics Lightweight::SqlStatisticsSnapshot::pool {} |
Connection-pool counters.
Definition at line 221 of file SqlStatistics.hpp.
| std::uint64_t Lightweight::SqlStatisticsSnapshot::connectionsOpened {} |
Number of connections opened.
Definition at line 224 of file SqlStatistics.hpp.
| std::uint64_t Lightweight::SqlStatisticsSnapshot::connectionsClosed {} |
Number of connections closed.
Definition at line 227 of file SqlStatistics.hpp.
| std::uint64_t Lightweight::SqlStatisticsSnapshot::rowsFetched {} |
Total number of rows fetched across all statements.
Definition at line 230 of file SqlStatistics.hpp.
| std::uint64_t Lightweight::SqlStatisticsSnapshot::blockFetches {} |
Number of block-prefetch round-trips (one per SQLFetchScroll that materialized a row block).
Definition at line 233 of file SqlStatistics.hpp.