JoobQ::ErrorMonitor
Inherits JSON::Serializable < Reference < Object
Error monitoring and alerting system
Constructors
new(pull : JSON::PullParser)
Sourcenew(time_window : Time::Span = 5.minutes, max_recent_errors : Int32 = 100, notify_alert : Proc(Hash(String, String), Nil) = ->(_alert_context : Hash(String, String)) do
end)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
alert_thresholds
Sourceclear_old_errors
Sourceclear_redis_errors
Sourceerror_counts
Sourceget_error_stats
SourceGet error information for multiple jobs in batch
Get recent errors with pagination support
get_time_windowed_error_stats
Sourceload_errors_from_redis
Sourcemax_recent_errors
Sourcenotify_alert
Sourcerecent_errors
Sourcerecord_error(error_context : ErrorContext) : Nil
Sourcereset
SourceBatch error storage for improved performance
time_window
Sourcetime_window=(window : Time::Span)
Source