mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
27 lines
702 B
C++
27 lines
702 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context.h>
|
|
#include <Common/AsynchronousMetrics.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class KeeperDispatcher;
|
|
void updateKeeperInformation(KeeperDispatcher & keeper_dispatcher, AsynchronousMetricValues & new_values);
|
|
|
|
class KeeperAsynchronousMetrics : public AsynchronousMetrics
|
|
{
|
|
public:
|
|
KeeperAsynchronousMetrics(
|
|
ContextPtr context_, unsigned update_period_seconds, const ProtocolServerMetricsFunc & protocol_server_metrics_func_);
|
|
~KeeperAsynchronousMetrics() override;
|
|
|
|
private:
|
|
ContextPtr context;
|
|
|
|
void updateImpl(TimePoint update_time, TimePoint current_time, bool force_update, bool first_run, AsynchronousMetricValues & new_values) override;
|
|
};
|
|
|
|
|
|
}
|