struct

JaneHQ::AgentRecord

Inherits Struct < Value < Object

A row from the agents table (latest known state of one reporting host).

Constructors

from_rs(rs : DB::ResultSet) : AgentRecord
Source
new(id : Int64, hostname : String, os : String, kernel : String, uptime : String, cpu_model : String, cpu_cores : Int32, cpu_usage : String, load_avg : String, total_memory : String, used_memory : String, free_memory : String, memory_usage : String, jane_version : String, unmonitored : String, alert_count : Int32, check_count : Int32, first_seen : Int64, last_seen : Int64)
Source

Instance methods

alert_count
Source
check_count
Source
cpu_cores
Source
cpu_model
Source
cpu_usage
Source
first_seen
Source
free_memory
Source
hostname
Source
jane_version
Source
kernel
Source
last_seen
Source
last_seen_at
Source
load_avg
Source
memory_usage
Source
stale?(stale_after : Int32, now : Int64 = Time.utc.to_unix) : Bool
Source
total_memory
Source
unmonitored
Source
unmonitored_tags
Source
uptime
Source
used_memory
Source