func MustNewAnchoredHealthyIfNotAllErrorsSource(checkType health.CheckType, windowSize time.Duration) ErrorHealthCheckSource {
	return MustNewErrorHealthCheckSource(checkType, HealthyIfNotAllErrors,
		WithWindowSize(windowSize),
		WithRepairingGracePeriod(windowSize),
		WithRequireFullWindow())
}
MustNewAnchoredHealthyIfNotAllErrorsSource returns the result of calling
NewAnchoredHealthyIfNotAllErrorsSource but panics if that call returns an error
Should only be used in instances where the inputs are statically defined and known to be valid.
Care should be taken in considering health submission rate and window size when using anchored
windows. Windows too close to service emission frequency may cause errors to not surface.
DEPRECATED: please use MustNewErrorHealthCheckSource.
package window
import (
	"time"
	"github.com/palantir/witchcraft-go-health/conjure/witchcraft/api/health"
)
func MustNewUnhealthyIfAtLeastOneErrorSource(checkType health.CheckType, windowSize time.Duration) ErrorHealthCheckSource {
	return MustNewErrorHealthCheckSource(checkType, UnhealthyIfAtLeastOneError,
		WithWindowSize(windowSize))
}
func NewUnhealthyIfAtLeastOneErrorSource(checkType health.CheckType, windowSize time.Duration) (ErrorHealthCheckSource, error) {
	return NewErrorHealthCheckSource(checkType, UnhealthyIfAtLeastOneError,
		WithWindowSize(windowSize))
}
func MustNewHealthyIfNotAllErrorsSource(checkType health.CheckType, windowSize time.Duration) ErrorHealthCheckSource {
	return MustNewErrorHealthCheckSource(checkType, HealthyIfNotAllErrors,
		WithWindowSize(windowSize),
		WithRequireFullWindow())
}
func NewHealthyIfNotAllErrorsSource(checkType health.CheckType, windowSize time.Duration) (ErrorHealthCheckSource, error) {
	return NewErrorHealthCheckSource(checkType, HealthyIfNotAllErrors,
		WithWindowSize(windowSize),
		WithRequireFullWindow())
}