NVIDIA DeepStream SDK API Reference

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

Detailed Description

template<class T>
class metrics::UpDownCounter< T >

An up-down-counter instrument that adds or reduce values.

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

Inheritance diagram for metrics::UpDownCounter< 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::UpDownCounter< T >::Add ( T  value)
pure virtualnoexcept

Record a value.

Parameters
valueThe increment amount. May be positive, negative or zero.

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

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

◆ Add() [2/16]

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

Record a value.

Parameters
valueThe increment amount. May be positive, negative or zero.

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

◆ Add() [3/16]

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

Record a value with a set of attributes.

Parameters
valueThe increment amount. May be positive, negative or zero.
attributesA set of attributes to associate with the count.

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

◆ Add() [4/16]

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

Record a value with a set of attributes.

Parameters
valueThe increment amount. May be positive, negative or zero.
attributesA set of attributes to associate with the count.

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

◆ Add() [5/16]

template<class T >
virtual void metrics::UpDownCounter< 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. May be positive, negative or zero.
attributesA set of attributes to associate with the count.
contextThe explicit context to associate with this measurement.

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

◆ Add() [6/16]

template<class T >
virtual void metrics::UpDownCounter< 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. May be positive, negative or zero.
attributesA set of attributes to associate with the count.
contextThe explicit context to associate with this measurement.

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

◆ Add() [7/16]

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

Record a value.

Parameters
valueThe increment amount. May be positive, negative or zero.
contextThe explicit context to associate with this measurement.

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

◆ Add() [8/16]

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

Record a value.

Parameters
valueThe increment amount. May be positive, negative or zero.
contextThe explicit context to associate with this measurement.

Implemented in metrics::NoopUpDownCounter< T >, and metrics::NoopUpDownCounter< 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::UpDownCounter< 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::UpDownCounter< 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::UpDownCounter< 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::UpDownCounter< T >::Add ( T  value,
const U &  attributes,
const context::Context &  context 
)
inlinenoexcept

◆ Add() [13/16]

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

◆ Add() [14/16]

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

◆ Add() [15/16]

template<class T >
void metrics::UpDownCounter< 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::UpDownCounter< 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: