Counter

struct Counter

Public Types

using value_type = uint64_t

Public Functions

Counter() = default
explicit Counter(std::string_view const &labels)
Counter(std::string_view const &source, std::string_view const &connection, std::string_view const &function)
Counter(std::string_view const &source, std::string_view const &connection, std::string_view const &function, std::string_view const &params)
Counter(Counter const&) = delete
Counter(Counter&&) = delete
inline Counter &operator++()
inline Counter &operator+=(value_type value)
inline void update(value_type value) noexcept
void write(roq::metrics::Writer &writer, std::string_view const &name) const
void write(roq::metrics::Writer &writer, std::string_view const &name, std::string_view const &labels) const