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