Giter VIP home page Giter VIP logo

taskeye's Introduction

说明

用途

该程序是用于对定时任务进行监控

  • 基于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
	}
}

git 命令

----------------------------------------
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

taskeye's People

Contributors

zhiyu2018 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.