blob: af98ba2de183456fff54571baa5b2f0da34b4c3c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright 2017 Yahoo Holdings. 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) {
MetricIdentifier fullId(_id, point);
_manager->sample(Measurement(fullId, value));
}
}
} // namespace vespalib::metrics
} // namespace vespalib
|