libstatistics_collector  master
Lightweight aggregation utilities to collect statistics and measure message metrics.
All Classes Functions Variables Pages
metric_details_interface.hpp
1 // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef LIBSTATISTICS_COLLECTOR__COLLECTOR__METRIC_DETAILS_INTERFACE_HPP_
16 #define LIBSTATISTICS_COLLECTOR__COLLECTOR__METRIC_DETAILS_INTERFACE_HPP_
17 
18 #include <string>
19 
20 #include "libstatistics_collector/visibility_control.hpp"
21 
22 namespace libstatistics_collector
23 {
24 namespace collector
25 {
26 
31 class LIBSTATISTICS_COLLECTOR_PUBLIC MetricDetailsInterface
32 {
33 public:
34  virtual ~MetricDetailsInterface() = default;
35 
41  virtual std::string GetMetricName() const = 0;
42 
48  virtual std::string GetMetricUnit() const = 0;
49 };
50 
51 } // namespace collector
52 } // namespace libstatistics_collector
53 
54 #endif // LIBSTATISTICS_COLLECTOR__COLLECTOR__METRIC_DETAILS_INTERFACE_HPP_
libstatistics_collector::collector::MetricDetailsInterface
Definition: metric_details_interface.hpp:31