首页 > 解决方案 > 编写警报脚本

问题描述

我在文本文件中有如下数据。

source_table_name             | last_run_timestamp  | freq_in_secs
------------------------------+---------------------+-----------------------

                    table1 | 08/19/2019 14:30:27 |  300
                    table2 | 08/19/2019 14:30:26 |  600 
                    table3 | 08/19/2019 13:40:21 | 3660 

last_run_timestamp + freq_in_secs + 1200 secs > current timestamp如果然后发出警报,我想发送警报。我将在文件中有 100 行这样的行。我将不得不阅读此文件,进行上述计算,然后使用 shell 脚本发送警报。

标签: shell

解决方案


推荐阅读