toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case UsageStatisticType.sumByAccount:
      return 'SUM_BY_ACCOUNT';
    case UsageStatisticType.sumByDataSource:
      return 'SUM_BY_DATA_SOURCE';
    case UsageStatisticType.sumByResource:
      return 'SUM_BY_RESOURCE';
    case UsageStatisticType.topResources:
      return 'TOP_RESOURCES';
  }
}