aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/metrics/gauge.cpp
blob: f5c529eb12cb027d4e75c4d8177b0d3b4908115c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "gauge.h"
#include "metrics_manager.h"

namespace vespalib {
namespace metrics {

void
Gauge::sample(double value, Point point) const
{
    if (_manager) {
        _manager->sample(Measurement(std::make_pair(_id, point), value));
    }
}

} // namespace vespalib::metrics
} // namespace vespalib