func (w *Watcher) SetAllocHealth(req *structs.DeploymentAllocHealthRequest, resp *structs.DeploymentUpdateResponse) error {
	watcher, err := w.getOrCreateWatcher(req.DeploymentID)
	if err != nil {
		return err
	}

	return watcher.SetAllocHealth(req, resp)
}
// SetAllocHealth is used to set the health of allocations for a deployment. If
// there are any unhealthy allocations, the deployment is updated to be failed.
// Otherwise the allocations are updated and an evaluation is created.
SetAllocHealth is used to set the health of allocations for a deployment. If
there are any unhealthy allocations, the deployment is updated to be failed.
Otherwise the allocations are updated and an evaluation is created.
// SetAllocHealth is used to set the health of allocations for a deployment . If // there are any unhealthy allocations the deployment is updated to be failed . // Otherwise the allocations are updated and an evaluation is created .
func (w *Watcher) SetAllocHealth(req *structs.DeploymentAllocHealthRequest, resp *structs.DeploymentUpdateResponse) error {
	watcher, err := w.getOrCreateWatcher(req.DeploymentID)
	if err != nil {
		return err
	}
	return watcher.SetAllocHealth(req, resp)
}
func ( w * Watcher ) SetAllocHealth ( req * structs . DeploymentAllocHealthRequest , resp * structs . DeploymentUpdateResponse ) error { watcher , err := w . getOrCreateWatcher ( req . DeploymentID ) if err != nil { return err } return watcher . SetAllocHealth ( req , resp ) }
SetAllocHealth is used to set the health of allocations for a deployment.
SetAllocHealth is used to set the health of allocations for a deployment .