toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case MetricStatistic.average:
      return 'Average';
    case MetricStatistic.minimum:
      return 'Minimum';
    case MetricStatistic.maximum:
      return 'Maximum';
    case MetricStatistic.sampleCount:
      return 'SampleCount';
    case MetricStatistic.sum:
      return 'Sum';
  }
}