public class HealthLevel extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HealthLevel.EnumHealth |
Constructor and Description |
---|
HealthLevel(HealthLevel.EnumHealth health,
String... alerts)
Ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addAlertMessages(Set<String> alerts) |
static HealthLevel |
bestHealth(HealthLevel health1,
HealthLevel health2)
Best health code between the two healths in args
|
ISettingsMap |
enrichHealthMap(ISettingsMap map,
HealthLevel health,
String esId,
String platformId) |
Set<String> |
getAlertMessages() |
HealthLevel.EnumHealth |
getHealth() |
static HealthLevel |
green() |
static HealthLevel |
red(String... alerts) |
static HealthLevel |
unknown(String... alerts) |
static HealthLevel |
worstHealth(HealthLevel health1,
HealthLevel health2)
worst health code between the two healths in args
|
static HealthLevel |
yellow(String... alerts) |
public HealthLevel(HealthLevel.EnumHealth health, String... alerts)
public static HealthLevel green()
public static HealthLevel yellow(String... alerts)
public static HealthLevel red(String... alerts)
public static HealthLevel unknown(String... alerts)
public HealthLevel.EnumHealth getHealth()
public ISettingsMap enrichHealthMap(ISettingsMap map, HealthLevel health, String esId, String platformId)
public static HealthLevel worstHealth(HealthLevel health1, HealthLevel health2)
health1
- first healthhealth2
- second healthpublic static HealthLevel bestHealth(HealthLevel health1, HealthLevel health2)
health1
- First healthhealth2
- Second healthCopyright © 2014–2023. All rights reserved.