Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions ydb/core/cms/console/console_configs_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,22 @@ class TConfigsProvider : public TActorBootstrapped<TConfigsProvider> {
}

struct TCounters {
using TDynamicCounterPtr = ::NMonitoring::TDynamicCounterPtr;
using TCounterPtr = ::NMonitoring::TDynamicCounters::TCounterPtr;
TDynamicCounterPtr Counters;
TCounterPtr ScheduledConfigUpdates;
TCounterPtr InflightConfigUpdates;

explicit TCounters(::NMonitoring::TDynamicCounterPtr counters)
: ScheduledConfigUpdates(counters->GetCounter("ScheduledConfigUpdates", false))
explicit TCounters(TDynamicCounterPtr counters)
: Counters(counters)
, ScheduledConfigUpdates(counters->GetCounter("ScheduledConfigUpdates", false))
, InflightConfigUpdates(counters->GetCounter("InflightConfigUpdates", false))
{
}

~TCounters() {
Counters->ResetCounters();
}
};

public:
Expand Down
Loading