mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +01:00
34 lines
594 B
C++
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
|