toValue method
Implementation
String toValue() {
switch (this) {
case AgentStatus.healthy:
return 'HEALTHY';
case AgentStatus.unhealthy:
return 'UNHEALTHY';
case AgentStatus.running:
return 'RUNNING';
case AgentStatus.unknown:
return 'UNKNOWN';
case AgentStatus.blacklisted:
return 'BLACKLISTED';
case AgentStatus.shutdown:
return 'SHUTDOWN';
}
}