Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
tracker_with_config< ENV, EVENT >::prometheus_event_handler Struct Referencefinal

default event handlers for prometheus More...

#include <tracker.h>

Inheritance diagram for tracker_with_config< ENV, EVENT >::prometheus_event_handler:
Inheritance graph
Collaboration diagram for tracker_with_config< ENV, EVENT >::prometheus_event_handler:
Collaboration graph

Public Member Functions

 prometheus_event_handler (prometheus_server &server)
 
void handle (tracker_event< EVENT > &e)
 implement this function to handle the event More...
 
- Public Member Functions inherited from event_handler< EVENT >
virtual ~event_handler ()=default
 
std::shared_ptr< event_handler< EVENT > > add_handler (std::shared_ptr< event_handler< EVENT >> handler)
 add a next handler after this handler More...
 
void do_handle_event (tracker_event< EVENT > &e)
 
- Public Member Functions inherited from event_handler_base< EVENT >
virtual ~event_handler_base ()=default
 

Additional Inherited Members

- Public Attributes inherited from event_handler< EVENT >
std::shared_ptr< event_handler_base< EVENT > > next_handler
 

Detailed Description

template<typename ENV, typename EVENT>
struct tracker_with_config< ENV, EVENT >::prometheus_event_handler

default event handlers for prometheus

Constructor & Destructor Documentation

◆ prometheus_event_handler()

template<typename ENV , typename EVENT >
tracker_with_config< ENV, EVENT >::prometheus_event_handler::prometheus_event_handler ( prometheus_server server)
inline

Member Function Documentation

◆ handle()

template<typename ENV , typename EVENT >
void tracker_with_config< ENV, EVENT >::prometheus_event_handler::handle ( tracker_event< EVENT > &  e)
inlinevirtual

implement this function to handle the event

Implements event_handler< EVENT >.


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