NVIDIA DeepStream SDK API Reference

8.0 Release
sources/includes/prometheus/collectable.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include "prometheus/detail/core_export.h"
6 
7 namespace prometheus {
8 struct MetricFamily;
9 }
10 
11 namespace prometheus {
12 
18  public:
19  virtual ~Collectable() = default;
20 
22  virtual std::vector<MetricFamily> Collect() const = 0;
23 };
24 
25 } // namespace prometheus
prometheus::Collectable
Interface implemented by anything that can be used by Prometheus to collect metrics.
Definition: sources/includes/prometheus/collectable.h:17
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