toAgentHealthCode method

AgentHealthCode toAgentHealthCode()

Implementation

AgentHealthCode toAgentHealthCode() {
  switch (this) {
    case 'IDLE':
      return AgentHealthCode.idle;
    case 'RUNNING':
      return AgentHealthCode.running;
    case 'SHUTDOWN':
      return AgentHealthCode.shutdown;
    case 'UNHEALTHY':
      return AgentHealthCode.unhealthy;
    case 'THROTTLED':
      return AgentHealthCode.throttled;
    case 'UNKNOWN':
      return AgentHealthCode.unknown;
  }
  throw Exception('$this is not known in enum AgentHealthCode');
}