blob: 5c35c57de275d9b755ba73edd47ffb80b032e8bc [file] [log] [blame]
// 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<AggregateDataToGenerate> &buckets,
const std::set<std::vector<uint32_t>> & /*event_vectors*/,
const util::TimeInfo & /*time_info*/) {
CHECK(buckets.size() == 1) << "Hourly metrics only have 1 aggregation period bucket";
return GenerateHourlyObservation(buckets[0]);
}
} // namespace cobalt::local_aggregation