PostgreSQL-specific counters layered on common database telemetry. More...
#include <StormByte/database/postgres/telemetry.hxx>


Public Member Functions | |
| Telemetry () noexcept | |
| Construct zeroed PostgreSQL counters. | |
| ~Telemetry () noexcept override | |
| Out-of-line virtual destructor for DLL-safe destruction. | |
| std::uint64_t | SerializationConflicts () const noexcept |
| SQLSTATE serialization failures (40001). | |
| std::uint64_t | Deadlocks () const noexcept |
| SQLSTATE deadlock detections (40P01). | |
| std::uint64_t | ConnectionErrors () const noexcept |
| Connection exception SQLSTATEs (class 08). | |
| operator StormByte::String::String () const override | |
| Flatten common and PostgreSQL-specific metrics. | |
Public Member Functions inherited from StormByte::Database::Telemetry | |
| Telemetry () noexcept | |
| Construct zeroed counters. | |
| OperationMetrics | Metrics (Operation operation) const noexcept |
| Obtain a thread-safe metrics snapshot for an operation. | |
| std::uint64_t | RowsReturned () const noexcept |
| Total rows successfully returned by Query and prepared statements. | |
| std::uint64_t | Events (BackendEvent event) const noexcept |
| Number of backend events in a shared category. | |
| STORMBYTE_FORCE_INLINE | operator std::string () const |
| Flatten counters into a caller-owned standard string. | |
Friends | |
| class | Postgres |
| class | PreparedSTMT |
Additional Inherited Members | |
Protected Member Functions inherited from StormByte::Database::Telemetry | |
| Telemetry (const Telemetry &)=delete | |
| Copying counters is disabled. | |
| Telemetry (Telemetry &&)=delete | |
| Moving counters is disabled. | |
| Telemetry & | operator= (const Telemetry &)=delete |
| Copy assignment is disabled. | |
| Telemetry & | operator= (Telemetry &&)=delete |
| Move assignment is disabled. | |
| void | RecordEvents (BackendEvent event, std::uint64_t count) noexcept |
| Add a known number of occurrences for one backend event. | |
PostgreSQL-specific counters layered on common database telemetry.
|
noexcept |
Construct zeroed PostgreSQL counters.
|
overridevirtualnoexcept |
Out-of-line virtual destructor for DLL-safe destruction.
Reimplemented from StormByte::Database::Telemetry.
|
noexcept |
Connection exception SQLSTATEs (class 08).
|
noexcept |
SQLSTATE deadlock detections (40P01).
|
overridevirtual |
Flatten common and PostgreSQL-specific metrics.
Reimplemented from StormByte::Database::Telemetry.
|
noexcept |
SQLSTATE serialization failures (40001).
|
friend |
|
friend |