]> git.proxmox.com Git - ceph.git/blob - ceph/src/mgr/OSDPerfMetricCollector.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / mgr / OSDPerfMetricCollector.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef OSD_PERF_METRIC_COLLECTOR_H_
5 #define OSD_PERF_METRIC_COLLECTOR_H_
6
7 #include "mgr/MetricCollector.h"
8 #include "mgr/OSDPerfMetricTypes.h"
9
10 /**
11 * OSD performance query class.
12 */
13 class OSDPerfMetricCollector
14 : public MetricCollector<OSDPerfMetricQuery, OSDPerfMetricLimit, OSDPerfMetricKey,
15 OSDPerfMetricReport> {
16 public:
17 OSDPerfMetricCollector(MetricListener &listener);
18
19 void process_reports(const MetricPayload &payload) override;
20 };
21
22 #endif // OSD_PERF_METRIC_COLLECTOR_H_