toRelationalDatabaseMetricName method

RelationalDatabaseMetricName toRelationalDatabaseMetricName()

Implementation

RelationalDatabaseMetricName toRelationalDatabaseMetricName() {
  switch (this) {
    case 'CPUUtilization':
      return RelationalDatabaseMetricName.cPUUtilization;
    case 'DatabaseConnections':
      return RelationalDatabaseMetricName.databaseConnections;
    case 'DiskQueueDepth':
      return RelationalDatabaseMetricName.diskQueueDepth;
    case 'FreeStorageSpace':
      return RelationalDatabaseMetricName.freeStorageSpace;
    case 'NetworkReceiveThroughput':
      return RelationalDatabaseMetricName.networkReceiveThroughput;
    case 'NetworkTransmitThroughput':
      return RelationalDatabaseMetricName.networkTransmitThroughput;
  }
  throw Exception('$this is not known in enum RelationalDatabaseMetricName');
}