-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathuser_counter.h
44 lines (33 loc) · 1.2 KB
/
user_counter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include <library/cpp/monlib/dynamic_counters/counters.h>
#include <library/cpp/monlib/metrics/metric_registry.h>
#include <cloud/storage/core/libs/user_stats/counter/user_counter.h>
#include <util/generic/hash_multi_map.h>
namespace NCloud::NBlockStore::NUserCounter {
using IUserCounterSupplier = NCloud::NStorage::NUserStats::IUserCounterSupplier;
////////////////////////////////////////////////////////////////////////////////
void RegisterServiceVolume(
IUserCounterSupplier& dsc,
const TString& cloudId,
const TString& folderId,
const TString& diskId,
NMonitoring::TDynamicCounterPtr src);
void UnregisterServiceVolume(
IUserCounterSupplier& dsc,
const TString& cloudId,
const TString& folderId,
const TString& diskId);
void RegisterServerVolumeInstance(
IUserCounterSupplier& dsc,
const TString& cloudId,
const TString& folderId,
const TString& diskId,
const TString& instanceId,
NMonitoring::TDynamicCounterPtr src);
void UnregisterServerVolumeInstance(
IUserCounterSupplier& dsc,
const TString& cloudId,
const TString& folderId,
const TString& diskId,
const TString& instanceId);
} // NCloud::NBlockStore::NUserCounter