blob: a8551c028cfde0b6cf16eb9652ab54ba493104f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Vespa.ai. 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
|