I think we can refer to the implementation of spark listener, a few key points are as follows:
1. Define interface ListenerEvent, which can implement specific events. Examples of which build cubes are CubeBuildStart, CubeBuildStepXStart, CubeBuildStepXEnd, CubeBuildEnd. These specific classes can contain a lot of information, such as owner, success/failed, error msg, resource occupation, etc
2. Define interface Listener, which contains the monitoring of all events. When the user defines the Listener, some events can be selectively implemented as needed, for example, onCubeBuildStart and CubeBuildEnd can be implemented to obtain the time cost.
3. Define a ListenerBus that provides the ability to register listeners(by configured custom listener class names), receive events, and dispatch events to the appropriate Listener in the background
在 2020年2月4日 11:17,ShaoFeng Shi <[email protected]>写道:
Good proposal. Is there some standard and popular framework for this? We can integrate with the best solution there.Best regards,Shaofeng Shi 史少锋Apache Kylin PMCEmail: [email protected]Apache Kylin FAQ: https://kylin.apache.org/docs/gettingstarted/faq.htmlJoin Kylin user mail group: [email protected]Join Kylin dev mail group: [email protected]Liukaige <[email protected]> 于2020年1月25日周六 上午1:01写道:Totally agreed. And this feature can be integrated with ETL scheduling, data governance, approval flow etc. Brilliant idea. If you need any help, count me in.朱卫斌 <[email protected]> 于2020年1月20日周一 下午10:10写道:I think there should be a set of kylin's event, metrics mechanism, event-driven, provide event, metrics interfaces, we can implement specific listeners in the form of plugins. For example, we can implement dingtalk plugin, SMS plugin or any other plugin, which has a high Flexibility (Not only do notifications, but also do many things, such as unifying and even interfering with the task.). We can refer to the design and implementation of spark event and metrics.I think this is very valuable, we can do it together.
On 01/21/2020 10:57,Xiaoxiang Yu<[email protected]> wrote:It looks good, and it should be useful for IT team, please go ahead!--Best wishes to you !From :Xiaoxiang YuAt 2020-01-20 19:58:40, "Zhou Kang" <[email protected]> wrote:
Hi Kylin users & developers:
Many apps support webhook, it is one way that apps can send automated messages or information to other apps.
Use webhook, I think we can send messages to chat tools(slack, dingding), send sms , trigger another workflow.
Do we need to add webhook to Kylin? Such as when cubing job finished.
What do you think about this, and which is the better way in your environment ?
--Best regards,Kaige Liu(刘凯歌)"Do small things with great love."
