Slair1 opened a new pull request #3908: Alert on certain host status transitions
URL: https://github.com/apache/cloudstack/pull/3908
 
 
   ## Description
   <!--- Describe your changes in detail -->
   Add ability to create alert for host status transitions, such as from 
Alert->Up or Up->Disconnected, etc.  Right now some transitions may alert, but 
we wanted to know about any major host status transition.  
   
   We also created a ConfigKey that defaults to the current behavior of not 
alerting on many of the transitions.  But, but changing the setting to True, we 
can receive the host transitions which we find very helpful.  Especially as 
once in a great while we'll have a host transition out of an Up status to 
something else.  But we never get an alert that it transitioned back to Up 
(even if it happened 1 second later)....
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to 
reproduce. -->
   
   <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be 
closed when this PR gets merged -->
   <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
   <!-- Fixes: # -->
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the 
boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [X] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [X] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## Screenshots (if appropriate):
   Our environment has it set to True, but it defaults to False.
   
![image](https://user-images.githubusercontent.com/17735593/75086251-b9423280-54f7-11ea-8898-0de7ebe03692.png)
   
![image](https://user-images.githubusercontent.com/17735593/75086270-e0006900-54f7-11ea-8270-2883e8c46569.png)
   
   ## How Has This Been Tested?
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to 
-->
   <!-- see how your change affects other areas of the code, etc. -->
   Tested putting hosts through various states.  Made sure we received the 
emails and the Alerts appear in the UI.
   
   <!-- Please read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md)
 document -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to