NVIDIA DeepStream SDK API Reference

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

Detailed Description

template<class T>
class metrics::Counter< T >

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

Inheritance diagram for metrics::Counter< T >:

Public Member Functions

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

Member Function Documentation

◆ Add() [1/16]

template<class T >
virtual void metrics::Counter< T >::Add ( T  value)
pure virtualnoexcept

Record a value.

Parameters
valueThe increment amount. MUST be non-negative.

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

Referenced by metrics::Counter< T >::Add().

◆ Add() [2/16]

template<class T >
virtual void metrics::Counter< T >::Add ( T  value)
pure virtualnoexcept

Record a value.

Parameters
valueThe increment amount. MUST be non-negative.

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

◆ Add() [3/16]

template<class T >
virtual void metrics::Counter< T >::Add ( T  value,
const common::KeyValueIterable &  attributes 
)
pure virtualnoexcept

Record a value with a set of attributes.

Parameters
valueThe increment amount. MUST be non-negative.
attributesA set of attributes to associate with the value.

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

◆ Add() [4/16]

template<class T >
virtual void metrics::Counter< T >::Add ( T  value,
const common::KeyValueIterable &  attributes 
)
pure virtualnoexcept

Record a value with a set of attributes.

Parameters
valueThe increment amount. MUST be non-negative.
attributesA set of attributes to associate with the value.

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

◆ Add() [5/16]

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

Record a value with a set of attributes.

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

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

◆ Add() [6/16]

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

Record a value with a set of attributes.

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

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

◆ Add() [7/16]

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

Record a value.

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

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

◆ Add() [8/16]

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

Record a value.

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

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

◆ Add() [9/16]

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

◆ Add() [10/16]

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

◆ Add() [11/16]

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

◆ Add() [12/16]

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

◆ Add() [13/16]

template<class T >
void metrics::Counter< T >::Add ( T  value,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes 
)
inlinenoexcept

◆ Add() [14/16]

template<class T >
void metrics::Counter< T >::Add ( T  value,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes 
)
inlinenoexcept

◆ Add() [15/16]

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

◆ Add() [16/16]

template<class T >
void metrics::Counter< T >::Add ( 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: