mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
* Add prometheus support * Add prometheus support * Add prometheus support * Add prometheus support * Add prometheus support --------- Co-authored-by: avigailo <avigailo@checkpoint.com>
31 lines
506 B
C++
Executable File
31 lines
506 B
C++
Executable File
#ifndef __PROMETHEUS_COMP_H__
|
|
#define __PROMETHEUS_COMP_H__
|
|
|
|
#include <memory>
|
|
|
|
#include "component.h"
|
|
#include "singleton.h"
|
|
|
|
#include "i_rest_api.h"
|
|
#include "i_messaging.h"
|
|
#include "generic_metric.h"
|
|
|
|
class PrometheusComp
|
|
:
|
|
public Component,
|
|
Singleton::Consume<I_RestApi>,
|
|
Singleton::Consume<I_Messaging>
|
|
{
|
|
public:
|
|
PrometheusComp();
|
|
~PrometheusComp();
|
|
|
|
void init() override;
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> pimpl;
|
|
};
|
|
|
|
#endif // __PROMETHEUS_COMP_H__
|