该程序是用于对定时任务进行监控。
- 基于cron 表达式的定时任务。
- 基于每隔多长时间的定时任务。
- 先利用SQL创建表。
- task.monitor:参考配置文件.
- restful: 参考配置文件
- 参考 batch_job
提供如下协议的http接口
public interface AlarmOutBox {
@RequestLine("POST /alarm/submit")
@Headers("Content-Type: application/json")
String submitEvent(AlarmEvent event);
@RequestLine("POST /alarm/submit")
@Headers("Content-Type: application/json")
String batchEvent(List<AlarmEvent> events);
}
并在monitor 程序中启用如下的配置:
task:
eye:
alarm:
enable: false
url:
POST 127.0.0.1:8090/rest/task
{
"flowId": "1456987",
"appId": "Teana",
"data":{
"appId": "Teana",
"taskName": "Per 40 two",
"timeExpr": "/40 * * * * ?",
"delay": 5
}
}
----------------------------------------
echo "# taskeye" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/ZhiYu2018/taskeye.git
git push -u origin master
--------------------------------------------
…or push an existing repository from the command line
git remote add origin https://github.com/ZhiYu2018/taskeye.git
git push -u origin master