Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::platform::power_info Struct Reference

Power consumption information. More...

#include <metrics_provider.h>

Collaboration diagram for kcenon::monitoring::platform::power_info:
Collaboration graph

Public Attributes

double power_watts {0.0}
 Current power consumption in watts.
 
double voltage_volts {0.0}
 Voltage in volts.
 
double current_amps {0.0}
 Current in amps.
 
std::string source
 Power source (AC, battery, etc.)
 
bool available {false}
 Whether info is available.
 

Detailed Description

Power consumption information.

Definition at line 131 of file metrics_provider.h.

Member Data Documentation

◆ available

bool kcenon::monitoring::platform::power_info::available {false}

Whether info is available.

Definition at line 136 of file metrics_provider.h.

136{false};

◆ current_amps

double kcenon::monitoring::platform::power_info::current_amps {0.0}

Current in amps.

Definition at line 134 of file metrics_provider.h.

134{0.0};

◆ power_watts

double kcenon::monitoring::platform::power_info::power_watts {0.0}

Current power consumption in watts.

Definition at line 132 of file metrics_provider.h.

132{0.0};

◆ source

std::string kcenon::monitoring::platform::power_info::source

Power source (AC, battery, etc.)

Definition at line 135 of file metrics_provider.h.

◆ voltage_volts

double kcenon::monitoring::platform::power_info::voltage_volts {0.0}

Voltage in volts.

Definition at line 133 of file metrics_provider.h.

133{0.0};

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