blob: 3b87c0b48387ce1aed7ddcb1d05172e3bd44cc64 [file] [log] [blame] [edit]
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIBHWSEC_MIDDLEWARE_METRICS_H_
#define LIBHWSEC_MIDDLEWARE_METRICS_H_
#include <memory>
#include <string>
#include <utility>
#include <metrics/metrics_library.h>
#include "libhwsec/status.h"
#ifndef BUILD_LIBHWSEC
#error "Don't include this file outside libhwsec!"
#endif
namespace hwsec {
class Metrics : private MetricsLibrary {
public:
Metrics() = default;
Metrics(const Metrics&) = delete;
bool SendFuncResultToUMA(const std::string& func_name, const Status& status);
private:
MetricsLibraryInterface* metrics_{this};
};
} // namespace hwsec
#endif // LIBHWSEC_MIDDLEWARE_METRICS_H_