/* * Copyright (c) 2019 Cisco and/or its affiliates. */ #pragma once #include #include #include #include namespace transport { namespace core { struct AtomicConnectorStats { AtomicConnectorStats() : tx_packets_(0), tx_bytes_(0), rx_packets_(0), rx_bytes_(0), drops_(0) {} std::atomic tx_packets_; std::atomic tx_bytes_; std::atomic rx_packets_; std::atomic rx_bytes_; std::atomic drops_; }; struct ConnectorStats { ConnectorStats() : tx_packets_(0), tx_bytes_(0), rx_packets_(0), rx_bytes_(0), drops_(0) {} std::uint64_t tx_packets_; std::uint64_t tx_bytes_; std::uint64_t rx_packets_; std::uint64_t rx_bytes_; std::uint64_t drops_; }; using TableEntry = std::tuple; using StatisticTable = std::vector; } // namespace core } // namespace transport