blob: 997b46689459906d004e7eca596c7139544fcb2b [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 logger::Encoder *encoder, const std::vector<EventCodeAggregate *> &aggregates,
const std::set<uint32_t> & /*event_vectors*/) {
CHECK(aggregates.size() == 1) << "Hourly metrics only have 1 aggregate";
return GenerateHourlyObservation(encoder, aggregates[0]);
}
} // namespace cobalt::local_aggregation