| // Copyright 2019 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. |
| |
| #ifndef COBALT_SRC_LOGGER_TYPES_H_ |
| #define COBALT_SRC_LOGGER_TYPES_H_ |
| |
| #include <memory> |
| #include <string> |
| |
| #include <google/protobuf/repeated_field.h> |
| |
| #include "src/pb/event.pb.h" |
| #include "src/pb/observation.pb.h" |
| #include "src/registry/metric_definition.pb.h" |
| #include "src/registry/report_definition.pb.h" |
| |
| namespace cobalt { |
| namespace logger { |
| |
| // A HistogramPtr provides a moveable way of passing the buckets of a Histogram. |
| using HistogramPtr = std::unique_ptr<google::protobuf::RepeatedPtrField<HistogramBucket>>; |
| |
| // A EventValuesPtr provides a moveable way of passing the dimensions of a |
| // custom event. |
| using EventValuesPtr = std::unique_ptr<google::protobuf::Map<std::string, CustomDimensionValue>>; |
| |
| } // namespace logger |
| } // namespace cobalt |
| |
| #endif // COBALT_SRC_LOGGER_TYPES_H_ |