blob: 7ce012ad5fd31cd30043ab3af59ef88947d2db3b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "metric_id.h"
#include "name_repo.h"
namespace vespalib::metrics {
MetricId
MetricId::from_name(const vespalib::string& name)
{
return NameRepo::instance.metric(name);
}
const vespalib::string&
MetricId::as_name() const
{
return NameRepo::instance.metricName(*this);
}
} // namespace vespalib::metrics
|