| // Copyright 2020 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "src/local_aggregation_1_1/aggregation_procedures/hourly_aggregation_procedure.h" |
| |
| namespace cobalt::local_aggregation { |
| |
| lib::statusor::StatusOr<std::unique_ptr<Observation>> |
| HourlyAggregationProcedure::GenerateSingleObservation( |
| const std::vector<EventCodeAggregate *> &aggregates, |
| const std::set<std::vector<uint32_t>> & /*event_vectors*/) { |
| CHECK(aggregates.size() == 1) << "Hourly metrics only have 1 aggregate"; |
| |
| return GenerateHourlyObservation(aggregates[0]); |
| } |
| |
| } // namespace cobalt::local_aggregation |