toValue method
Implementation
String toValue() {
switch (this) {
case MetricName.cpu:
return 'Cpu';
case MetricName.memory:
return 'Memory';
case MetricName.ebsReadOpsPerSecond:
return 'EBS_READ_OPS_PER_SECOND';
case MetricName.ebsWriteOpsPerSecond:
return 'EBS_WRITE_OPS_PER_SECOND';
case MetricName.ebsReadBytesPerSecond:
return 'EBS_READ_BYTES_PER_SECOND';
case MetricName.ebsWriteBytesPerSecond:
return 'EBS_WRITE_BYTES_PER_SECOND';
}
}