#pragma once #include #include #include #include #include #include namespace DB { /** ErrorLog is a log of error values measured at regular time interval. */ struct ErrorLogElement { time_t event_time{}; ErrorCodes::ErrorCode code{}; ErrorCodes::Value value{}; bool remote{}; static std::string name() { return "ErrorLog"; } static ColumnsDescription getColumnsDescription(); static NamesAndAliases getNamesAndAliases() { return {}; } void appendToBlock(MutableColumns & columns) const; }; class ErrorLog : public PeriodicLog { using PeriodicLog::PeriodicLog; protected: void stepFunction(TimePoint current_time) override; }; }