class

Ping::HistoryRepository

Inherits Reference < Object

Constants

BUSY_TIMEOUT_MS = 5000

Constructors

new(path : String = Settings.history_db_path)
Source

Instance methods

close
Source
close_session(session_id : Int64, ended_at : Time) : Nil
Source
create_session(host : String, instance_id : String, started_at : Time) : MonitoringSession
Source
load_history(host : String, since : Time | Nil = nil, until_time : Time | Nil = nil) : Tuple(Array(MonitoringSession), Array(Sample))
Source
load_samples(host : String, since : Time | Nil = nil, until_time : Time | Nil = nil) : Array(Sample)
Source
load_sessions(host : String, since : Time | Nil = nil, until_time : Time | Nil = nil) : Array(MonitoringSession)
Source
save_sample(session_id : Int64, sample : Sample) : Nil
Source