toLoadBalancerMetricName method
Implementation
LoadBalancerMetricName toLoadBalancerMetricName() {
switch (this) {
case 'ClientTLSNegotiationErrorCount':
return LoadBalancerMetricName.clientTLSNegotiationErrorCount;
case 'HealthyHostCount':
return LoadBalancerMetricName.healthyHostCount;
case 'UnhealthyHostCount':
return LoadBalancerMetricName.unhealthyHostCount;
case 'HTTPCode_LB_4XX_Count':
return LoadBalancerMetricName.hTTPCodeLb_4xxCount;
case 'HTTPCode_LB_5XX_Count':
return LoadBalancerMetricName.hTTPCodeLb_5xxCount;
case 'HTTPCode_Instance_2XX_Count':
return LoadBalancerMetricName.hTTPCodeInstance_2xxCount;
case 'HTTPCode_Instance_3XX_Count':
return LoadBalancerMetricName.hTTPCodeInstance_3xxCount;
case 'HTTPCode_Instance_4XX_Count':
return LoadBalancerMetricName.hTTPCodeInstance_4xxCount;
case 'HTTPCode_Instance_5XX_Count':
return LoadBalancerMetricName.hTTPCodeInstance_5xxCount;
case 'InstanceResponseTime':
return LoadBalancerMetricName.instanceResponseTime;
case 'RejectedConnectionCount':
return LoadBalancerMetricName.rejectedConnectionCount;
case 'RequestCount':
return LoadBalancerMetricName.requestCount;
}
throw Exception('$this is not known in enum LoadBalancerMetricName');
}