struct

Chronicle::Models::WindowEvent

Inherits JSON::Serializable < Struct < Value < Object

Represents an active application window focus span.

Constructors

new(app_id : String, title : String, workspace : String = "1", started_at : Time = Time.utc, ended_at : Time | Nil = nil, duration_seconds : Float64 = 0.0, id : Int64 | Nil = nil, timestamp : Time | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

active?
Source
app_id
Source
app_id=(app_id : String)
Source
close(at : Time = Time.utc) : WindowEvent
Source
duration_seconds
Source
duration_seconds=(duration_seconds : Float64)
Source
ended_at
Source
ended_at=(ended_at : Time | Nil)
Source
id=(id : Int64 | Nil)
Source
started_at
Source
started_at=(started_at : Time)
Source
timestamp
Source
title
Source
title=(title : String)
Source
workspace
Source
workspace=(workspace : String)
Source