toValue method

String toValue()

Implementation

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