toMetricType method

MetricType toMetricType()

Implementation

MetricType toMetricType() {
  switch (this) {
    case 'ASGAverageCPUUtilization':
      return MetricType.aSGAverageCPUUtilization;
    case 'ASGAverageNetworkIn':
      return MetricType.aSGAverageNetworkIn;
    case 'ASGAverageNetworkOut':
      return MetricType.aSGAverageNetworkOut;
    case 'ALBRequestCountPerTarget':
      return MetricType.aLBRequestCountPerTarget;
  }
  throw Exception('$this is not known in enum MetricType');
}