blob: 4e7130e0170e3a62d551987f1eb7b656a275c2b4 (
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 "dimension.h"
#include "name_repo.h"
namespace vespalib::metrics {
Dimension
Dimension::from_name(const vespalib::string& name)
{
return NameRepo::instance.dimension(name);
}
const vespalib::string&
Dimension::as_name() const
{
return NameRepo::instance.dimensionName(*this);
}
} // namespace vespalib::metrics
|