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

Aggregated uptime metrics for the system. More...

#include <uptime_collector.h>

Collaboration diagram for kcenon::monitoring::uptime_metrics:
Collaboration graph

Public Attributes

double uptime_seconds {0.0}
 Time since boot in seconds (gauge)
 
int64_t boot_timestamp {0}
 Unix timestamp of last boot (gauge)
 
double idle_seconds {0.0}
 Total idle time in seconds (Linux only)
 
bool metrics_available {false}
 Whether metrics are available.
 
std::chrono::system_clock::time_point timestamp
 Reading timestamp.
 

Detailed Description

Aggregated uptime metrics for the system.

Definition at line 39 of file uptime_collector.h.

Member Data Documentation

◆ boot_timestamp

int64_t kcenon::monitoring::uptime_metrics::boot_timestamp {0}

Unix timestamp of last boot (gauge)

Definition at line 41 of file uptime_collector.h.

41{0};

◆ idle_seconds

double kcenon::monitoring::uptime_metrics::idle_seconds {0.0}

Total idle time in seconds (Linux only)

Definition at line 42 of file uptime_collector.h.

42{0.0};

◆ metrics_available

bool kcenon::monitoring::uptime_metrics::metrics_available {false}

Whether metrics are available.

Definition at line 44 of file uptime_collector.h.

44{false};

◆ timestamp

std::chrono::system_clock::time_point kcenon::monitoring::uptime_metrics::timestamp

Reading timestamp.

Definition at line 45 of file uptime_collector.h.

◆ uptime_seconds

double kcenon::monitoring::uptime_metrics::uptime_seconds {0.0}

Time since boot in seconds (gauge)

Definition at line 40 of file uptime_collector.h.

40{0.0};

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