// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "handle.h" #include namespace vespalib::metrics { struct MetricIdTag {}; /** * Opaque handle representing an uniquely named metric. **/ struct MetricId : Handle { explicit MetricId(size_t id) : Handle(id) {} static MetricId from_name(const vespalib::string& name); const vespalib::string& as_name() const; }; } // namespace vespalib::metrics