NVIDIA DeepStream SDK API Reference

8.0 Release
sources/includes/prometheus/serializer.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iosfwd>
4 #include <string>
5 #include <vector>
6 
7 #include "prometheus/detail/core_export.h"
8 #include "prometheus/metric_family.h"
9 
10 namespace prometheus {
11 
13  public:
14  virtual ~Serializer() = default;
15  virtual std::string Serialize(const std::vector<MetricFamily>&) const;
16  virtual void Serialize(std::ostream& out,
17  const std::vector<MetricFamily>& metrics) const = 0;
18 };
19 
20 } // namespace prometheus
prometheus::Serializer
Definition: sources/includes/prometheus/serializer.h:12
prometheus
Definition: sources/includes/prometheus/check_names.h:8
PROMETHEUS_CPP_CORE_EXPORT
#define PROMETHEUS_CPP_CORE_EXPORT
Definition: sources/includes/prometheus/detail/core_export.h:15