userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
system_statistics_collector.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <memory>
7
8
#include <
userver/components/component_base.hpp
>
9
#include <
userver/components/component_fwd.hpp
>
10
11
USERVER_NAMESPACE_BEGIN
12
13
namespace
utils::statistics
{
14
15
class
Writer
;
16
17
}
// namespace utils::statistics
18
19
namespace
components
{
20
36
class
SystemStatisticsCollector final :
public
ComponentBase {
37
public
:
40
static
constexpr
std::string_view
kName
=
"system-statistics-collector"
;
41
42
SystemStatisticsCollector(
const
ComponentConfig
&,
const
ComponentContext
&);
43
~SystemStatisticsCollector()
override
;
44
45
static
yaml_config::Schema
GetStaticConfigSchema
();
46
47
private
:
48
void
ExtendStatistics(
utils::statistics::Writer
& writer);
49
50
struct
Impl;
51
std::unique_ptr<Impl> impl_;
52
};
53
54
template
<>
55
inline
constexpr
bool
kHasValidate<SystemStatisticsCollector>
=
true
;
56
57
}
// namespace components
58
59
USERVER_NAMESPACE_END
userver
utils
statistics
system_statistics_collector.hpp
Generated on
for userver by
Doxygen
1.17.0