toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case MetricsName.incomingBytes:
      return 'IncomingBytes';
    case MetricsName.incomingRecords:
      return 'IncomingRecords';
    case MetricsName.outgoingBytes:
      return 'OutgoingBytes';
    case MetricsName.outgoingRecords:
      return 'OutgoingRecords';
    case MetricsName.writeProvisionedThroughputExceeded:
      return 'WriteProvisionedThroughputExceeded';
    case MetricsName.readProvisionedThroughputExceeded:
      return 'ReadProvisionedThroughputExceeded';
    case MetricsName.iteratorAgeMilliseconds:
      return 'IteratorAgeMilliseconds';
    case MetricsName.all:
      return 'ALL';
  }
}