Abstract interface for platform-specific metrics collection.
More...
#include <metrics_provider.h>
Abstract interface for platform-specific metrics collection.
This class defines the interface that all platform-specific implementations must follow. Use the static create() method to get a platform-appropriate implementation.
Definition at line 174 of file metrics_provider.h.
◆ ~metrics_provider()
| virtual kcenon::monitoring::platform::metrics_provider::~metrics_provider |
( |
| ) |
|
|
virtualdefault |
◆ metrics_provider() [1/3]
| kcenon::monitoring::platform::metrics_provider::metrics_provider |
( |
const metrics_provider & | | ) |
|
|
delete |
◆ metrics_provider() [2/3]
| kcenon::monitoring::platform::metrics_provider::metrics_provider |
( |
metrics_provider && | | ) |
|
|
delete |
◆ metrics_provider() [3/3]
| kcenon::monitoring::platform::metrics_provider::metrics_provider |
( |
| ) |
|
|
protecteddefault |
◆ create()
| static std::unique_ptr< metrics_provider > kcenon::monitoring::platform::metrics_provider::create |
( |
| ) |
|
|
static |
Create a platform-specific metrics provider.
- Returns
- Unique pointer to the appropriate platform implementation
◆ get_battery_readings()
| virtual std::vector< battery_reading > kcenon::monitoring::platform::metrics_provider::get_battery_readings |
( |
| ) |
|
|
pure virtual |
Get battery readings from all available batteries.
- Returns
- Vector of battery readings
◆ get_context_switches()
| virtual context_switch_info kcenon::monitoring::platform::metrics_provider::get_context_switches |
( |
| ) |
|
|
pure virtual |
Get context switch statistics.
- Returns
- Context switch info structure
◆ get_fd_stats()
| virtual fd_info kcenon::monitoring::platform::metrics_provider::get_fd_stats |
( |
| ) |
|
|
pure virtual |
Get file descriptor statistics.
- Returns
- File descriptor info structure
◆ get_gpu_info()
| virtual std::vector< gpu_info > kcenon::monitoring::platform::metrics_provider::get_gpu_info |
( |
| ) |
|
|
pure virtual |
Get GPU information and metrics.
- Returns
- Vector of GPU info structures
◆ get_inode_stats()
| virtual std::vector< inode_info > kcenon::monitoring::platform::metrics_provider::get_inode_stats |
( |
| ) |
|
|
pure virtual |
Get inode statistics for all filesystems.
- Returns
- Vector of inode info structures
◆ get_interrupt_stats()
| virtual std::vector< interrupt_info > kcenon::monitoring::platform::metrics_provider::get_interrupt_stats |
( |
| ) |
|
|
pure virtual |
Get interrupt statistics.
- Returns
- Vector of interrupt info structures
◆ get_platform_name()
| virtual std::string kcenon::monitoring::platform::metrics_provider::get_platform_name |
( |
| ) |
const |
|
pure virtual |
Get the platform name.
- Returns
- Platform identifier (e.g., "linux", "macos", "windows")
◆ get_power_info()
| virtual power_info kcenon::monitoring::platform::metrics_provider::get_power_info |
( |
| ) |
|
|
pure virtual |
Get power consumption information.
- Returns
- Power info structure
◆ get_security_info()
| virtual security_info kcenon::monitoring::platform::metrics_provider::get_security_info |
( |
| ) |
|
|
pure virtual |
Get security-related metrics.
- Returns
- Security info structure
◆ get_socket_buffer_stats()
| virtual socket_buffer_info kcenon::monitoring::platform::metrics_provider::get_socket_buffer_stats |
( |
| ) |
|
|
pure virtual |
Get socket buffer statistics.
- Returns
- Socket buffer info structure
◆ get_tcp_states()
| virtual tcp_state_info kcenon::monitoring::platform::metrics_provider::get_tcp_states |
( |
| ) |
|
|
pure virtual |
Get TCP connection state statistics.
- Returns
- TCP state info structure
◆ get_temperature_readings()
| virtual std::vector< temperature_reading > kcenon::monitoring::platform::metrics_provider::get_temperature_readings |
( |
| ) |
|
|
pure virtual |
Get temperature readings from all available sensors.
- Returns
- Vector of temperature readings
◆ get_uptime()
| virtual uptime_info kcenon::monitoring::platform::metrics_provider::get_uptime |
( |
| ) |
|
|
pure virtual |
Get system uptime information.
- Returns
- Uptime info structure
◆ is_battery_available()
| virtual bool kcenon::monitoring::platform::metrics_provider::is_battery_available |
( |
| ) |
const |
|
pure virtual |
Check if battery monitoring is available.
- Returns
- True if battery metrics can be collected
◆ is_gpu_available()
| virtual bool kcenon::monitoring::platform::metrics_provider::is_gpu_available |
( |
| ) |
const |
|
pure virtual |
Check if GPU monitoring is available.
- Returns
- True if GPU metrics can be collected
◆ is_power_available()
| virtual bool kcenon::monitoring::platform::metrics_provider::is_power_available |
( |
| ) |
const |
|
pure virtual |
Check if power monitoring is available.
- Returns
- True if power metrics can be collected
◆ is_temperature_available()
| virtual bool kcenon::monitoring::platform::metrics_provider::is_temperature_available |
( |
| ) |
const |
|
pure virtual |
Check if temperature monitoring is available.
- Returns
- True if temperature metrics can be collected
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: