Monitoring  3.3.4
O2 Monitoring library
Noop.h
Go to the documentation of this file.
1 // Copyright CERN and copyright holders of ALICE O2. This software is
2 // distributed under the terms of the GNU General Public License v3 (GPL
3 // Version 3), copied verbatim in the file "COPYING".
4 //
5 // See http://alice-o2.web.cern.ch/license for full licensing information.
6 //
7 // In applying this license CERN does not waive the privileges and immunities
8 // granted to it by virtue of its status as an Intergovernmental Organization
9 // or submit itself to any jurisdiction.
10 
15 
16 #ifndef ALICEO2_MONITORING_BACKENDS_NOOP_H
17 #define ALICEO2_MONITORING_BACKENDS_NOOP_H
18 
19 #include "Monitoring/Backend.h"
20 
21 namespace o2
22 {
24 namespace monitoring
25 {
27 namespace backends
28 {
29 
33 class Noop final : public Backend
34 {
35  public:
37  Noop() = default;
38 
40  ~Noop() = default;
41 
43  void send(std::vector<Metric>&& /*metrics*/) final {}
44 
46  void send(const Metric& /*metric*/) final {}
47 
50  void addGlobalTag(std::string_view /*name*/, std::string_view /*value*/) final {}
51 };
52 
53 } // namespace backends
54 } // namespace monitoring
55 } // namespace o2
56 
57 #endif // ALICEO2_MONITORING_BACKENDS_NOOP_H
void addGlobalTag(std::string_view, std::string_view) final
Definition: Noop.h:50
Definition: Backend.h:23
Backend pure virtual interface.
Definition: Backend.h:33
Represents a metric including value, type of the value, name, timestamp and tags. ...
Definition: Metric.h:37
Noop()=default
Constructs backend.
void send(std::vector< Metric > &&) final
@param metrics vector of metrics
Definition: Noop.h:43
~Noop()=default
Default destructor.
No-op backend.
Definition: Noop.h:33
void send(const Metric &) final
Definition: Noop.h:46