typeAsString property

String typeAsString

Implementation

String get typeAsString {
  switch (type) {
    case MetricType.count:
      return 'count';
    case MetricType.rate:
      return 'rate';
    case MetricType.gauge:
      return 'gauge';
    default:
      throw FallThroughError();
  }
}