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

an interface to add request handler for metrics::Exposer implementation generally will contain metrics serializer More...

#include <handler.hpp>

Inheritance diagram for kagome::metrics::Handler:
Collaboration diagram for kagome::metrics::Handler:

Public Member Functions

virtual ~Handler ()=default
 
virtual void registerCollectable (Registry &registry)=0
 registers general type metrics registry for metrics collection More...
 
virtual void onSessionRequest (Session::Request request, std::shared_ptr< Session > session)=0
 main interface for session request handling More...
 

Detailed Description

an interface to add request handler for metrics::Exposer implementation generally will contain metrics serializer

Definition at line 22 of file handler.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void kagome::metrics::Handler::onSessionRequest ( Session::Request  request,
std::shared_ptr< Session session 
)
pure virtual

main interface for session request handling

Implemented in kagome::metrics::PrometheusHandler.

virtual void kagome::metrics::Handler::registerCollectable ( Registry registry)
pure virtual

registers general type metrics registry for metrics collection

Implemented in kagome::metrics::PrometheusHandler.


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