toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AgentHealth.healthy:
      return 'HEALTHY';
    case AgentHealth.unhealthy:
      return 'UNHEALTHY';
    case AgentHealth.unknown:
      return 'UNKNOWN';
  }
}