metric_registry.pxd 1.1 KB

1234567891011121314151617181920212223242526272829
  1. from util.datetime.base cimport TInstant
  2. from library.python.monlib.labels cimport ILabels, TLabels
  3. from library.python.monlib.metric_consumer cimport IMetricConsumer
  4. from library.python.monlib.metric cimport (
  5. TGauge, TIntGauge, TRate, TCounter, THistogram,
  6. IHistogramCollectorPtr)
  7. cdef extern from "library/cpp/monlib/metrics/metric_registry.h" namespace "NMonitoring" nogil:
  8. cdef cppclass TMetricRegistry:
  9. TMetricRegistry() except +
  10. TMetricRegistry(const TLabels&) except +
  11. TGauge* Gauge(const TLabels&) except +
  12. TIntGauge* IntGauge(const TLabels&) except +
  13. TCounter* Counter(const TLabels&) except +
  14. TRate* Rate(const TLabels&) except +
  15. THistogram* HistogramCounter(const TLabels&, IHistogramCollectorPtr collector) except +
  16. THistogram* HistogramRate(const TLabels&, IHistogramCollectorPtr collector) except +
  17. void Reset() except +
  18. void Accept(TInstant time, IMetricConsumer* consumer) except +
  19. void Append(TInstant time, IMetricConsumer* consumer) except +
  20. const TLabels& CommonLabels() const
  21. void RemoveMetric(const TLabels&)