toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AgentHealthCode.idle:
      return 'IDLE';
    case AgentHealthCode.running:
      return 'RUNNING';
    case AgentHealthCode.shutdown:
      return 'SHUTDOWN';
    case AgentHealthCode.unhealthy:
      return 'UNHEALTHY';
    case AgentHealthCode.throttled:
      return 'THROTTLED';
    case AgentHealthCode.unknown:
      return 'UNKNOWN';
  }
}