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

Platform uptime information. More...

#include <platform_metrics_collector.h>

Collaboration diagram for kcenon::monitoring::platform_uptime:
Collaboration graph

Public Attributes

int64_t uptime_seconds {0}
 System uptime in seconds.
 
int64_t idle_seconds {0}
 Total idle time in seconds.
 
int64_t boot_timestamp {0}
 Unix timestamp of last boot.
 
bool available {false}
 Whether uptime info is available.
 

Detailed Description

Platform uptime information.

Examples
platform_metrics_example.cpp.

Definition at line 63 of file platform_metrics_collector.h.

Member Data Documentation

◆ available

bool kcenon::monitoring::platform_uptime::available {false}

Whether uptime info is available.

Examples
platform_metrics_example.cpp.

Definition at line 67 of file platform_metrics_collector.h.

67{false};

Referenced by display_uptime_metrics().

◆ boot_timestamp

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

Unix timestamp of last boot.

Examples
platform_metrics_example.cpp.

Definition at line 66 of file platform_metrics_collector.h.

66{0};

Referenced by display_uptime_metrics().

◆ idle_seconds

int64_t kcenon::monitoring::platform_uptime::idle_seconds {0}

Total idle time in seconds.

Examples
platform_metrics_example.cpp.

Definition at line 65 of file platform_metrics_collector.h.

65{0};

Referenced by display_uptime_metrics().

◆ uptime_seconds

int64_t kcenon::monitoring::platform_uptime::uptime_seconds {0}

System uptime in seconds.

Examples
platform_metrics_example.cpp.

Definition at line 64 of file platform_metrics_collector.h.

64{0};

Referenced by display_uptime_metrics().


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