-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62216/
-----------------------------------------------------------
Review request for Ambari, Jonathan Hurley, Nate Cole, and Sebastian Toader.
Bugs: AMBARI-21922
https://issues.apache.org/jira/browse/AMBARI-21922
Repository: ambari
Description
-------
There is a type of alert known as a "SERVER" alert which is a Java class that
runs inside of the Ambari Server. We use these alerts to check for specific
issues with the Ambari Server itself.
However, nothing should prevent a cluster's services from being able to define
one of these.
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
d71429c
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java
de203be
ambari-server/src/main/java/org/apache/ambari/server/state/services/AmbariServerAlertService.java
b8058c8
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java
33d9b3d
Diff: https://reviews.apache.org/r/62216/diff/1/
Testing
-------
- creted a zookeeper alert with sourceType = 'SERVER' and schedule interval 1
minutes
- waited one minutes
- checked that alert was scheduled and executed by the ambari server
existing tests: pending
Thanks,
Attila Magyar