poco/Prometheus/src/IntCounter.cpp
2022-05-17 08:18:54 +02:00

34 lines
594 B
C++

//
// IntCounter.cpp
//
// Library: Prometheus
// Package: Core
// Module: IntCounter
//
// Copyright (c) 2022, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Prometheus/IntCounter.h"
#include "Poco/Prometheus/Exporter.h"
#include <vector>
namespace Poco {
namespace Prometheus {
void IntCounter::exportTo(Exporter& exporter) const
{
const std::vector<std::string> EMPTY_VEC;
exporter.writeHeader(*this);
exporter.writeSample(*this, EMPTY_VEC, EMPTY_VEC, _value, 0);
}
} } // namespace Poco::Prometheus