Kapacitor send email after the last trigger will finished

I want to monitor the certificate expiration date via Kapacitor.

Right now I’m storing data regarding certificates in the InfluxDB and update it once in a day.
When the data comes to the InfluxDB, Kapacitor checks the data and write them to the log file(for example I have 10 certs).

I want to receive in one email table with all expired certificates, and if I will use standard SMTP trigger, I will sends to me one email on each certificate, but I want to do it in one email(all certs)

Which kind of trigger or some kind of logic I can implement here??