import { Value } from '../../../cloudformation/Value';
import { DurationProps } from './DurationProps';
/**
  An object that represents the outlier detection for a virtual node’s listener.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html">the AWS Docs</a>
*/
export interface OutlierDetectionProps {
    /** <code>MaxEjectionPercent</code>  <a name="cfn-appmesh-virtualnode-outlierdetection-maxejectionpercent"></a>
  Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.<br />
  
  Required: Yes<br />
  
  Minimum: <code>0</code><br />
  
  Maximum: <code>100</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    maxEjectionPercent: Value<number>;
    /** <code>BaseEjectionDuration</code>  <a name="cfn-appmesh-virtualnode-outlierdetection-baseejectionduration"></a>
  The base amount of time for which a host is ejected.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    baseEjectionDuration: DurationProps;
    /** <code>MaxServerErrors</code>  <a name="cfn-appmesh-virtualnode-outlierdetection-maxservererrors"></a>
  Number of consecutive <code>5xx</code> errors required for ejection.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    maxServerErrors: Value<number>;
    /** <code>Interval</code>  <a name="cfn-appmesh-virtualnode-outlierdetection-interval"></a>
  The time interval between ejection sweep analysis.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    interval: DurationProps;
}
