fromValue static method

RpcProxyPerfCounters fromValue(
  1. int value
)

Implementation

static RpcProxyPerfCounters fromValue(int value) => switch (value) {
      1 => RpcCurrentUniqueUser,
      2 => RpcBackEndConnectionAttempts,
      3 => RpcBackEndConnectionFailed,
      4 => RpcRequestsPerSecond,
      5 => RpcIncomingConnections,
      6 => RpcIncomingBandwidth,
      7 => RpcOutgoingBandwidth,
      8 => RpcAttemptedLbsDecisions,
      9 => RpcFailedLbsDecisions,
      10 => RpcAttemptedLbsMessages,
      11 => RpcFailedLbsMessages,
      12 => RpcLastCounter,
      _ =>
        throw ArgumentError('Unknown value for RpcProxyPerfCounters: $value'),
    };