| // Copyright 2022 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef MINIOS_METRICS_REPORTER_INTERFACE_H_ |
| #define MINIOS_METRICS_REPORTER_INTERFACE_H_ |
| |
| #include <string> |
| |
| namespace minios { |
| |
| class MetricsReporterInterface { |
| public: |
| virtual ~MetricsReporterInterface() = default; |
| |
| // Report the recovery reason to be NBR. The metrics will be written to the |
| // stateful partition to be reported after next boot. See: |
| // init/upstart/send-recovery-metrics.conf |
| virtual void ReportNBRComplete() = 0; |
| }; |
| |
| } // namespace minios |
| |
| #endif // MINIOS_METRICS_REPORTER_INTERFACE_H_ |