Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: #223
- Loading branch information
Showing
29 changed files
with
226 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#pragma once | ||
|
||
#include <map> | ||
#include <string> | ||
|
||
#include "prometheus/detail/core_export.h" | ||
|
||
namespace prometheus { | ||
|
||
template <typename T> | ||
class Family; | ||
class Counter; | ||
class Registry; | ||
|
||
namespace detail { | ||
|
||
class PROMETHEUS_CPP_CORE_EXPORT CounterBuilder { | ||
public: | ||
CounterBuilder& Labels(const std::map<std::string, std::string>& labels); | ||
CounterBuilder& Name(const std::string&); | ||
CounterBuilder& Help(const std::string&); | ||
Family<Counter>& Register(Registry&); | ||
|
||
private: | ||
std::map<std::string, std::string> labels_; | ||
std::string name_; | ||
std::string help_; | ||
}; | ||
|
||
} // namespace detail | ||
} // namespace prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#pragma once | ||
|
||
#include <map> | ||
#include <string> | ||
|
||
#include "prometheus/detail/core_export.h" | ||
|
||
namespace prometheus { | ||
|
||
template <typename T> | ||
class Family; | ||
class Gauge; | ||
class Registry; | ||
|
||
namespace detail { | ||
|
||
class PROMETHEUS_CPP_CORE_EXPORT GaugeBuilder { | ||
public: | ||
GaugeBuilder& Labels(const std::map<std::string, std::string>& labels); | ||
GaugeBuilder& Name(const std::string&); | ||
GaugeBuilder& Help(const std::string&); | ||
Family<Gauge>& Register(Registry&); | ||
|
||
private: | ||
std::map<std::string, std::string> labels_; | ||
std::string name_; | ||
std::string help_; | ||
}; | ||
|
||
} // namespace detail | ||
} // namespace prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#pragma once | ||
|
||
#include <map> | ||
#include <string> | ||
|
||
#include "prometheus/detail/core_export.h" | ||
|
||
namespace prometheus { | ||
|
||
template <typename T> | ||
class Family; | ||
class Histogram; | ||
class Registry; | ||
|
||
namespace detail { | ||
|
||
class PROMETHEUS_CPP_CORE_EXPORT HistogramBuilder { | ||
public: | ||
HistogramBuilder& Labels(const std::map<std::string, std::string>& labels); | ||
HistogramBuilder& Name(const std::string&); | ||
HistogramBuilder& Help(const std::string&); | ||
Family<Histogram>& Register(Registry&); | ||
|
||
private: | ||
std::map<std::string, std::string> labels_; | ||
std::string name_; | ||
std::string help_; | ||
}; | ||
|
||
} // namespace detail | ||
} // namespace prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#pragma once | ||
|
||
#include <map> | ||
#include <string> | ||
|
||
#include "prometheus/detail/core_export.h" | ||
|
||
namespace prometheus { | ||
|
||
template <typename T> | ||
class Family; | ||
class Summary; | ||
class Registry; | ||
|
||
namespace detail { | ||
|
||
class PROMETHEUS_CPP_CORE_EXPORT SummaryBuilder { | ||
public: | ||
SummaryBuilder& Labels(const std::map<std::string, std::string>& labels); | ||
SummaryBuilder& Name(const std::string&); | ||
SummaryBuilder& Help(const std::string&); | ||
Family<Summary>& Register(Registry&); | ||
|
||
private: | ||
std::map<std::string, std::string> labels_; | ||
std::string name_; | ||
std::string help_; | ||
}; | ||
|
||
} // namespace detail | ||
} // namespace prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.