Kagome
Polkadot Runtime Engine in C++17
kagome::metrics::Summary Class Referenceabstract

A summary metric samples observations over a sliding window of time. More...

#include <metrics.hpp>

Inheritance diagram for kagome::metrics::Summary:
Collaboration diagram for kagome::metrics::Summary:

Public Member Functions

virtual ~Summary ()=default
 
virtual void observe (const double value)=0
 Observe the given amount. More...
 

Detailed Description

A summary metric samples observations over a sliding window of time.

This class represents the metric type summary: https://prometheus.io/docs/instrumenting/writing_clientlibs/#summary

Definition at line 91 of file metrics.hpp.

Constructor & Destructor Documentation

virtual kagome::metrics::Summary::~Summary ( )
virtualdefault

Member Function Documentation

virtual void kagome::metrics::Summary::observe ( const double  value)
pure virtual

Observe the given amount.

Implemented in kagome::metrics::PrometheusSummary.


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