Koha::Notice::Message - Koha notice message Object class, related to the message_queue table
my $failed_notices = Koha::Notice::Messages->get_failed_notices({ days => 7 });
Returns a hashref of all notices that have failed to send in the last X days, as specified in the 'days' parameter. If not specified, will default to the last 7 days.