aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/dynamic_counters/percentile/percentile_base.h
diff options
context:
space:
mode:
authorAndrey Fomichev <andrey.fomichev@gmail.com>2022-02-10 16:49:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:15 +0300
commit1c61afbf3db63940d05e6fefa3104b03457788a1 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/monlib/dynamic_counters/percentile/percentile_base.h
parente542cc14db4240643a06bb0dde87ecf361f101ab (diff)
downloadydb-1c61afbf3db63940d05e6fefa3104b03457788a1.tar.gz
Restoring authorship annotation for Andrey Fomichev <andrey.fomichev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/dynamic_counters/percentile/percentile_base.h')
-rw-r--r--library/cpp/monlib/dynamic_counters/percentile/percentile_base.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/monlib/dynamic_counters/percentile/percentile_base.h b/library/cpp/monlib/dynamic_counters/percentile/percentile_base.h
index 1500ab4c9a..d3c825c43d 100644
--- a/library/cpp/monlib/dynamic_counters/percentile/percentile_base.h
+++ b/library/cpp/monlib/dynamic_counters/percentile/percentile_base.h
@@ -16,20 +16,20 @@ struct TPercentileBase : public TThrRefBase {
TPercentiles Percentiles;
- void Initialize(const TIntrusivePtr<NMonitoring::TDynamicCounters> &counters, const TVector<float> &thresholds,
- TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public) {
+ void Initialize(const TIntrusivePtr<NMonitoring::TDynamicCounters> &counters, const TVector<float> &thresholds,
+ TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public) {
Percentiles.reserve(thresholds.size());
for (size_t i = 0; i < thresholds.size(); ++i) {
Percentiles.emplace_back(thresholds[i],
- counters->GetNamedCounter("percentile", Sprintf("%.1f", thresholds[i] * 100.f), false, visibility));
+ counters->GetNamedCounter("percentile", Sprintf("%.1f", thresholds[i] * 100.f), false, visibility));
}
}
void Initialize(const TIntrusivePtr<NMonitoring::TDynamicCounters> &counters, TString group, TString subgroup,
- TString name, const TVector<float> &thresholds,
- TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public) {
+ TString name, const TVector<float> &thresholds,
+ TCountableBase::EVisibility visibility = TCountableBase::EVisibility::Public) {
auto subCounters = counters->GetSubgroup(group, subgroup)->GetSubgroup("sensor", name);
- Initialize(subCounters, thresholds, visibility);
+ Initialize(subCounters, thresholds, visibility);
}
};