juzhiyuan opened a new issue #470:
URL: https://github.com/apache/apisix-dashboard/issues/470


   
![image](https://user-images.githubusercontent.com/2106987/92912362-4e892200-f45c-11ea-8c1c-092eefcfec77.png)
   
   ## Why
   Doc: https://github.com/apache/apisix/blob/master/doc/health-check.md
   
   ## How
   Active and passive checks exist in parallel in the upstream module as 
separate configurations, they should obey the following rules.
   1. All disabled: Only show the Ant Design Switcher components for those two 
fields, no more configuration form;
   2. Enable active check: show its configuration form;
   3. Enable passive check
        1. Check if the active check is enabled, if not, just show a warning 
notification by using Ant Design’s Notification component, and tell users to 
enable the active check first.
        2. If the active check is enabled, then users could enable the passive 
check and show its form.
   
   ## API
   1. Test cases: 
https://github.com/apache/apisix/blob/master/t/admin/health-check.t#L61
   
   ## Reference
   1. Default values: TODO
   2. Logic: 
https://github.com/apache/apisix/blob/master/apisix/admin/upstreams.lua


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


Reply via email to