NVIDIA DeepStream SDK API Reference

9.2 Release
metrics::Histogram< T > Class Template Referenceabstract

Detailed Description

template<class T>
class metrics::Histogram< T >

A histogram instrument that records values.

Definition at line 19 of file includes/opentelemetry/metrics/meter.h.

Inheritance diagram for metrics::Histogram< T >:

Public Member Functions

virtual void Record (T value, const context::Context &context) noexcept=0
 Records a value. More...
 
virtual void Record (T value, const common::KeyValueIterable &attributes, const context::Context &context) noexcept=0
 Records a value with a set of attributes. More...
 
template<class U , nostd::enable_if_t< common::detail::is_key_value_iterable< U >::value > * = nullptr>
void Record (T value, const U &attributes, const context::Context &context) noexcept
 
void Record (T value, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes, const context::Context &context) noexcept
 
virtual void Record (T value, const context::Context &context) noexcept=0
 Records a value. More...
 
virtual void Record (T value, const common::KeyValueIterable &attributes, const context::Context &context) noexcept=0
 Records a value with a set of attributes. More...
 
template<class U , nostd::enable_if_t< common::detail::is_key_value_iterable< U >::value > * = nullptr>
void Record (T value, const U &attributes, const context::Context &context) noexcept
 
void Record (T value, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes, const context::Context &context) noexcept
 

Member Function Documentation

◆ Record() [1/8]

template<class T >
virtual void metrics::Histogram< T >::Record ( T  value,
const common::KeyValueIterable &  attributes,
const context::Context &  context 
)
pure virtualnoexcept

Records a value with a set of attributes.

Parameters
valueThe measurement value. MUST be non-negative.
attributesA set of attributes to associate with the value..
contextThe explicit context to associate with this measurement.

Implemented in metrics::NoopHistogram< T >, and metrics::NoopHistogram< T >.

◆ Record() [2/8]

template<class T >
virtual void metrics::Histogram< T >::Record ( T  value,
const common::KeyValueIterable &  attributes,
const context::Context &  context 
)
pure virtualnoexcept

Records a value with a set of attributes.

Parameters
valueThe measurement value. MUST be non-negative.
attributesA set of attributes to associate with the value..
contextThe explicit context to associate with this measurement.

Implemented in metrics::NoopHistogram< T >, and metrics::NoopHistogram< T >.

◆ Record() [3/8]

template<class T >
virtual void metrics::Histogram< T >::Record ( T  value,
const context::Context &  context 
)
pure virtualnoexcept

Records a value.

Parameters
valueThe measurement value. MUST be non-negative.
contextThe explicit context to associate with this measurement.

Implemented in metrics::NoopHistogram< T >, and metrics::NoopHistogram< T >.

Referenced by metrics::Histogram< T >::Record().

◆ Record() [4/8]

template<class T >
virtual void metrics::Histogram< T >::Record ( T  value,
const context::Context &  context 
)
pure virtualnoexcept

Records a value.

Parameters
valueThe measurement value. MUST be non-negative.
contextThe explicit context to associate with this measurement.

Implemented in metrics::NoopHistogram< T >, and metrics::NoopHistogram< T >.

◆ Record() [5/8]

template<class T >
template<class U , nostd::enable_if_t< common::detail::is_key_value_iterable< U >::value > * = nullptr>
void metrics::Histogram< T >::Record ( T  value,
const U &  attributes,
const context::Context &  context 
)
inlinenoexcept

◆ Record() [6/8]

template<class T >
template<class U , nostd::enable_if_t< common::detail::is_key_value_iterable< U >::value > * = nullptr>
void metrics::Histogram< T >::Record ( T  value,
const U &  attributes,
const context::Context &  context 
)
inlinenoexcept

◆ Record() [7/8]

template<class T >
void metrics::Histogram< T >::Record ( T  value,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes,
const context::Context &  context 
)
inlinenoexcept

◆ Record() [8/8]

template<class T >
void metrics::Histogram< T >::Record ( T  value,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes,
const context::Context &  context 
)
inlinenoexcept

The documentation for this class was generated from the following files: