Canaryd.UnresponsiveMonitor (canaryd v0.3.0)

Copy Markdown View Source

Pure confirmation and cooldown policy for unresponsive GUI apps.

Summary

Functions

Evaluates one scan and returns {new_state, actions}.

Breaks the consecutive observation sequence after an unavailable scan.

Restart cooldown in milliseconds.

Functions

default_state()

evaluate(state, apps, now)

Evaluates one scan and returns {new_state, actions}.

Actions are {:detected, app, count}, {:restart, app}, {:choose, app}, or {:blocked, app}.

pending_apps(state)

reset_observations(state)

Breaks the consecutive observation sequence after an unavailable scan.

restart_cooldown()

Restart cooldown in milliseconds.