func DeriveStatus(statuses []StatusInfo) StatusInfo {
	// By providing an unknown default, we get a reasonable answer
	// even if there are no units.
	result := StatusInfo{
		Status: Unknown,
	}
	for _, unitStatus := range statuses {
		currentSeverity := statusServerities[result.Status]
		unitSeverity := statusServerities[unitStatus.Status]
		if unitSeverity > currentSeverity {
			result.Status = unitStatus.Status
			result.Message = unitStatus.Message
			result.Data = unitStatus.Data
			result.Since = unitStatus.Since
		}
	}
	return result
}
// DeriveStatus is used to determine the application
// status from a set of unit status values.
DeriveStatus is used to determine the application
status from a set of unit status values.
// DeriveStatus is used to determine the application // status from a set of unit status values .
func DeriveStatus(statuses []StatusInfo) StatusInfo {
	result := StatusInfo{
		Status: Unknown,
	}
	for _, unitStatus := range statuses {
		currentSeverity := statusServerities[result.Status]
		unitSeverity := statusServerities[unitStatus.Status]
		if unitSeverity > currentSeverity {
			result.Status = unitStatus.Status
			result.Message = unitStatus.Message
			result.Data = unitStatus.Data
			result.Since = unitStatus.Since
		}
	}
	return result
}
func DeriveStatus ( statuses [ ] StatusInfo ) StatusInfo { result := StatusInfo { Status : Unknown , } for _ , unitStatus := range statuses { currentSeverity := statusServerities [ result . Status ] unitSeverity := statusServerities [ unitStatus . Status ] if unitSeverity > currentSeverity { result . Status = unitStatus . Status result . Message = unitStatus . Message result . Data = unitStatus . Data result . Since = unitStatus . Since } } return result }
DeriveStatus is used to determine the application
status from a set of unit status values.
DeriveStatus is used to determine the application status from a set of unit status values .
// By providing an unknown default, we get a reasonable answer // even if there are no units.